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

Function check_variant

atomic-cli/src/commands/project/mod.rs:217–226  ·  view source on GitHub ↗
(cmd: &ProjectCommands)

Source from the content-addressed store, hash-verified

215 #[test]
216 fn test_project_commands_variants() {
217 fn check_variant(cmd: &ProjectCommands) -> &'static str {
218 match cmd {
219 ProjectCommands::List(_) => "list",
220 ProjectCommands::Create(_) => "create",
221 ProjectCommands::Show(_) => "show",
222 ProjectCommands::Update(_) => "update",
223 ProjectCommands::Delete(_) => "delete",
224 ProjectCommands::Init(_) => "init",
225 }
226 }
227
228 let list = list::ProjectList {
229 workspace: Some("ws".to_string()),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected