Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 433ac85

Browse files
committed
fixup! Add resource top flags for filtering and sorting
1 parent 9cd9428 commit 433ac85

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/cmd/resourcemanager.go

+5
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ func resourceTop() *cobra.Command {
3636

3737
cmd := &cobra.Command{
3838
Use: "top",
39+
Short: "resource viewer with Coder platform annotations",
3940
RunE: runResourceTop(&options),
41+
Example: `coder resources top --group org
42+
coder resources top --group org --verbose --org DevOps
43+
coder resources top --group user --verbose --user name@example.com
44+
coder resources top --sort-by memory --show-empty`,
4045
}
4146
cmd.Flags().StringVar(&options.group, "group", "user", "the grouping parameter (user|org)")
4247
cmd.Flags().StringVar(&options.user, "user", "", "filter by a user email")

0 commit comments

Comments
 (0)