예제 #1
0
        public static int Main(string[] args)
        {
            var app = new CommandApp();

            app.Configure(app =>
            {
                app.AddCommand <AddCommand>("add");
                app.AddCommand <ClearCommand>("clear");
                app.AddCommand <RemoveCommand>("remove")
                .WithAlias("delete")
                .WithAlias("del");
                app.AddCommand <ListCommand>("list");
            });
            int appStatus = app.Run(args);

            TodoApp.Default().Dispose();
            return(appStatus);
        }