Enum noosphere_cli::native::OrbCommand
source · 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: KeyCommandSphere
Fields
command: SphereCommandConfig
Fields
command: ConfigCommandAuth
Fields
command: AuthCommandServe
Fields
interface: IpAddrThe IP address of the interface that the gateway should bind to
port: u16The 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
If a difftool is configured, show a diff between files on disk and saved versions in the sphere
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
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
Tell a configured gateway to update the published version of the sphere in the Noosphere name system
Trait Implementations
sourceimpl Debug for OrbCommand
impl Debug for OrbCommand
sourceimpl FromArgMatches for OrbCommand
impl FromArgMatches for OrbCommand
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
sourcefn 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>
sourcefn 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.sourcefn 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.sourceimpl Subcommand for OrbCommand
impl Subcommand for OrbCommand
sourcefn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
sourcefn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
sourcefn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand