We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5f3261 commit 7f9cc50Copy full SHA for 7f9cc50
src/scimon.rs
@@ -45,6 +45,16 @@ impl Scimon {
45
Ok(())
46
}
47
48
+ fn monlib(&self, options: &str) -> Result<(), Box<dyn Error>> {
49
+ match options {
50
+ "login" => println!("monlib login"),
51
+ "logout" => MonlibLogout.logout(),
52
+ _ => (),
53
+ };
54
+
55
+ Ok(())
56
+ }
57
58
pub async fn init(&self) {
59
let (print, force_mode) = (false, false);
60
@@ -90,11 +100,7 @@ impl Scimon {
90
100
},
91
101
92
102
Commands::Auth { option } => {
93
- match option.as_str() {
94
- "login" => println!("monlib login"),
95
- "logout" => MonlibLogout.logout(),
96
- _ => (),
97
- };
103
+ let _ = self.monlib(&option);
98
104
99
105
106
0 commit comments