aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Lawrence <scott+git@ineffectivetheory.com>2024-11-28 10:35:38 -0700
committerScott Lawrence <scott+git@ineffectivetheory.com>2024-11-28 10:35:38 -0700
commit31926e63a3764ceaafbcb35e85254c0c0adde1a6 (patch)
tree8793b329152eb659b260585cac8e4a9322f62aff
parent4a85d94aae144ab988b647702e3f1051ca6afa7f (diff)
downloadvaranus-31926e63a3764ceaafbcb35e85254c0c0adde1a6.tar.gz
varanus-31926e63a3764ceaafbcb35e85254c0c0adde1a6.tar.bz2
varanus-31926e63a3764ceaafbcb35e85254c0c0adde1a6.zip
All the options that are not yet used
-rw-r--r--src/main.rs10
-rw-r--r--varanus.111
2 files changed, 20 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 8647734..053bf09 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -89,6 +89,12 @@ struct Cli {
delay: f64,
#[arg(short='s', long, default_value="varanus.sock")]
socket: String,
+ #[arg(short='f', long)]
+ format: String,
+ #[arg(long)]
+ power: bool,
+ #[arg(long)]
+ memory: bool,
}
#[derive(Debug, Serialize, Deserialize, Default)]
@@ -294,7 +300,9 @@ fn main() {
}
} else {
match get_state(args.socket.clone()) {
- Ok(state) => println!("{:#?}", state),
+ Ok(state) => {
+ println!("{:#?}", state)
+ },
Err(_) => eprintln!("Couldn't open {}", &args.socket)
}
}
diff --git a/varanus.1 b/varanus.1
index c76fd41..15ed995 100644
--- a/varanus.1
+++ b/varanus.1
@@ -9,10 +9,12 @@ varanus \- description
.
.SY "varanus"
.RI [\-s\~ socket ]
+.RI [\-f\~ format ]
.YS
.SH DESCRIPTION
.SS Daemon
.SS Querying
+.SS Format strings
.
.SH OPTIONS
.TP
@@ -22,9 +24,18 @@ Start daemon. Without this option, \fBvaranus\fR is started in client mode (prod
\fB\-D\fR, \fB\-\-delay\fR
(Daemon only)
.TP
+\fB\-f\fR, \fB\-\-format\fR
+Format string for querying the monitor.
+.TP
\fB\-h\fR, \fB\-\-help\fR
Display help: primarily, a summary of all options.
.TP
+\fB\-\-power\fR
+Display only a summary of power
+.TP
+\fB\-\-memory\fR
+Display only a summary of memory
+.TP
\fB\-s\fR, \fB\-\-socket\fR
Socket file
.TP