MCPcopy Create free account
hub / github.com/daniele77/cli / ExecFromHistory

Method ExecFromHistory

include/cli/cli.h:361–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359 void ShowHistory() const { history.Show(out); }
360
361 void ExecFromHistory(unsigned index)
362 {
363 history.ForgetLatest();
364 const auto cmd = history.At(index);
365 Feed(cmd);
366 }
367
368 std::string PreviousCmd(const std::string& line)
369 {

Callers

nothing calls this directly

Calls 2

ForgetLatestMethod · 0.80
AtMethod · 0.80

Tested by

no test coverage detected