Ejemplo n.º 1
0
        private static void setArg(PluginGraphConsoleWriter consoleWriter, string arg)
        {
            switch (arg)
            {
            case "-All":
                consoleWriter.WriteAll = true;
                break;

            case "-Plugins":
                consoleWriter.IncludePlugins = true;
                break;

            case "-Instances":
                consoleWriter.IncludeAllInstances = true;
                break;

            case "-Source":
                consoleWriter.IncludeSource = true;
                break;

            case "-Problems":
                consoleWriter.WriteProblems = true;
                break;

            default:
                writeHelp();
                throw new ApplicationException("Invalid Input");
            }
        }
Ejemplo n.º 2
0
        private static void setArg(PluginGraphConsoleWriter consoleWriter, string arg)
        {
            switch (arg)
            {
                case "-All":
                    consoleWriter.WriteAll = true;
                    break;

                case "-Plugins":
                    consoleWriter.IncludePlugins = true;
                    break;

                case "-Instances":
                    consoleWriter.IncludeAllInstances = true;
                    break;

                case "-Source":
                    consoleWriter.IncludeSource = true;
                    break;

                case "-Problems":
                    consoleWriter.WriteProblems = true;
                    break;

                default:
                    writeHelp();
                    throw new ApplicationException("Invalid Input");
            }
        }
Ejemplo n.º 3
0
        private static void Main(string[] args)
        {
            if (args.Length == 0)
            {
                writeHelp();
                return;
            }


            string filePath = args[0];

            if (!File.Exists(filePath))
            {
                Console.WriteLine("Cannot find file " + filePath);
                writeHelp();
                return;
            }


            RemoteGraphContainer     container     = new RemoteGraphContainer(filePath);
            RemoteGraph              graph         = container.GetRemoteGraph();
            PluginGraphReport        report        = graph.GetReport();
            PluginGraphConsoleWriter consoleWriter = new PluginGraphConsoleWriter(report);

            for (int i = 1; i < args.Length; i++)
            {
                setArg(consoleWriter, args[i]);
            }

            consoleWriter.Write(Console.Out);
        }
Ejemplo n.º 4
0
        private static void Main(string[] args)
        {
            if (args.Length == 0)
            {
                writeHelp();
                return;
            }

            string filePath = args[0];
            if (!File.Exists(filePath))
            {
                Console.WriteLine("Cannot find file " + filePath);
                writeHelp();
                return;
            }

            RemoteGraphContainer container = new RemoteGraphContainer(filePath);
            RemoteGraph graph = container.GetRemoteGraph();
            PluginGraphReport report = graph.GetReport();
            PluginGraphConsoleWriter consoleWriter = new PluginGraphConsoleWriter(report);

            for (int i = 1; i < args.Length; i++)
            {
                setArg(consoleWriter, args[i]);
            }

            consoleWriter.Write(Console.Out);
        }