mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-26 20:00:59 +08:00
43 lines
985 B
C#
43 lines
985 B
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
namespace SourceGit.Models
|
|
{
|
|
public enum CustomActionScope
|
|
{
|
|
Repository,
|
|
Commit,
|
|
}
|
|
|
|
public class CustomAction : ObservableObject
|
|
{
|
|
public string Name
|
|
{
|
|
get => _name;
|
|
set => SetProperty(ref _name, value);
|
|
}
|
|
|
|
public CustomActionScope Scope
|
|
{
|
|
get => _scope;
|
|
set => SetProperty(ref _scope, value);
|
|
}
|
|
|
|
public string Executable
|
|
{
|
|
get => _executable;
|
|
set => SetProperty(ref _executable, value);
|
|
}
|
|
|
|
public string Arguments
|
|
{
|
|
get => _arguments;
|
|
set => SetProperty(ref _arguments, value);
|
|
}
|
|
|
|
private string _name = string.Empty;
|
|
private CustomActionScope _scope = CustomActionScope.Repository;
|
|
private string _executable = string.Empty;
|
|
private string _arguments = string.Empty;
|
|
}
|
|
}
|