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

Function command_fields

atomic-cli/src/commands/project/init.rs:216–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214
215 #[test]
216 fn command_fields() {
217 let cmd = ProjectInit {
218 name: "my-app".to_string(),
219 workspace: Some("my-ws".to_string()),
220 kind: Some("rust".to_string()),
221 description: Some("My app".to_string()),
222 visibility: Visibility::Private,
223 org: None,
224 };
225
226 assert_eq!(cmd.name, "my-app");
227 assert_eq!(cmd.workspace.as_deref(), Some("my-ws"));
228 assert_eq!(cmd.kind.as_deref(), Some("rust"));
229 assert_eq!(cmd.description.as_deref(), Some("My app"));
230 assert_eq!(cmd.visibility, Visibility::Private);
231 assert!(cmd.org.is_none());
232 }
233
234 #[test]
235 fn default_visibility_is_private() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected