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

Function parse_views

atomic-cli/src/commands/triage/mod.rs:469–474  ·  view source on GitHub ↗

The ` ` / `--into` pair parsed off a `triage review` argument list.

(args: &[&str])

Source from the content-addressed store, hash-verified

467
468 /// The `<VIEW>` / `--into` pair parsed off a `triage review` argument list.
469 fn parse_views(args: &[&str]) -> (Option<String>, Option<String>) {
470 let cmd =
471 TriageReview::try_parse_from(std::iter::once("review").chain(args.iter().copied()))
472 .unwrap();
473 (cmd.feature, cmd.into)
474 }
475
476 #[test]
477 fn both_view_arguments_are_optional() {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected