public void ExpectedBehavior() { var command = new HelpCommand(); var args = new HelpArgs(); var execute = command.Execute(args); StringAssert.Contains("Help", execute); }
public object Execute(HelpArgs args) { return(View("Default", new { version = Assembly.GetExecutingAssembly().GetName().Version.ToString(), executable = Path.GetFileName(Assembly.GetExecutingAssembly().Location) })); }
public string Execute(HelpArgs args) { return("Using: Resgrid.Console.exe ..."); }
public IHttpActionResult GetHelp([FromBody] HelpArgs args) { return(Json(Terminal.Completion.QuickHelpHtml(args.Script, args.Index, args.SelectedCaption))); }
public object Execute(HelpArgs args) { return(View("Help")); }