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

Function fields_parse

atomic-cli/src/commands/workspace/show.rs:102–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100
101 #[test]
102 fn fields_parse() {
103 let cmd = WorkspaceShow {
104 slug: "my-ws".to_string(),
105 org: Some("acme".to_string()),
106 format: "json".to_string(),
107 };
108 assert_eq!(cmd.slug, "my-ws");
109 assert_eq!(cmd.org.as_deref(), Some("acme"));
110 assert_eq!(cmd.format, "json");
111 }
112
113 #[test]
114 fn default_format_is_table() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected