コード例 #1
0
 public GitOpenCommand(ISettingAgent settingAgent, IRepositoryBusines repositoryBusiness, IQuestionAgent questionAgent, ITalkAgent talkAgent)
     : base(settingAgent, "Open", new[] { "open repo", "open repository" })
 {
     _repositoryBusiness = repositoryBusiness;
     _questionAgent      = questionAgent;
     _talkAgent          = talkAgent;
 }
コード例 #2
0
 public GitStashPopCommand(ISettingAgent settingAgent, IRepositoryBusines repositoryBusiness, ITalkAgent talkAgent, IGitBusiness gitBusiness, IQuestionAgent questionAgent)
     : base(settingAgent, "Pop", new[] { "stash pop", "pop", "pop the stash", "pop stash" })
 {
     _repositoryBusiness = repositoryBusiness;
     _talkAgent          = talkAgent;
     _gitBusiness        = gitBusiness;
     _questionAgent      = questionAgent;
 }
コード例 #3
0
ファイル: GitCommitCommand.cs プロジェクト: poxet/GitBitch
 public GitCommitCommand(ISettingAgent settingAgent, IRepositoryBusines repositoryBusiness, ITalkAgent talkAgent, IGitBusiness gitBusiness, IQuestionAgent questionAgent)
     : base(settingAgent, "Commit", new[] { "commit", "stage and commit", "stage commit", "amend" })
 {
     _repositoryBusiness = repositoryBusiness;
     _talkAgent          = talkAgent;
     _gitBusiness        = gitBusiness;
     _questionAgent      = questionAgent;
 }
コード例 #4
0
ファイル: GitPullCommand.cs プロジェクト: poxet/GitBitch
 public GitPullCommand(ISettingAgent settingAgent, IRepositoryBusines repositoryBusiness, ITalkAgent talkAgent, IGitBusiness gitBusiness, IQuestionAgent questionAgent)
     : base(settingAgent, "pull", new[] { "pull" })
 {
     _repositoryBusiness = repositoryBusiness;
     _talkAgent          = talkAgent;
     _gitBusiness        = gitBusiness;
     _questionAgent      = questionAgent;
 }
コード例 #5
0
 public GitResetHardCommand(ISettingAgent settingAgent, IRepositoryBusines repositoryBusiness, ITalkAgent talkAgent, IGitBusiness gitBusiness, IQuestionAgent questionAgent)
     : base(settingAgent, "Reset", new[] { "reset hard", "hard reset" })
 {
     _repositoryBusiness = repositoryBusiness;
     _talkAgent          = talkAgent;
     _gitBusiness        = gitBusiness;
     _questionAgent      = questionAgent;
 }
コード例 #6
0
 public GitStashCommand(ISettingAgent settingAgent, IRepositoryBusines repositoryBusiness, ITalkAgent talkAgent, IGitBusiness gitBusiness, IQuestionAgent questionAgent)
     : base(settingAgent, "Stash", new[] { "stash", "stash save", "save stash", "save to stash" })
 {
     _repositoryBusiness = repositoryBusiness;
     _talkAgent          = talkAgent;
     _gitBusiness        = gitBusiness;
     _questionAgent      = questionAgent;
 }
コード例 #7
0
 public AutoStartCommand(ISettingAgent settingAgent, IQuestionAgent questionAgent, ITalkAgent talkAgent)
     : base(settingAgent, "Autostart", new[] { "enable autostart", "disable autostart", "autostart on", "autostart off", "autostart" })
 {
     _questionAgent = questionAgent;
     _talkAgent     = talkAgent;
 }
コード例 #8
0
 public CloseCommand(ISettingAgent settingAgent, IQuestionAgent questionAgent, ITalkAgent talkAgent)
     : base(settingAgent, "Close", new[] { "close", "exit", "quit", "bye", "goodbye", "stop" })
 {
     _questionAgent = questionAgent;
     _talkAgent     = talkAgent;
 }