Skip to content

Commit

Permalink
update reponse to user about cmds.
Browse files Browse the repository at this point in the history
  • Loading branch information
ybelMekk committed Sep 17, 2021
1 parent 4ad28d5 commit 9486cec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/aiven_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"github.com/nais/nais-cli/pkg/aiven"
aivenclient "github.com/nais/nais-cli/pkg/client"
"github.com/spf13/cobra"
"log"
)

const (
Expand Down Expand Up @@ -44,9 +45,11 @@ nais-cli aiven username namespace -e 10 | nais-cli aiven username namespace -s s
}

aivenConfig := aiven.SetupAiven(aivenclient.SetupClient(), username, team, pool, secretName, expiry)
if _, err := aivenConfig.GenerateApplication(); err != nil {
aivenApp, err := aivenConfig.GenerateApplication()
if err != nil {
return fmt.Errorf("an error occurred generating aivenApplication %s", err)
}
log.Default().Printf("use: '%s get %s %s'", cmd.CommandPath(), aivenApp.Spec.SecretName, aivenApp.Namespace)
return nil
},
}

0 comments on commit 9486cec

Please sign in to comment.