Skip to content

Commit

Permalink
chore: include examples to cli help output #615 (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan authored Dec 29, 2024
1 parent cc713bf commit 5a06ccc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/cmd/apihub/apis/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ var CrtCmd = &cobra.Command{
_, err = hub.CreateApi(id, apiFileBytes)
return
},
Example: `Create a new API: ` + GetExample(0),
}

var id, apiFilePath string
Expand Down
1 change: 1 addition & 0 deletions internal/cmd/apihub/apis/versions/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ var CrtCmd = &cobra.Command{
_, err = hub.CreateApiVersion(id, apiID, apiFileBytes)
return
},
Example: `Create a new API Version: ` + GetExample(0),
}

var apiID, apiFilePath string
Expand Down
1 change: 1 addition & 0 deletions internal/cmd/apihub/apis/versions/specs/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ var CrtCmd = &cobra.Command{
contents, filepath.Ext(apiFilePath), sourceURI, documentation)
return
},
Example: `Create a new API Version Specification: ` + GetExample(0),
}

var (
Expand Down
1 change: 1 addition & 0 deletions internal/cmd/apihub/deployments/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ var CrtCmd = &cobra.Command{
deploymentName, externalURI, resourceURI, endpoints, d, e, s)
return
},
Example: `Create a new Deployment for an Apigee proxy: ` + GetExample(0),
}

var (
Expand Down

0 comments on commit 5a06ccc

Please sign in to comment.