use super::*; pub fn cmds() -> impl Iterator { let cfg = ["config", "cfg"]; let autoproxy = ["autoproxy", "ap"]; [ command!([cfg, autoproxy, ["account", "ac"]], "cfg_ap_account_show") .help("Shows autoproxy status for the account"), command!( [cfg, autoproxy, ["account", "ac"], Toggle], "cfg_ap_account_update" ) .help("Toggles autoproxy for the account"), command!([cfg, autoproxy, ["timeout", "tm"]], "cfg_ap_timeout_show") .help("Shows the autoproxy timeout"), command!( [ cfg, autoproxy, ["timeout", "tm"], any!(Disable, Reset, ("timeout", OpaqueString::SINGLE)) // todo: we should parse duration / time values ], "cfg_ap_timeout_update" ) .help("Sets the autoproxy timeout"), ] .into_iter() }