pub struct ValidateOptions {
pub paths: Vec<PathBuf>,
pub cwd: PathBuf,
pub fix: bool,
pub cache: CacheMode,
pub query: Option<Expr>,
pub changed: Vec<PathBuf>,
pub home: Option<PathBuf>,
}Expand description
The options of sokf validate.
Fields§
§paths: Vec<PathBuf>PATHS: the paths that the report is filtered to.
cwd: PathBufThe current directory, which PATHS resolve from.
fix: bool--fix: fix what the tool can fix, then check again.
cache: CacheModeThe cache mode, which --no-cache sets to Off.
query: Option<Expr>--query: the expression that projects the report.
changed: Vec<PathBuf>--changed: the files that the caller knows have changed, each a
path from the current directory or from the repository root. The
cache reads the file metadata of only these files (CLI-4_AC-21).
home: Option<PathBuf>The home directory, whose settings a harness installed at the
project scope can read, so that the check of the installed harnesses
sees what sokf harness install sees (CLI-4_AC-40).
Trait Implementations§
Source§impl Clone for ValidateOptions
impl Clone for ValidateOptions
Auto Trait Implementations§
impl !RefUnwindSafe for ValidateOptions
impl !Send for ValidateOptions
impl !Sync for ValidateOptions
impl !UnwindSafe for ValidateOptions
impl Forget for ValidateOptions
impl Freeze for ValidateOptions
impl Move for ValidateOptions
impl Unpin for ValidateOptions
impl UnsafeUnpin for ValidateOptions
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