Skip to content

Commit 40ac180

Browse files
committed
Bind command to root
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 7238886 commit 40ac180

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

cmd/logs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ range of time.`,
2121
Example: `# Logs from all VMs over the past 15 minutes
2222
actuated-cli logs --owner=OWNER --age=15m HOST
2323
24-
# All logs from a specific VM using its hostname as the --id
24+
# Get the logs from a specific VM using its hostname as the --id
2525
actuated-cli logs --owner=OWNER --id=ID HOST
2626
`,
2727
}

cmd/metering.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ func makeMetering() *cobra.Command {
1818

1919
Example: `# Get the metering snapshot from a specific VM using its hostname as the --id
2020
actuated-cli metering --owner=OWNER --id=ID HOST
21+
22+
# Pipe to vmmeter for pretty-printing
23+
24+
actuated-cli metering --owner=OWNER --id=ID HOST | vmmeter
2125
`,
2226
}
2327

cmd/root.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ https://github.com/self-actuated/actuated-cli
5656
root.AddCommand(MakeVersion())
5757

5858
root.AddCommand(makeController())
59+
60+
root.AddCommand(makeMetering())
5961
}
6062

6163
func Execute() error {

0 commit comments

Comments
 (0)