示例#1
0
文件: Program.cs 项目: jondot/qtools
        static void Main(string[] args)
        {
            var options = new Options();
            if(string.IsNullOrEmpty(options.Machine))
            {
                options.Machine = ".";
            }

            ICommandLineParser parser = new CommandLineParser(new CommandLineParserSettings(Console.Error));
            if (!parser.ParseArguments(args, options))
                Environment.Exit(1);

            if (!Invoke("ls", new QLs(options), new QueueTools(), new ConsoleOutput(), new ConsoleInput()))
                Environment.Exit(1);
        }
示例#2
0
文件: QLs.cs 项目: modulexcite/qtools
 public QLs(Options options)
 {
     _options = options;
 }