Skip to content

Commit

Permalink
Merge pull request #10808 from hashicorp/f-curl
Browse files Browse the repository at this point in the history
cli: add operator api command
  • Loading branch information
schmichael authored Mar 2, 2022
2 parents 2f14cee + 3020b4e commit a9f1dbe
Show file tree
Hide file tree
Showing 6 changed files with 660 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/10808.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
cli: Added `nomad operator api` command to ease querying Nomad's HTTP API.
```
6 changes: 6 additions & 0 deletions command/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,12 @@ func Commands(metaPtr *Meta, agentUi cli.Ui) map[string]cli.CommandFactory {
}, nil
},

"operator api": func() (cli.Command, error) {
return &OperatorAPICommand{
Meta: meta,
}, nil
},

"operator autopilot": func() (cli.Command, error) {
return &OperatorAutopilotCommand{
Meta: meta,
Expand Down
Loading

0 comments on commit a9f1dbe

Please sign in to comment.