static void MenuItem1Handler(SimpleCliMenuItem item, CluiLib.Clui cli) { cli.Ask("Enter something", (input, cli) => { cli.Print("You entered {0}", input); }); }
static CluiLib.Clui EditProfile(CluiLib.Clui cli) { return(cli .Ask("Enter first name", (input, cl) => cl.Set("firstName", input)) .Ask("Enter last name", (input, cl) => cl.Set("lastName", input)) .Print("We will now call you {0} {1}", cli.Get("firstName"), cli.Get("lastName")) ); }