Ejemplo n.º 1
0
 public ToolListCommand(
     ParseResult result,
     ToolListGlobalOrToolPathCommand toolListGlobalOrToolPathCommand = null,
     ToolListLocalCommand toolListLocalCommand = null
     )
     : base(result)
 {
     _toolListGlobalOrToolPathCommand
         = toolListGlobalOrToolPathCommand ?? new ToolListGlobalOrToolPathCommand(result);
     _toolListLocalCommand
         = toolListLocalCommand ?? new ToolListLocalCommand(result);
 }
Ejemplo n.º 2
0
 public ToolListCommand(
     AppliedOption options,
     ParseResult result,
     ToolListGlobalOrToolPathCommand toolListGlobalOrToolPathCommand = null,
     ToolListLocalCommand toolListLocalCommand = null
     )
     : base(result)
 {
     _options = options ?? throw new ArgumentNullException(nameof(options));
     _result  = result ?? throw new ArgumentNullException(nameof(result));
     _toolListGlobalOrToolPathCommand
         = toolListGlobalOrToolPathCommand ?? new ToolListGlobalOrToolPathCommand(_options, _result);
     _toolListLocalCommand
         = toolListLocalCommand ?? new ToolListLocalCommand(_options, _result);
 }
Ejemplo n.º 3
0
 public ToolListCommand(
     AppliedOption options,
     ParseResult result,
     ToolListGlobalOrToolPathCommand toolListGlobalOrToolPathCommand = null,
     ToolListLocalCommand toolListLocalCommand = null
     )
     : base(result)
 {
     _options = options ?? throw new ArgumentNullException(nameof(options));
     _result  = result ?? throw new ArgumentNullException(nameof(result));
     _toolListGlobalOrToolPathCommand
         = toolListGlobalOrToolPathCommand ?? new ToolListGlobalOrToolPathCommand(_options, _result);
     _toolListLocalCommand
               = toolListLocalCommand ?? new ToolListLocalCommand(_options, _result);
     _global   = options.ValueOrDefault <bool>(GlobalOption);
     _local    = options.ValueOrDefault <bool>(LocalOption);
     _toolPath = options.SingleArgumentOrDefault(ToolPathOption);
 }