Skip to content

Commit

Permalink
add packet-cli version to API request UserAgent headers
Browse files Browse the repository at this point in the history
Closes #55

Signed-off-by: Marques Johansson <[email protected]>
  • Loading branch information
displague committed Jul 1, 2020
1 parent 6dfb205 commit 617375f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Use "packet [command] --help" for more information about a command.

## Reference

The full CLI documentation can be found [here](docs/packet.md) or Daby clicking the links below.
The full CLI documentation can be found [here](docs/packet.md) or by clicking the links below.

* [Device operations](docs/packet_device.md)
* [Facility operations](docs/packet_facilities.md)
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func packetConnect(cmd *cobra.Command, args []string) {
fmt.Println("Client error:", err)
return
}

client.UserAgent = fmt.Sprintf("packet-cli/%s %s", Version, client.UserAgent)
PacknGo = *client
}

Expand Down

0 comments on commit 617375f

Please sign in to comment.