예제 #1
0
 /// <summary>
 /// Creates a enw <see cref="BranchCommand"/>
 /// </summary>
 /// <param name="options">The <see cref="BranchSubOptions"/> that controls the behavior of this command.</param>
 public BranchCommand(BranchSubOptions options)
 {
     _options   = options;
     _git       = DependencyInjection.Resolve <IGit>();
     _algorithm = DependencyInjection.Resolve <IDependencyVisitorAlgorithm>();
     _console   = DependencyInjection.Resolve <IConsole>();
 }
예제 #2
0
 /// <summary>
 /// Creates a new <see cref="UpdateCommand"/>
 /// </summary>
 /// <param name="options">The <see cref="UpdateSubOptions"/> that configure the command.</param>
 public UpdateCommand(UpdateSubOptions options)
 {
     _options   = options;
     _console   = DependencyInjection.Resolve <IConsole>();
     _algorithm = DependencyInjection.Resolve <IDependencyVisitorAlgorithm>();
 }
예제 #3
0
 /// <summary>
 /// Creates a new <see cref="CheckOutCommand"/>
 /// </summary>
 /// <param name="options">The <see cref="CheckOutSubOptions"/> that controls the behavior of this command.</param>
 public CheckOutCommand(CheckOutSubOptions options)
 {
     _options   = options;
     _algorithm = DependencyInjection.Resolve <IDependencyVisitorAlgorithm>();
 }
예제 #4
0
 /// <summary>
 /// Creates a new <see cref="NamedDependenciesCommand{T}"/>
 /// </summary>
 /// <param name="options">The options for the command.</param>
 protected NamedDependenciesCommand(T options)
 {
     Options    = options;
     _algorithm = DependencyInjection.Resolve <IDependencyVisitorAlgorithm>();
     Console    = DependencyInjection.Resolve <IConsole>();
 }