File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ require (
1919 github.com/spf13/viper v1.7.0
2020 github.com/stretchr/testify v1.6.1
2121 go.mongodb.org/atlas v0.3.1-0.20200728164135-cd2ad1fa2fa2
22- go.mongodb.org/ops-manager v0.7.3-0.20200728183637-c0436a7def8d
22+ go.mongodb.org/ops-manager v0.7.3-0.20200729135848-2a380f1448cb
2323 golang.org/x/crypto v0.0.0-20191108234033-bd318be0434a // indirect
2424 golang.org/x/sys v0.0.0-20200523222454-059865788121 // indirect
2525 gopkg.in/ini.v1 v1.57.0 // indirect
Original file line number Diff line number Diff line change @@ -245,8 +245,8 @@ github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:
245245go.etcd.io/bbolt v1.3.2 /go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU =
246246go.mongodb.org/atlas v0.3.1-0.20200728164135-cd2ad1fa2fa2 h1:+P5zCidi5y49pyxZUoATn/1tB53Mrd5m4XvAqkM74+A =
247247go.mongodb.org/atlas v0.3.1-0.20200728164135-cd2ad1fa2fa2 /go.mod h1:xa/V3muNuVoReSG0y2pigUUnfPOx1cHF0ZV2uCE+c7I =
248- go.mongodb.org/ops-manager v0.7.3-0.20200728183637-c0436a7def8d h1:P4Qf6dGmdRtdDrzOeyKT39ObNuwVISmqrDwRVXe5hcg =
249- go.mongodb.org/ops-manager v0.7.3-0.20200728183637-c0436a7def8d /go.mod h1:WJxzjbGEaL+NunKK9tyYl7LvMPihMlPRX0q2AVVPYAs =
248+ go.mongodb.org/ops-manager v0.7.3-0.20200729135848-2a380f1448cb h1:JUbeDGkUB4M0eBRekNlBxTDqGlbl9vjm86Ha8xjfris =
249+ go.mongodb.org/ops-manager v0.7.3-0.20200729135848-2a380f1448cb /go.mod h1:WJxzjbGEaL+NunKK9tyYl7LvMPihMlPRX0q2AVVPYAs =
250250go.opencensus.io v0.21.0 /go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU =
251251go.opencensus.io v0.22.0 /go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8 =
252252go.uber.org/atomic v1.4.0 /go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE =
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import (
2222 "github.com/spf13/cobra"
2323)
2424
25- const createTemplate = "Organization {{.ID}} created.\n "
25+ const createTemplate = "Organization ' {{.ID}}' created.\n "
2626
2727type CreateOpts struct {
2828 name string
Original file line number Diff line number Diff line change @@ -25,8 +25,7 @@ import (
2525 "github.com/spf13/cobra"
2626)
2727
28- const createTemplate = `Project {{.ID}} created.
29- `
28+ var createTemplate = "Project '{{.ID}}' created.\n "
3029
3130type CreateOpts struct {
3231 cli.GlobalOpts
@@ -50,6 +49,9 @@ func (opts *CreateOpts) Run() error {
5049 if err != nil {
5150 return err
5251 }
52+ if config .Service () != config .CloudService {
53+ createTemplate += "Agent API Key: '{{.AgentAPIKey}}'\n "
54+ }
5355
5456 return output .Print (config .Default (), createTemplate , r )
5557}
You can’t perform that action at this time.
0 commit comments