Skip to content

Commit 643adfb

Browse files
committed
Add missing hostfactory command examples
1 parent 0ac17da commit 643adfb

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1010
- Nothing should go in this section, please add to the latest unreleased version
1111
(and update the corresponding date), or add a new version.
1212

13+
## [8.0.10] - 2023-04-27
14+
15+
### Fixed
16+
- Fixed missing example commands in help output
17+
[cyberark/conjur-cli-go#134](https://github.com/cyberark/conjur-cli-go/pull/134)
18+
1319
## [8.0.9] - 2023-04-21
1420

1521
### Security
@@ -90,7 +96,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
9096
### Added
9197
- Placeholder version to capture the reset of the repository
9298

93-
[Unreleased]: https://github.com/cyberark/conjur-cli-go/compare/v8.0.8...HEAD
99+
[Unreleased]: https://github.com/cyberark/conjur-cli-go/compare/v8.0.10...HEAD
100+
[8.0.10]: https://github.com/cyberark/conjur-cli-go/compare/v8.0.9...v8.0.10
101+
[8.0.9]: https://github.com/cyberark/conjur-cli-go/compare/v8.0.8...v8.0.9
94102
[8.0.8]: https://github.com/cyberark/conjur-cli-go/compare/v8.0.7...v8.0.8
95103
[8.0.7]: https://github.com/cyberark/conjur-cli-go/compare/v8.0.6...v8.0.7
96104
[8.0.6]: https://github.com/cyberark/conjur-cli-go/compare/v8.0.5...v8.0.6

pkg/cmd/hostfactory.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ func newHostsCreateCmd(clientFactory createHostClientFactoryFunc) *cobra.Command
5050
hostsCreateCmd := &cobra.Command{
5151
Use: "create",
5252
Short: "Use a token to create a host",
53+
Long: `Use a host factory token to create a host.
54+
55+
Example:
56+
- conjur hostfactory hosts create --id TestHost --token 1bfpyr3y41kb039ykpyf2hm87ez2dv9hdc3r5sh1n2h9z7j22mga2da
57+
`,
5358
RunE: func(cmd *cobra.Command, args []string) error {
5459
token, err := cmd.Flags().GetString("token")
5560
if err != nil {
@@ -224,6 +229,11 @@ func newTokensRevokeCmd(clientFactory revokeTokenClientFactoryFunc) *cobra.Comma
224229
tokensRevokeCmd := &cobra.Command{
225230
Use: "revoke",
226231
Short: "Revoke (delete) a token",
232+
Long: `Revoke a host factory token.
233+
234+
Example:
235+
- conjur hostfactory tokens revoke --token 1bfpyr3y41kb039ykpyf2hm87ez2dv9hdc3r5sh1n2h9z7j22mga2da
236+
`,
227237

228238
RunE: func(cmd *cobra.Command, args []string) error {
229239
token, err := cmd.Flags().GetString("token")

0 commit comments

Comments
 (0)