MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / command_path

Function command_path

atomic-cli/src/logging/mod.rs:258–266  ·  view source on GitHub ↗

The command path clap matched, such as `git import`.

(matches: &clap::ArgMatches)

Source from the content-addressed store, hash-verified

256
257/// The command path clap matched, such as `git import`.
258fn command_path(matches: &clap::ArgMatches) -> String {
259 let mut names = Vec::new();
260 let mut current = matches;
261 while let Some((name, sub)) = current.subcommand() {
262 names.push(name);
263 current = sub;
264 }
265 names.join(" ")
266}
267
268fn terminal_layer() -> BoxedLayer {
269 let directives = terminal_directives(std::env::var("RUST_LOG").ok(), verbose_requested());

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected