pub enum ClientCmd {
Show 20 variants
Whoami,
Tools,
Send {
channel: Option<String>,
to: Option<String>,
body: String,
reply_to: Option<i64>,
file: Vec<PathBuf>,
},
Attach {
task: String,
file: PathBuf,
content_type: Option<String>,
},
Download {
id: i64,
out: Option<PathBuf>,
},
Ask {
to: String,
question: Option<String>,
timeout_seconds: Option<i64>,
resume_id: Option<i64>,
},
Read {
scope: String,
history: bool,
limit: i64,
},
Search {
query: String,
limit: i64,
},
Channels,
ChannelCreate {
name: String,
topic: Option<String>,
},
Agents {
online: bool,
},
Beat {
status: Option<String>,
repo: Option<String>,
branch: Option<String>,
activity: Option<String>,
ttl_seconds: Option<i64>,
},
Tasks {
status: Option<String>,
mine: bool,
},
Task(TaskCmd),
Notes {
scope: Option<String>,
tag: Option<String>,
},
Note(NoteCmd),
Wait {
timeout_seconds: Option<i64>,
kinds: Vec<String>,
},
Lock(LockCmd),
Digest {
hours: i64,
},
Call {
tool: String,
args: String,
},
}Variants§
Whoami
Who am I on the bus, and is anything waiting for me?
Tools
List the tools the server exposes (sanity check).
Send
Send a message: –channel to broadcast, –to for a direct message.
Fields
Attach
Attach a file to a task.
Download
Download an attachment by id.
Ask
Ask a teammate’s agent and wait for the answer.
Fields
Read
Read messages (“all”, “inbox”, or a channel name).
Search
Full-text search messages.
Channels
List channels.
ChannelCreate
Create a channel.
Agents
Who is on the bus and what are they doing?
Beat
Publish your own presence.
Fields
Tasks
List tasks.
Task(TaskCmd)
Operate on a single task.
Notes
List notes.
Note(NoteCmd)
Operate on a single note.
Wait
Block until something happens on the bus (or the timeout passes).
Lock(LockCmd)
Advisory locks on shared resources.
Digest
Summary of the team’s recent activity.
Call
Escape hatch: call any tool with raw JSON arguments.
Trait Implementations§
Source§impl FromArgMatches for ClientCmd
impl FromArgMatches for ClientCmd
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 ClientCmd
impl Subcommand for ClientCmd
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 ClientCmd
impl RefUnwindSafe for ClientCmd
impl Send for ClientCmd
impl Sync for ClientCmd
impl Unpin for ClientCmd
impl UnsafeUnpin for ClientCmd
impl UnwindSafe for ClientCmd
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more