Skip to content

Commit

Permalink
docs: add example for 'metal device get --filter hostname=foo'
Browse files Browse the repository at this point in the history
  • Loading branch information
displague authored Oct 17, 2023
1 parent 3b16c85 commit 25c8dfa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/devices/retrieve.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ func (c *Client) Retrieve() *cobra.Command {
metal device get -i 52b60ca7-1ae2-4875-846b-4e4635223471
# Gets a list of devices in the specified project:
metal device get -p 5ad070a5-62e8-4cfe-a0b9-3b79e59f1cfe`,
metal device get -p 5ad070a5-62e8-4cfe-a0b9-3b79e59f1cfe
# Get a list of devices with the hostname foo and a default project configured:
metal device get --filter hostname=foo`,

RunE: func(cmd *cobra.Command, args []string) error {
deviceID, _ := cmd.Flags().GetString("id")
Expand Down

0 comments on commit 25c8dfa

Please sign in to comment.