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

Function unknown_view

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

The error for a view name that does not resolve.

(repo: &Repository, name: &str, arg: &str)

Source from the content-addressed store, hash-verified

438
439/// The error for a view name that does not resolve.
440fn unknown_view(repo: &Repository, name: &str, arg: &str) -> CliError {
441 CliError::InvalidArgument {
442 message: format!(
443 "No view named '{name}' — {arg} takes a real view name, not a placeholder.\n \
444 Current view is '{}'; omit {arg} to triage that instead, or run \
445 'atomic view list' to see all views.",
446 repo.current_view()
447 ),
448 }
449}
450
451#[cfg(test)]
452mod tests {

Callers 2

resolve_viewsFunction · 0.85
require_viewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected