Skip to content

Commit

Permalink
fix usage
Browse files Browse the repository at this point in the history
  • Loading branch information
cvilsmeier committed Nov 1, 2023
1 parent 2798045 commit f69ae3e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# CHANGELOG

## v0.0.3 - Unreleased
## v0.0.4 - Unreleased

- First version
16 changes: 10 additions & 6 deletions cmd/moni/moni.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,20 @@ func usage() {
print("")
print(" -%s", apiKeyFlag)
print(" Monibot API Key, default is %q.", defaultApiKey)
print(" You can set this also via environment variable %s.", apiKeyEnvKey)
print(" You can set this also via environment variable %s (recommended).", apiKeyEnvKey)
print(" You can find your API Key in your profile on https://monibot.io.")
print(" Note: Keep your API Key secret at all times.")
print("")
print(" -%s", trialsFlag)
print(" Max. Send trials, default is %d.", defaultTrials)
print(" Max. Send trials, default is %v.", defaultTrials)
print(" You can set this also via environment variable %s.", trialsEnvKey)
print("")
print(" -%s", delayFlag)
print(" Delay between trials, default is %d.", defaultDelay)
print(" Delay between trials, default is %v.", defaultDelayStr)
print(" You can set this also via environment variable %s.", delayEnvKey)
print("")
print(" -%s", verboseFlag)
print(" Verbose output, default is %t.", defaultVerbose)
print(" Verbose output, default is %v.", defaultVerboseStr)
print(" You can set this also via environment variable %s ('true' or 'false').", verboseEnvKey)
print("")
print("Commands")
Expand All @@ -97,7 +98,10 @@ func usage() {
print(" Get machine by id.")
print("")
print(" sample <machineId> [interval]")
print(" Send resource usage (cpu/mem/disk) samples for machine.")
print(" Send resource usage (load/cpu/mem/disk) samples for machine.")
print(" Moni consults various files (/proc/loadavg, /proc/cpuinfo)")
print(" and commands (free, df) to calculate resource usage.")
print(" It currently supports linux only.")
print(" If interval is specified, moni will keep sampling in")
print(" the background. Min. interval is 1m. If interval is left")
print(" out, moni will send one sample and then exit.")
Expand All @@ -117,7 +121,7 @@ func usage() {
print(" Value must be a non-negative 64-bit integer value.")
print("")
print(" config")
print(" Show config.")
print(" Show config values.")
print("")
print(" version")
print(" Show program version.")
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package monibot

// Version is the semver version of the monibot SDK.
const Version = "v0.0.3"
const Version = "v0.0.4"

0 comments on commit f69ae3e

Please sign in to comment.