pub enum Cmd {
Show 16 variants
Login {
no_browser: bool,
name: Option<String>,
},
Logout,
Whoami,
Push(PushArgs),
Watch(WatchArgs),
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 through the browser and store an API key for this machine
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)
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>
Assign values from
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>
Assign values from
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
Append to
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
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Cmd
impl RefUnwindSafe for Cmd
impl Send for Cmd
impl Sync for Cmd
impl Unpin for Cmd
impl UnsafeUnpin for Cmd
impl UnwindSafe for Cmd
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
Mutably borrows from an owned value. Read more