-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configure command for preferences (#50)
* Add initial configuration command * Finish configuration * FMT
- Loading branch information
1 parent
ac45fbc
commit eefb63e
Showing
4 changed files
with
111 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,12 @@ fn main() { | |
.version(version) | ||
.author("Shaishav <[email protected]>"), | ||
) | ||
.subcommand( | ||
App::new("configure") | ||
.about("Configure settings ") | ||
.version(version) | ||
.author("Shaishav <[email protected]>"), | ||
) | ||
.get_matches(); | ||
|
||
let result = auth::init(); | ||
|
@@ -89,5 +95,8 @@ fn main() { | |
tasks::process_task_command(matches, &config, &preferences) | ||
} else if let Some(matches) = matches.subcommand_matches("summary") { | ||
summary::process_summary(matches, &config, &preferences); | ||
} else if let Some(matches) = matches.subcommand_matches("configure") { | ||
preferences::process_configuration(matches) | ||
.expect("Failed to process configuration command"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters