pub struct Config {
pub path: String,
pub check: bool,
pub globs: Vec<String>,
pub list: bool,
pub force: bool,
pub version: bool,
}
Expand description
A JavaScript / Typescript import sorter specifically built for JVS.
Fields§
§path: String
path where to search. Defaults to the current directory.
check: bool
whether only check import order
globs: Vec<String>
globs to match files against.
Multiple globs can be separated by a comma ,
.
list: bool
list included files, then stops
force: bool
forces sorting when it is dangerous
version: bool
display version
Implementations§
Trait Implementations§
source§impl FromArgs for Config
impl FromArgs for Config
source§fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
Construct the type from an input set of arguments. Read more
source§fn redact_arg_values(
__cmd_name: &[&str],
__args: &[&str]
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values( __cmd_name: &[&str], __args: &[&str] ) -> Result<Vec<String>, EarlyExit>
Get a String with just the argument names, e.g., options, flags, subcommands, etc, but
without the values of the options and arguments. This can be useful as a means to capture
anonymous usage statistics without revealing the content entered by the end user. Read more
impl TopLevelCommand for Config
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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