示例#1
0
        private static int Run(string[] args)
        {
            var commands = CommandsList.Commands;

            if (commands.ContainsKey(args[0]))
            {
                return(commands[args[0]].Run(args));
            }

            if (CementSettings.Get().UserCommands.ContainsKey(args[0]))
            {
                return(new UserCommand().Run(args));
            }

            ConsoleWriter.WriteError("Bad command: '" + args[0] + "'");
            return(-1);
        }
示例#2
0
 public BuildSectionParser() : this(CementSettings.Get())
 {
 }