Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            var arguments = CommandLine.Parse <CommandLineArgs>();

            if (arguments.Connection != null)
            {
                CrmCli(arguments);
            }
            else
            {
                switch (arguments.Type)
                {
                case "nuglify":
                    TaskNUglify.Run(arguments.Command);
                    break;
                }
            }
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            var type = CommandLine.Tokenize().Where(x => x.Command == "type").FirstOrDefault();

            if (type == null)
            {
                throw new System.Exception("Not found /type switch");
            }
            switch (type.Value.ToLower())
            {
            case "coveragetoxml":
                TaskCoverageToXml.Run();
                break;

            case "nuglify":
                TaskNUglify.Run();
                break;
            }
        }