pub struct Config {
pub data_dir: Option<PathBuf>,
pub workdir: Option<PathBuf>,
pub auto_clone: bool,
pub open_command: Option<String>,
pub open_command_wait: bool,
pub source: SourcesConfig,
}Fields§
§data_dir: Option<PathBuf>§workdir: Option<PathBuf>Directory rq scans for existing checkouts to use as canonical repos (see crate::workdir)
instead of cloning its own copy.
auto_clone: boolClone into the data dir without asking, whenever a review’s repo isn’t found in
workdir. Set by answering “always” to the clone prompt (see set_auto_clone).
open_command: Option<String>Shell command to run in a review’s workspace instead of an interactive $SHELL when it’s
opened locally from the TUI. Run via sh -c with the workspace as cwd; the review is
described by RQ_REVIEW (source/id), RQ_SOURCE, RQ_ID and RQ_WORKSPACE.
open_command_wait: boolWhether rq suspends its TUI until open_command exits (the default). Set to false for
commands that hand off elsewhere and return - e.g. switching a tmux client - so rq keeps
running, with the command’s stdio detached. Ignored without open_command: the fallback
$SHELL needs the terminal.
source: SourcesConfig