Ejemplo n.º 1
0
        //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();
        }
Ejemplo n.º 2
0
        //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();
        }
Ejemplo n.º 3
0
 public UnknownCommand(JumperSettings settings, ArgumentReader reader)
     : base(settings, reader)
 {
 }
Ejemplo n.º 4
0
 public ListCommand(JumperSettings settings, ArgumentReader reader)
     : base(settings, reader)
 {
 }
Ejemplo n.º 5
0
 public CommandLocator(JumperSettings settings, ArgumentReader reader)
 {
     this._Settings = settings;
     this._Reader   = reader;
 }
Ejemplo n.º 6
0
 public HelpCommand(JumperSettings settings, ArgumentReader reader)
     : base(settings, reader)
 {
 }
Ejemplo n.º 7
0
 public Command(JumperSettings settings, ArgumentReader reader)
 {
     this.Arguments = reader;
     this.Settings = settings;
 }
Ejemplo n.º 8
0
 public Command(JumperSettings settings, ArgumentReader reader)
 {
     this.Arguments = reader;
     this.Settings  = settings;
 }