pub enum OrbCommand {
    Key {
        command: KeyCommand,
    },
    Sphere {
        command: SphereCommand,
    },
    Config {
        command: ConfigCommand,
    },
    Auth {
        command: AuthCommand,
    },
    Serve {
        cors_origin: Option<Url>,
        interface: IpAddr,
        port: u16,
    },
    Status,
    Diff {
        paths: Vec<PathBuf>,
        base: Option<Cid>,
    },
    Save {
        matching: Option<Glob>,
    },
    Sync,
    Publish {
        version: Option<Cid>,
    },
}

Variants

Key

Fields

command: KeyCommand

Sphere

Fields

command: SphereCommand

Config

Fields

command: ConfigCommand

Auth

Fields

command: AuthCommand

Serve

Fields

cors_origin: Option<Url>

Optional origin to allow CORS for

interface: IpAddr

The IP address of the interface that the gateway should bind to

port: u16

The port that the gateway should listen on

Summon a gateway geist to manage the local sphere; it will accept push, fetch and other REST actions from any clients that are authorized to operate on its counterpart sphere. When it receives changes to its counterpart sphere, it will perform various actions such as publishing and/or querying the Noosphere Name System, generating static HTML and/or updating its own sphere with various related information of interest to the counterpart sphere

Status

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

Diff

Fields

paths: Vec<PathBuf>

The specific file or files to show a diff of

base: Option<Cid>

The base revision of the sphere to diff files against

If a difftool is configured, show a diff between files on disk and saved versions in the sphere

Save

Fields

matching: Option<Glob>

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

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

Publish

Fields

version: Option<Cid>

The version of the sphere to publish; if none is specified, the latest saved version will be used

Tell a configured gateway to update the published version of the sphere in the Noosphere name system

Trait Implementations

Formats the value using the given formatter. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
Assign values from ArgMatches to self.
Append to Command so it can instantiate Self. Read more
Append to Command so it can update self. Read more
Test whether Self can parse a specific subcommand

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

Calls U::from(self).

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

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Scrape the references from an impl Read. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more