pub(crate) struct StanhopeArgs {
pub(crate) listgen: String,
pub(crate) webmenu: bool,
pub(crate) process_ebml: String,
pub(crate) scriptify_process: Vec<String>,
pub(crate) archive_process: String,
pub(crate) inspect_process: String,
pub(crate) cleanup_previous: String,
pub(crate) verbose: bool,
pub(crate) ebml_help: bool,
}Expand description
Command Line Interface (CLI) argument structure
Fields§
§listgen: StringRead a single CSV file to create many new first-draft processes from scratch
- CSV-FILE
- Comma-separated text file that strictly conforms to the template below
- Exception: TFlag columns (7th column and beyond) are user-defined
- Free Excel file to modify and export as CSV: https://stanhope.strativusgroup.com/latest/DocumentList.xlsx
| “Document Number” | “Title” | “Subject” | “Product” | “Author” | “Reviewer” | TFlag | TFlag | … |
|---|---|---|---|---|---|---|---|---|
| … | … | … | … | … | … | x | … | |
| … | … | … | … | … | … | x | … | |
| … | … | … | … | … | … | … | ||
| … | … | … | … | … | … | x | x | … |
Generate (or overwrite) a menu that indexes useful information for every process in a library WebMenu.html is generated in the Process Library root folder
process_ebml: StringRead a single EBML and produce an HTML file as well as a PDF of that process
- DOCUMENT-NUMBER should be surrounded by quotes, particularly if wildcards are used
- Wildcards are accepted, e.g. *, ?, [0-9]
- Wildcards follow “glob” formatting: https://docs.rs/glob/0.3.3/glob/struct.Pattern.html
scriptify_process: Vec<String>Export every “Command” line from a single process into a script with a defined language/format
- DOCUMENT-NUMBER should be surrounded by quotes, particularly if wildcards are used
- Wildcards are accepted, e.g. *, ?, [0-9]
- Wildcards follow “glob” formatting: https://docs.rs/glob/0.3.3/glob/struct.Pattern.html
- SCRIPT-FORMAT can be “bash” or “powershell” or “python” or “applescript”
- PAUSE-AFTER-EACH
- {“true”,“1”} to insert a format-specific wait after each command
- {“false”,“0”} to script with no waiting
archive_process: StringOnly perform the archiving process, i.e. create a new archive in “previous” Note: this operation is performed at the end of every “Process EBML” action This option only performs the archiving, not the processing.
- DOCUMENT-NUMBER should be surrounded by quotes, particularly if wildcards are used
- Wildcards are accepted, e.g. *, ?, [0-9]
- Wildcards follow “glob” formatting: https://docs.rs/glob/0.3.3/glob/struct.Pattern.html
inspect_process: StringInspect a document by reading its EBML and returning information (no file generation)
- DOCUMENT-NUMBER should be surrounded by quotes, particularly if wildcards are used
- Wildcards are accepted, e.g. *, ?, [0-9]
- Wildcards follow “glob” formatting: https://docs.rs/glob/0.3.3/glob/struct.Pattern.html
cleanup_previous: StringDelete all but one “previous” version for each Revision for a given process For example, for a document that has many “previous” copies across four Revisions (-,A,B,C), then this option deletes all subdirectories except four: the one with the latest timestamp for each Revision variant
verbose: boolOutput more information to stdout as Stanhope executes (flag)
ebml_help: boolDisplay syntax help for Easy Button Markup Language (EBML)
Trait Implementations§
Source§impl Args for StanhopeArgs
impl Args for StanhopeArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§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 StanhopeArgs
impl CommandFactory for StanhopeArgs
Source§impl Debug for StanhopeArgs
impl Debug for StanhopeArgs
Source§impl FromArgMatches for StanhopeArgs
impl FromArgMatches for StanhopeArgs
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.