pub enum Cmd {
Show 18 variants
Login {
no_browser: bool,
name: Option<String>,
},
Logout,
Whoami,
Push(PushArgs),
Watch(WatchArgs),
Pull(PullArgs),
Status {
path: Option<PathBuf>,
},
Wait(WaitArgs),
Say {
doc: String,
text: String,
reply_to: Option<i64>,
},
Ls {
query: Option<String>,
tag: Option<String>,
kind: Option<String>,
project: Option<String>,
limit: u32,
},
Show {
doc: String,
},
Get {
doc: String,
path: Option<String>,
rev: Option<i64>,
output: Option<PathBuf>,
},
Tag {
doc: String,
changes: Vec<String>,
},
Rm {
doc: String,
},
Open {
doc: String,
},
Keys(KeysCmd),
Project(ProjectCmd),
Skill,
}Variants§
Login
Sign in: allow the printed link in a browser on any device; stores an API key here
Fields
Logout
Revoke and forget the stored key
Whoami
Show the server, user and key in use
Push(PushArgs)
Publish a file or folder; replaces the remembered document if there is one
Watch(WatchArgs)
Re-push whenever files change (debounced 500 ms)
Pull(PullArgs)
Copy the project’s documents from the server into this folder
Status
List what changed here and what is newer on the server
Wait(WaitArgs)
Block until feedback arrives from the page
Say
Show a message in the open page
Fields
Ls
List or search the documents you can open
Fields
Show
Metadata, files and revisions of a document
Get
Download raw content
Fields
Tag
Edit tags: +add -remove (a bare name adds)
Rm
Delete a document
Open
Open a document in the browser
Keys(KeysCmd)
Manage your API keys
Project(ProjectCmd)
Make a folder a project, list your projects, and arrange a project’s tree
Skill
Print a short usage guide to paste into an agent’s instructions
Trait Implementations§
Source§impl FromArgMatches for Cmd
impl FromArgMatches for Cmd
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 Cmd
impl Subcommand for Cmd
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 subcommand