Token fetch (#56)

* Added print statement and TODO

* Refactoring token fetching code

Adding two APIs. One for auth and the other for the main app

* Fixed token code

* Code formatting

* Cleanup
This commit was merged in pull request #56.
This commit is contained in:
KD
2025-08-27 16:33:18 -04:00
committed by GitHub
parent 77cb5c8599
commit 8a07718ce8
4 changed files with 93 additions and 35 deletions
+2
View File
@@ -35,6 +35,7 @@ impl ActionManager {
String::from("-p"),
String::from("-t"),
String::from("-h"),
String::from("-ha"),
String::from("-s"),
String::from("-sd"),
String::from("-sr"),
@@ -75,6 +76,7 @@ impl ActionManager {
let mut flg = models::flags::Flags::default();
// TODO: Refactor this
if self.is_valid_flag(flag) && self.does_flag_have_value(flag) {
println!("Flag has value");
flg.flag = String::from(flag);