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
Join an existing sphere by its ID and set up a local working copy
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)
Status
Show details about files in the sphere directory that have changed since the last time the sphere was saved
Save
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
Fields
Sync
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
Fields
Render
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
Fields
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for SphereCommand
impl RefUnwindSafe for SphereCommand
impl Send for SphereCommand
impl Sync for SphereCommand
impl Unpin for SphereCommand
impl UnwindSafe for SphereCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> FitForCBox for T
impl<T> FitForCBox for T
type CBoxWrapped = Box_<T>
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more