Ejemplo n.º 1
0
        public void Execute(IEnumerable <string> paramList)
        {
            var paths = _service.GetPath();

            foreach (var path in paths)
            {
                Console.WriteLine(path);
            }
        }
Ejemplo n.º 2
0
        public void ListCommand(CommandLineApplication app)
        {
            app.Command("list", (cmd) =>
            {
                cmd.Description = "List path Environment Variables";

                cmd.OnExecute(() =>
                {
                    var patherService = new PatherService();
                    var paths         = patherService.GetPath();
                    foreach (var path in paths)
                    {
                        Console.WriteLine(path);
                    }

                    return(0);
                });
            });
        }