Skip to content

Commit

Permalink
fix: fix pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdeme committed Apr 27, 2022
1 parent d9114d7 commit 2208fab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/cmd/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ func NewCmds() []*cobra.Command {

func getCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "get-app --output-format [json]",
Use: "get-app --output-format [json]",
Short: "Get application settings",
RunE: func(cmd *cobra.Command, args []string) error {
c, err := config.GetConfig(cmd).GetStreamClient(cmd)
if err != nil {
Expand All @@ -37,7 +38,7 @@ func getCmd() *cobra.Command {
return err
}

indented := bytes.Buffer{}
var indented bytes.Buffer
err = json.Indent(&indented, unindented, "", " ")
if err != nil {
return err
Expand All @@ -60,7 +61,8 @@ func getCmd() *cobra.Command {

func updateCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "update-app --properties [raw-json-update-propertes]",
Use: "update-app --properties [raw-json-update-properties]",
Short: "Update application settings",
Example: heredoc.Doc(`
update-app --properties '{"multi_tenant_enabled": true, "permission_version": "v2"}'
`),
Expand Down

0 comments on commit 2208fab

Please sign in to comment.