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

Fields

§owner_key: String

The pet name of a key to assign as the owner of the sphere

Initialize a new sphere and assign a key as its owner

§

Join

Fields

§local_key: String

The pet name of a key to use when requesting access to the sphere

§gateway_url: Url

The URL for a gateway API host that the owner key of this sphere is authorized to use

§authorization: Option<String>

The identity of the authorization that allows the specified key to join the sphere (if already known)

§id: Did

The identity of an existing sphere to join

§render_depth: Option<u32>

The maximum depth to traverse through followed spheres when rendering updates

Join an existing sphere by its ID and set up a local working copy

§

Status

Fields

§id: bool

Only output the orb id

Show details about files in the sphere directory that have changed since the last time the sphere was saved

§

Save

Fields

§render_depth: Option<u32>

The maximum depth to traverse through followed spheres when rendering updates

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

§auto_retry: u32

Automatically retry the attempt to sync this number of times

§render_depth: Option<u32>

The maximum depth to traverse through followed spheres when rendering updates

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

§render_depth: Option<u32>

The maximum depth to traverse through followed spheres when rendering updates

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

§

Config

Fields

§

Auth

Fields

§command: AuthCommand

Trait Implementations§

source§

impl Debug for SphereCommand

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for SphereCommand

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Subcommand for SphereCommand

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self. Read more
source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can update self. Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CompatExt for T

§

fn compat(self) -> Compat<T>

Applies the [Compat] adapter by value. Read more
§

fn compat_ref(&self) -> Compat<&T>

Applies the [Compat] adapter by shared reference. Read more
§

fn compat_mut(&mut self) -> Compat<&mut T>

Applies the [Compat] adapter by mutable reference. Read more
§

impl<T> FitForCBox for T

§

type CBoxWrapped = Box_<T>

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> ManuallyDropMut for T

§

type Ret = ManuallyDrop<T>

§

fn manually_drop_mut<'__>(&'__ mut self) -> &'__ mut ManuallyDrop<T>

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> References<RawCodec> for T

source§

fn references<R, E>(_c: RawCodec, _r: &mut R, _set: &mut E) -> Result<(), Error>where R: Read, E: Extend<Cid<64>>,

Scrape the references from an impl Read. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> UpcastAny for Twhere T: 'static,

§

fn upcast_any(&self) -> &(dyn Any + 'static)

§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
§

impl<S> ConditionalSend for Swhere S: Send,

§

impl<S> ConditionalSync for Swhere S: Send + Sync,

§

impl<S> TargetConditionalSendSync for Swhere S: Send + Sync,

source§

impl<T> TryBundleSendSync for Twhere T: Send + Sync,

source§

impl<U> UcanStoreConditionalSend for Uwhere U: Send,

source§

impl<U> UcanStoreConditionalSendSync for Uwhere U: Send + Sync,