Home
last modified time | relevance | path

Searched refs:CmdOption (Results 1 – 3 of 3) sorted by relevance

/DragonOS/user/apps/user-manage/src/parser/
H A Dcmd.rs11 pub enum CmdOption { enum
38 impl From<String> for CmdOption { implementation
41 "-c" => CmdOption::Comment, in from()
42 "-d" => CmdOption::Dir, in from()
43 "-G" => CmdOption::Group, in from()
44 "-g" => CmdOption::Gid, in from()
45 "-s" => CmdOption::Shell, in from()
46 "-u" => CmdOption::Uid, in from()
47 "-r" => CmdOption::Remove, in from()
48 "-a" => CmdOption::Append, in from()
[all …]
H A Dparser.rs1 use super::cmd::{CmdOption, GroupCommand, PasswdCommand, UserCommand};
26 let option: CmdOption = args[idx].clone().into(); in parse()
28 CmdOption::Invalid => invalid_handle(), in parse()
29 CmdOption::Remove => { in parse()
39 CmdOption::Append => { in parse()
111 let option: CmdOption = args[idx].clone().into(); in parse()
113 CmdOption::Invalid => invalid_handle(), in parse()
/DragonOS/user/apps/user-manage/src/check/
H A Dcheck.rs4 parser::cmd::{CmdOption, GroupCommand, PasswdCommand, UserCommand},
31 CmdOption::Shell => { in check()
34 CmdOption::Comment => { in check()
37 CmdOption::Uid => { in check()
40 CmdOption::Group => { in check()
43 CmdOption::Gid => { in check()
46 CmdOption::Dir => { in check()
207 if let Some(_) = cmd.options.get(&CmdOption::Remove) { in check()
311 fn parse_options(options: &HashMap<CmdOption, String>) -> UModInfo { in parse_options() argument
315 CmdOption::Append => { in parse_options()
[all …]