pub struct Args {
pub prompt_file: PathBuf,
pub model: Option<String>,
pub temperature: Option<f32>,
pub provider: Option<String>,
pub config: PathBuf,
pub max_tokens: Option<u32>,
pub diff_file: Option<String>,
pub no_cache: bool,
pub dry_run: bool,
}Expand description
Command-line arguments for the rs-guard review tool.
Fields§
§prompt_file: PathBufPath to system prompt markdown file.
model: Option<String>LLM model identifier (default: provider-specific).
temperature: Option<f32>Sampling temperature (0.0 - 2.0). Default: 0.1.
provider: Option<String>LLM provider to use. Default: deepseek.
config: PathBufPath to configuration TOML file.
max_tokens: Option<u32>Maximum tokens for LLM completions.
diff_file: Option<String>Path to a pre-existing diff file to review instead of fetching from GitHub.
When set, rs-guard reads the diff content from this file path
instead of calling the GitHub API. Useful in CI when the diff has
already been generated (e.g. by git diff or a prior workflow step).
If the file does not exist, an error is returned.
no_cache: boolBypass the response cache, forcing an LLM API call.
dry_run: boolRun the full pipeline but do not submit reviews or block commits.
Useful for testing configuration and prompt changes without affecting the repository. Always exits with code 0.
Trait Implementations§
Source§impl Args for Args
impl Args for Args
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.