//usage // j command args // j -add:command -repath:false -arg:% <COMMAND TO RUN> // j -remove:command // j -list static void Main(string[] args) { //make sure the previous version is gone if (File.Exists(JumperSettings.BATFile)) File.Delete(JumperSettings.BATFile); //verify the shortu JumperSettings.VerifyJumpBatFile(); //execute the app as required var settings = JumperSettings.Load(); var reader = new ArgumentReader(args); var locator = new CommandLocator(settings, reader); var command = locator.CreateCommand(); command.Run(); }
//usage // j command args // j -add:command -repath:false -arg:% <COMMAND TO RUN> // j -remove:command // j -list static void Main(string[] args) { //make sure the previous version is gone if (File.Exists(JumperSettings.BATFile)) { File.Delete(JumperSettings.BATFile); } //verify the shortu JumperSettings.VerifyJumpBatFile(); //execute the app as required var settings = JumperSettings.Load(); var reader = new ArgumentReader(args); var locator = new CommandLocator(settings, reader); var command = locator.CreateCommand(); command.Run(); }
public UnknownCommand(JumperSettings settings, ArgumentReader reader) : base(settings, reader) { }
public ListCommand(JumperSettings settings, ArgumentReader reader) : base(settings, reader) { }
public CommandLocator(JumperSettings settings, ArgumentReader reader) { this._Settings = settings; this._Reader = reader; }
public HelpCommand(JumperSettings settings, ArgumentReader reader) : base(settings, reader) { }
public Command(JumperSettings settings, ArgumentReader reader) { this.Arguments = reader; this.Settings = settings; }