pub enum Command {
Sync {
source: Option<String>,
dry_run: bool,
},
Show {
json: bool,
all: bool,
plain: bool,
},
Path {
id: String,
},
Fetch {
id: String,
},
Repo {
command: RepoCommand,
},
ShellInit {
shell: Shell,
},
}Variants§
Sync
Fetch review queues and update existing workspaces, removing one once its review resolves
and is clean. Never creates a new workspace - use rq fetch (or the open-locally hotkey
in rq show) for that.
Show
Show tracked reviews. Opens an interactive TUI when stdout is a terminal (arrow keys or
j/k to move, enter to open the review locally in a subshell, o to open it in your
browser, d to delete its local workspace, q to quit); prints a plain table otherwise,
or with --plain. This is the default when no subcommand is given.
Fields
Path
Print a review’s workspace path, e.g. cd $(rq path D12345).
Fetch
Fetch a review locally: resolve its canonical repo (asking before cloning one, unless
auto_clone is set) and create a worktree/workspace for it. rq sync never does this on
its own; use this (or the open-locally hotkey in rq show) for reviews that actually
warrant checking out.
Repo
Manage canonical repos (discovered by scanning workdir, or tool-managed clones).
Fields
command: RepoCommandShellInit
Print a shell function (rqcd) for sourcing in your shell rc.
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
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 Command
impl Subcommand for Command
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