/// <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>(); }
/// <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>(); }
/// <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>(); }
/// <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>(); }