pub struct CheckArgs {Show 16 fields
pub playset_path: Option<PathBuf>,
pub format: CheckOutputFormat,
pub output: Option<PathBuf>,
pub strict: bool,
pub analysis_mode: AnalysisModeArg,
pub channel: CheckChannelArg,
pub parse_issue_report: Option<PathBuf>,
pub no_game_base: bool,
pub no_color: bool,
pub fix: bool,
pub unsafe_fixes: bool,
pub diff: bool,
pub patch_mod: Option<PathBuf>,
pub in_place: bool,
pub restore: Option<PathBuf>,
pub config: Option<PathBuf>,
}Fields§
§playset_path: Option<PathBuf>§format: CheckOutputFormat§output: Option<PathBuf>§strict: bool§analysis_mode: AnalysisModeArg§channel: CheckChannelArg§parse_issue_report: Option<PathBuf>§no_game_base: boolSkip loading vanilla game files; the lowest-precedence enabled mod is treated as a synthetic base for diff-and-merge.
no_color: bool§fix: boolFix the syntax errors Foch repairs by itself, as a linter’s –fix. A mod directory is fixed in place; a playset needs –patch-mod or –in-place. Exits with 1 while errors remain unfixed.
unsafe_fixes: boolAlso apply unsafe fixes, which settle what a merge holds for review: leave out a statement that cannot be read with confidence, or apply the likeliest repair of a definition that cannot be read at all.
diff: boolShow the fixes as a unified diff and write nothing. Exits with 1 when there is something to fix.
patch_mod: Option<PathBuf>With –fix: write a patch mod holding only the fixed files into this new or empty directory, to load after the mods it fixes, instead of changing them.
in_place: boolWith –fix on a playset or a Steam Workshop mod: fix the mods’ own files, after backing up each original, as a mod directory of one’s own is fixed. Steam replaces a Workshop mod’s files when it updates, which undoes the fix.
restore: Option<PathBuf>Put back the originals an earlier in-place –fix backed up into this directory, for each file that still holds the fixed bytes.
config: Option<PathBuf>Load reviewed repairs from this foch.toml instead of the default search path.
Trait Implementations§
Source§impl Args for CheckArgs
impl Args for CheckArgs
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 CheckArgs
impl CommandFactory for CheckArgs
Source§impl FromArgMatches for CheckArgs
impl FromArgMatches for CheckArgs
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.Source§impl Parser for CheckArgs
impl Parser for CheckArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for CheckArgs
impl RefUnwindSafe for CheckArgs
impl Send for CheckArgs
impl Sync for CheckArgs
impl Unpin for CheckArgs
impl UnsafeUnpin for CheckArgs
impl UnwindSafe for CheckArgs
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.