Skip to content

Commit

Permalink
Merge pull request #429 from JakeRoggenbuck/update-help
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeRoggenbuck authored Sep 27, 2022
2 parents da038eb + 7385116 commit 260b68b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 20 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,10 @@ FLAGS:
-V, --version Prints version information
SUBCOMMANDS:
daemon Controls interaction with a running daemon
get Get a specific value or status
help Prints this message or the help of the given subcommand(s)
initconfig Initialize config
interactive Interactive mode for auto clock speed commands
monitor Monitor each cpu, it's min, max, and current speed, along with the governor
run Run the daemon, this checks and edit your cpu's speed
Expand Down
44 changes: 24 additions & 20 deletions src/interactive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,30 @@ use std::io::{stdin, stdout, Write};

pub fn help() {
const HELP_TEXT: &str = "\
- get
- freq
- cpus
- temp
- govs
- power
- usage
- turbo
- available_governors
- set
- gov
- daemon
- disable
- enable
- status
- toggle
E.g. 'get cpus'
- exit
- get
- freq
- cpus
- temp
- govs
- power
- usage
- turbo
- speeds
- available_governors
- battery_condition
- set
- gov
- daemon
- disable
- enable
- status
- toggle
E.g. 'get cpus'
";

println!("{}\n", "Help:".bold().green());
Expand Down

0 comments on commit 260b68b

Please sign in to comment.