reactive_graph_client/client/system/remotes/
commands.rs

1use crate::client::system::remotes::args::InstanceAddressArgs;
2use clap::Subcommand;
3
4#[derive(Subcommand, Debug, Clone)]
5pub(crate) enum RemotesCommands {
6    /// Lists the remotes.
7    #[non_exhaustive]
8    List,
9
10    /// Adds a remote.
11    #[non_exhaustive]
12    Add(InstanceAddressArgs),
13
14    /// Removes a remote.
15    #[non_exhaustive]
16    Remove(InstanceAddressArgs),
17
18    /// Removes all remotes.
19    #[non_exhaustive]
20    RemoveAll,
21
22    /// Updates a remote.
23    #[non_exhaustive]
24    Update(InstanceAddressArgs),
25
26    /// Updates all remotes.
27    #[non_exhaustive]
28    UpdateAll,
29
30    /// Fetches the remotes from the given remote.
31    #[non_exhaustive]
32    FetchRemotesFromRemote(InstanceAddressArgs),
33
34    /// Fetches all remotes from all remotes.
35    #[non_exhaustive]
36    FetchRemotesFromAllRemotes,
37}