pub enum TagsConfigCommand {
Get {
path: String,
project: String,
},
Create {
path: String,
file: PathBuf,
project: String,
},
Edit {
path: String,
file: PathBuf,
project: String,
},
Delete {
paths: Vec<String>,
project: String,
},
}Expand description
tags config … — the configuration CRUD subfamily (05-05,
TAGS-05): the get→edit-file→write-back surgical loop. Definition
files are the configure shape (README’s traps table: tagType
discriminator, nested children, alarms-as-LIST).
Variants§
Get
Get a tag’s configuration as (pretty) JSON — stringified value/defaultValue sub-dicts re-parsed into real JSON
Fields
Create
Create a tag from a JSON definition file (- = stdin) —
aborts on an existing node (collision policy ‘a’)
Fields
Edit
Edit a tag’s configuration from a JSON definition file (- =
stdin) — overwrites that single node (collision policy ‘o’)
Fields
Delete
Delete tag configurations — destructive, refused without –yes (the guard fires before ANY resolution: zero network work)
Trait Implementations§
Source§impl Debug for TagsConfigCommand
impl Debug for TagsConfigCommand
Source§impl FromArgMatches for TagsConfigCommand
impl FromArgMatches for TagsConfigCommand
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>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for TagsConfigCommand
impl Subcommand for TagsConfigCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for TagsConfigCommand
impl RefUnwindSafe for TagsConfigCommand
impl Send for TagsConfigCommand
impl Sync for TagsConfigCommand
impl Unpin for TagsConfigCommand
impl UnsafeUnpin for TagsConfigCommand
impl UnwindSafe for TagsConfigCommand
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