Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update help #429

Merged
merged 2 commits into from
Sep 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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