cli/cli/cli_args/commands_remote.rs
1// SPDX-License-Identifier: Apache-2.0
2//! Remote command definitions.
3
4use clap::Subcommand;
5
6#[derive(Subcommand, Clone)]
7pub enum RemoteCommands {
8 /// List configured remotes.
9 List,
10
11 /// Add a remote.
12 Add {
13 /// Remote name.
14 name: String,
15 /// Hosted Heddle endpoint or local native Heddle repository path.
16 url: String,
17 },
18
19 /// Remove a remote.
20 Remove {
21 /// Remote name.
22 name: String,
23 },
24
25 /// Set the default Heddle remote for pull and push.
26 SetDefault {
27 /// Existing remote name.
28 name: String,
29 },
30
31 /// Show remote details.
32 Show {
33 /// Remote name.
34 name: String,
35 },
36}