mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-24 05:35:00 +00:00
42 lines
985 B
C#
42 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;
|
|
}
|
|
}
|