Пример #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();
        }
Пример #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();
        }
Пример #3
0
 public UnknownCommand(JumperSettings settings, ArgumentReader reader)
     : base(settings, reader)
 {
 }
Пример #4
0
 public ListCommand(JumperSettings settings, ArgumentReader reader)
     : base(settings, reader)
 {
 }
Пример #5
0
 public CommandLocator(JumperSettings settings, ArgumentReader reader)
 {
     this._Settings = settings;
     this._Reader   = reader;
 }
Пример #6
0
 public HelpCommand(JumperSettings settings, ArgumentReader reader)
     : base(settings, reader)
 {
 }
Пример #7
0
 public Command(JumperSettings settings, ArgumentReader reader)
 {
     this.Arguments = reader;
     this.Settings = settings;
 }
Пример #8
0
 public Command(JumperSettings settings, ArgumentReader reader)
 {
     this.Arguments = reader;
     this.Settings  = settings;
 }