MCPcopy Create free account
hub / github.com/apache/datafusion / build_cli

Function build_cli

benchmarks/src/benchmark_runner/cli.rs:40–49  ·  view source on GitHub ↗

Builds the command tree for help and suite listing.

()

Source from the content-addressed store, hash-verified

38
39/// Builds the command tree for help and suite listing.
40pub fn build_cli() -> Command {
41 Command::new("benchmark_runner")
42 .about("Inspect DataFusion SQL benchmark suites.")
43 .styles(HELP_STYLES)
44 .subcommand_required(false)
45 .arg_required_else_help(false)
46 .disable_help_subcommand(true)
47 .subcommand(Command::new("help").about("Print help"))
48 .subcommand(Command::new("list").about("List SQL benchmark suites"))
49}
50
51/// Converts clap matches into a typed command.
52pub(crate) fn command_from_matches(matches: &ArgMatches) -> Result<RunnerCommand> {

Callers 3

run_cliFunction · 0.85

Calls 1

newFunction · 0.85

Tested by 2

Used in the wild real call sites across dependent graphs

searching dependent graphs…