`atomic` for the root, `atomic memory new` for a leaf.
(root: &clap::Command, key: &str)
| 182 | |
| 183 | /// `atomic` for the root, `atomic memory new` for a leaf. |
| 184 | fn display_path(root: &clap::Command, key: &str) -> String { |
| 185 | if key.is_empty() { |
| 186 | root.get_name().to_string() |
| 187 | } else { |
| 188 | format!("{} {}", root.get_name(), key) |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | /// Descend to the node named by a registry key, stopping at the first segment |
| 193 | /// that does not resolve. |
no test coverage detected