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

Function unknown_view

atomic-cli/src/commands/triage/mod.rs:333–342  ·  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

331
332/// The error for a view name that does not resolve.
333fn unknown_view(repo: &Repository, name: &str, arg: &str) -> CliError {
334 CliError::InvalidArgument {
335 message: format!(
336 "No view named '{name}' — {arg} takes a real view name, not a placeholder.\n \
337 Current view is '{}'; omit {arg} to triage that instead, or run \
338 'atomic view list' to see all views.",
339 repo.current_view()
340 ),
341 }
342}
343
344#[cfg(test)]
345mod tests {

Callers 2

resolve_viewsFunction · 0.85
require_viewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected