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

Class Default

atomic-cli/src/commands/identity/mod.rs:260–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258/// Set the default identity.
259#[derive(Debug, clap::Args)]
260pub struct Default {
261 /// Name of the identity to set as default.
262 ///
263 /// If not provided with --clear, this is required.
264 #[arg(required_unless_present = "clear")]
265 pub name: Option<String>,
266
267 /// Usage context to set the default for.
268 ///
269 /// If not specified, sets the global default.
270 #[arg(long, short = 'u')]
271 pub usage: Option<String>,
272
273 /// Clear the default identity instead of setting one.
274 #[arg(long, conflicts_with = "name")]
275 pub clear: bool,
276}
277
278impl Command for Default {
279 fn run(&self) -> CliResult<()> {

Callers

nothing calls this directly

Implementers 15

stash.rsatomic-cli/src/commands/stash.rs
remove.rsatomic-cli/src/commands/remove.rs
add.rsatomic-cli/src/commands/add.rs
status.rsatomic-cli/src/commands/status.rs
init.rsatomic-cli/src/commands/init.rs
restore.rsatomic-cli/src/commands/restore.rs
revise.rsatomic-cli/src/commands/revise.rs
format.rsatomic-cli/src/commands/record/format.
mod.rsatomic-cli/src/commands/remote/mod.rs
list.rsatomic-cli/src/commands/workspace/list
push.rsatomic-cli/src/commands/git/push.rs
parallel.rsatomic-cli/src/commands/git/parallel.r

Calls

no outgoing calls

Tested by

no test coverage detected