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

Function render_for

atomic-cli/src/agent_error.rs:746–754  ·  view source on GitHub ↗
(args: &[&str])

Source from the content-addressed store, hash-verified

744 use crate::{apply_agent_help, Cli};
745
746 fn render_for(args: &[&str]) -> String {
747 let mut root = apply_agent_help(Cli::command());
748 let argv: Vec<OsString> = std::iter::once("atomic")
749 .chain(args.iter().copied())
750 .map(OsString::from)
751 .collect();
752 let err = root.try_get_matches_from_mut(&argv).unwrap_err();
753 render(&err, &root, &argv)
754 }
755
756 #[test]
757 fn missing_required_argument_is_derived_only() {

Calls 4

apply_agent_helpFunction · 0.85
commandFunction · 0.85
renderFunction · 0.70
iterMethod · 0.45