pub struct TemplateOptions {Show 24 fields
pub file: PathBuf,
pub output: Option<PathBuf>,
pub select: Option<String>,
pub story: String,
pub find: Option<String>,
pub regex: Option<String>,
pub ignore_case: bool,
pub changed: bool,
pub by: Vec<String>,
pub context: usize,
pub accept_change: Vec<String>,
pub reject_change: Vec<String>,
pub author: String,
pub datetime: Option<String>,
pub track: String,
pub existing_revisions: String,
pub keep_others: bool,
pub expect_sha256: Option<String>,
pub dry_run: bool,
pub report: Option<PathBuf>,
pub force: bool,
pub json: bool,
pub jsonl: bool,
pub refresh_plan: Option<PathBuf>,
}Expand description
Generate unchanged desired-text rows; deliberately author edits before apply.
Fields§
§file: PathBufOriginal DOCX. Generation never modifies it.
output: Option<PathBuf>Complete PlanV2 JSON; explicit - writes only the raw plan to stdout.
select: Option<String>Printed paragraph/container IDs or closed ranges, frozen on source S.
story: Stringbody, a printed story ID, or all (default: all).
find: Option<String>Literal search of original-source final logical text.
regex: Option<String>Explicit regex search of original-source final logical text.
ignore_case: boolSearch only; editing remains exact.
changed: boolBlocks intersecting original revisions/comments.
by: Vec<String>Existing-mark author filter; repeat for a union of authors. Requires –changed.
context: usizeRead-only original-source neighbours; never additional editing scope.
accept_change: Vec<String>Original revision ID to accept in the saved plan; repeatable.
reject_change: Vec<String>Original revision ID to reject in the saved plan; repeatable.
Author for later revisions/comments.
datetime: Option<String>Frozen timestamp; default current UTC.
track: StringTrack new edits when the plan is applied.
existing_revisions: StringRemaining history after the explicitly selected decisions.
keep_others: boolRefuse to accept or reject another author’s tracked change, and
to delete, resolve, reopen or reword their comment. Restore,
strike, a comment and a reply stay allowed. JUBARTE_KEEP_OTHERS=1
sets the same guard. Another author is anyone other than
–author (Jubarte when –author is left out). The generated plan
carries "others": "keep".
expect_sha256: Option<String>Require these exact source bytes.
dry_run: boolReport coverage and readiness; write no files. No -o required.
report: Option<PathBuf>Explicit receipt path (not another plan); not written during dry-run.
force: boolReplace only an explicitly named existing output; never an input alias.
json: boolOne compact result envelope; conflicts with -o -.
jsonl: boolResult records ending in a terminal result; never a plan encoding.
refresh_plan: Option<PathBuf>Refresh this plan: write it back whole (every operation, scope,
decisions, the others guard, attribution), with each rewrite of
the generated rows taking a fresh before_sha256 from the source. The
plan must be bound to this source.
Trait Implementations§
Source§impl Args for TemplateOptions
impl Args for TemplateOptions
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 Debug for TemplateOptions
impl Debug for TemplateOptions
Source§impl FromArgMatches for TemplateOptions
impl FromArgMatches for TemplateOptions
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.