pub enum SubCmd {
Show 22 variants
Set {
alias: String,
path: Vec<String>,
},
Remove {
alias: String,
},
Rename {
alias: String,
new_alias: String,
},
Modify {
alias: String,
path: Vec<String>,
},
Note {
alias: String,
category: String,
},
Denote {
alias: String,
category: String,
},
List {
part: Option<String>,
},
Contain {
alias: String,
containers: Option<String>,
},
Report {
content: Vec<String>,
},
Reportctl {
action: String,
arg: Option<String>,
},
Check {
line_count: Option<String>,
},
Search {
line_count: String,
target: String,
fuzzy: Option<String>,
},
Todo {
content: Vec<String>,
},
Concat {
name: String,
content: Vec<String>,
},
Time {
function: String,
arg: String,
},
Log {
key: String,
value: String,
},
Change {
part: String,
field: String,
value: String,
},
Clear,
Version,
Help,
Exit,
Completion {
shell: Option<String>,
},
}Variants§
Set
设置别名(路径/URL)
Remove
删除别名
Rename
重命名别名
Modify
修改别名对应的路径
Note
标记别名为指定分类(browser/editor/vpn/outer_url/script)
Denote
解除别名的分类标记
List
列出别名
Contain
在指定分类中查找别名
Report
写入日报
Reportctl
日报元数据操作(new/sync/push/pull)
Fields
Check
查看日报最近 N 行
Search
在日报中搜索关键字
Fields
Todo
待办备忘录(无参数进入 TUI 界面,有参数快速添加)
Concat
创建脚本
Time
倒计时器
Log
日志模式设置
Change
直接修改配置文件中的某个字段
Clear
清屏
Version
版本信息
Help
帮助信息
Exit
退出(交互模式)
Completion
生成 shell 补全脚本
Trait Implementations§
Source§impl FromArgMatches for SubCmd
impl FromArgMatches for SubCmd
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 SubCmd
impl Subcommand for SubCmd
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 SubCmd
impl RefUnwindSafe for SubCmd
impl Send for SubCmd
impl Sync for SubCmd
impl Unpin for SubCmd
impl UnsafeUnpin for SubCmd
impl UnwindSafe for SubCmd
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
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>
Converts
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>
Converts
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 more