public static IConfigurationBuilder AddKingpinNetCommandLine(this IConfigurationBuilder configurationBuilder, string[] args,
                                                              KingpinApplication application = null)
 {
     configurationBuilder.Add(new KingpinNetCommandLineConfigurationSource()
     {
         KingpinApplication = application,
         Args = args
     });
     return(configurationBuilder);
 }
Exemple #2
0
 public Parser(KingpinApplication application, CommandLineTokenizer commandLineTokenizer)
 {
     commands                  = application.Commands.ToList();
     globalFlags               = application.Flags.ToList();
     globalArguments           = application.Arguments.ToList();
     logger                    = application.log;
     exeFileName               = application.exeFileName;
     exeFileExtension          = application.exeFileExtension;
     this.commandLineTokenizer = commandLineTokenizer;
 }
 public KingpinCommandLineConfigurationProvider(IEnumerable <string> args, KingpinApplication application)
 {
     _kingpinApplication = application;
     _args = args;
 }
Exemple #4
0
 public ApplicationDrop(KingpinApplication application)
 {
     this.application = application;
 }
Exemple #5
0
 private ILiquidizable ToDrop(KingpinApplication application)
 {
     return(new ApplicationDrop(application));
 }
Exemple #6
0
 public HelpGenerator(KingpinApplication application, IConsole console)
 {
     _application = application;
     this.console = console;
 }