pub enum Commands {
Show 35 variants
Post {
text: String,
media_ids: Vec<String>,
common: CommonFlags,
},
Reply {
post_id: String,
text: String,
media_ids: Vec<String>,
common: CommonFlags,
},
Quote {
post_id: String,
text: String,
common: CommonFlags,
},
Delete {
post_id: String,
force: bool,
common: CommonFlags,
},
Read {
post_id: String,
common: CommonFlags,
},
Search {
query: String,
max_results: Option<i32>,
common: CommonFlags,
},
Whoami {
common: CommonFlags,
},
User {
target_username: String,
common: CommonFlags,
},
Timeline {
max_results: Option<i32>,
common: CommonFlags,
},
Mentions {
max_results: Option<i32>,
common: CommonFlags,
},
Like {
post_id: String,
common: CommonFlags,
},
Unlike {
post_id: String,
common: CommonFlags,
},
Repost {
post_id: String,
common: CommonFlags,
},
Unrepost {
post_id: String,
common: CommonFlags,
},
Bookmark {
post_id: String,
common: CommonFlags,
},
Unbookmark {
post_id: String,
common: CommonFlags,
},
Bookmarks {
max_results: Option<i32>,
common: CommonFlags,
},
Likes {
max_results: Option<i32>,
common: CommonFlags,
},
Follow {
target_username: String,
common: CommonFlags,
},
Unfollow {
target_username: String,
common: CommonFlags,
},
Following {
max_results: Option<i32>,
of: Option<String>,
common: CommonFlags,
},
Followers {
max_results: Option<i32>,
of: Option<String>,
common: CommonFlags,
},
Mute {
target_username: String,
common: CommonFlags,
},
Unmute {
target_username: String,
common: CommonFlags,
},
Usage {
common: CommonFlags,
},
Dm {
target_username: String,
text: String,
common: CommonFlags,
},
Dms {
max_results: Option<i32>,
common: CommonFlags,
},
Auth {
command: AuthCommands,
},
Media {
command: MediaCommands,
},
Skill {
cmd: SkillCmd,
},
Schema {
command: Option<String>,
list: bool,
all: bool,
envelope: bool,
},
Completions {
shell: Shell,
},
Version,
Examples,
Validate {
file: Option<String>,
schema: Option<String>,
},
}Expand description
All subcommands.
Variants§
Post
Post to X
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Reply
Reply to a post
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Quote
Quote a post
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Delete
Delete a post
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Read
Read a post
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Search
Search recent posts
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Whoami
Show the authenticated user’s profile
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
User
Look up a user by username
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Timeline
Show your home timeline
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Mentions
Show your recent mentions
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Like
Like a post
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Unlike
Unlike a post
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Repost
Repost a post
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Unrepost
Undo a repost
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Bookmark
Bookmark a post
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Unbookmark
Remove a bookmark
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Bookmarks
List your bookmarks
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Likes
List your liked posts
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Follow
Follow a user
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Unfollow
Unfollow a user
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Following
List users you follow
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Followers
List your followers
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Mute
Mute a user
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Unmute
Unmute a user
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Usage
Show API usage (tweet caps, daily breakdown)
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Dm
Send a direct message
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Dms
List recent direct messages
Fields
common: CommonFlagsShortcut flags shared with every other shortcut command.
Auth
Authentication management
Fields
command: AuthCommandsauth subcommand to dispatch (oauth2, oauth1, app, …).
Media
Media upload operations
Fields
command: MediaCommandsmedia subcommand to dispatch (upload or status).
Skill
Install or manage the xurl-rs skill bundle
Namespace for bundle operations. xr skill install <host> shallow-clones
the xurl-rs repository into a host’s canonical skills directory so the
bundled AGENTS.md becomes discoverable to local agents.
Schema
Show JSON Schema for a command’s response type
Fields
Completions
Generate shell completion script
Version
Show xurl version information
Examples
Print a curated gallery of invocation examples grouped by use case
Validate
Validate a JSON document against a bundled response schema.
Reads JSON from stdin (when no file argument is given or - is
passed) or from the supplied file, deserializes it into the
requested typed response, and emits an ok / validation-failed
envelope. Use --schema to pin a specific shape (e.g. tweet,
user); without it the command auto-detects from the top-level
shape.
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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 Commands
impl Subcommand for Commands
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