Enum noosphere_cli::cli::SphereCommand
source · pub enum SphereCommand {
Create {
owner_key: String,
},
Join {
local_key: String,
gateway_url: Url,
authorization: Option<String>,
id: Did,
render_depth: Option<u32>,
},
Status {
id: bool,
},
Save {
render_depth: Option<u32>,
},
Sync {
auto_retry: u32,
render_depth: Option<u32>,
},
Render {
render_depth: Option<u32>,
},
History,
Follow {
command: FollowCommand,
},
Config {
command: ConfigCommand,
},
Auth {
command: AuthCommand,
},
}Expand description
Create a new sphere or connect another device to an existing one
Variants§
Create
Initialize a new sphere and assign a key as its owner
Join
Fields
gateway_url: UrlThe URL for a gateway API host that the owner key of this sphere is authorized to use
The identity of the authorization that allows the specified key to join the sphere (if already known)
Join an existing sphere by its ID and set up a local working copy
Status
Show details about files in the sphere directory that have changed since the last time the sphere was saved
Save
Fields
Saves changed files to a sphere, creating and signing a new revision in the process; does nothing if there have been no changes to the files since the last revision
Sync
Fields
Synchronizes the local sphere with the copy in a configured gateway; note that this is a “conflict-free” sync that may cause local changes to be overwritten in cases where two or more clients have made changes to the same files
Render
Fields
Force a render of local sphere content as well as the peer graph; note that this will overwrite any unsaved changes to local sphere content
History
Print a changelog of sphere in a human readable format
Follow
Fields
command: FollowCommandConfig
Fields
command: ConfigCommandAuth
Fields
command: AuthCommandTrait Implementations§
source§impl Debug for SphereCommand
impl Debug for SphereCommand
source§impl FromArgMatches for SphereCommand
impl FromArgMatches for SphereCommand
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
ArgMatches to self.source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
ArgMatches to self.source§impl Subcommand for SphereCommand
impl Subcommand for SphereCommand
source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand