MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / stub_description

Function stub_description

nodedb/src/ctl/dispatch.rs:38–49  ·  view source on GitHub ↗

Stub subcommand descriptions for reserved names.

(name: &str)

Source from the content-addressed store, hash-verified

36
37/// Stub subcommand descriptions for reserved names.
38fn stub_description(name: &str) -> &'static str {
39 match name {
40 "migrate" => "schema/data migration",
41 "backup" => "online backup",
42 "restore" => "restore",
43 "verify" => "verify (consistency check)",
44 "repair" => "repair",
45 "dump" => "dump (logical export)",
46 "fsck" => "fsck",
47 _ => "not yet implemented",
48 }
49}
50
51/// Parse `args` (the tail of `std::env::args()` after the binary name)
52/// into a subcommand. Returns `Ok(None)` when the first arg doesn't

Callers 1

run_subcommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected