Skip to content

Commit a1c7173

Browse files
committed
alpha: adapt for sdk changes, deploy filtering
1 parent 24df605 commit a1c7173

File tree

10 files changed

+499
-254
lines changed

10 files changed

+499
-254
lines changed

cmd/deploy.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ func (e *Executor) newDeployCmd() *cobra.Command {
2727
return config.ErrProjectConfigNotFound
2828
}
2929

30+
if len(opts.TargetApps) > 0 && len(opts.SkipApps) > 0 {
31+
return fmt.Errorf("target-apps and skip-apps arguments are mutually exclusive modes")
32+
}
33+
34+
if opts.SkipAllApps && opts.Destroy {
35+
return fmt.Errorf("skip-all-apps and destroy areare mutually exclusive modes")
36+
}
37+
3038
for _, t := range targetApps {
3139
tsplit := strings.SplitN(t, ".", 2)
3240
if len(tsplit) != 2 {

go.mod

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,46 @@ module github.com/outblocks/outblocks-cli
33
go 1.17
44

55
require (
6-
github.com/AlecAivazis/survey/v2 v2.2.14
6+
github.com/AlecAivazis/survey/v2 v2.3.2
77
github.com/Masterminds/semver v1.5.0
88
github.com/Masterminds/sprig v2.22.0+incompatible
99
github.com/Masterminds/vcs v1.13.1
10-
github.com/docker/docker v20.10.8+incompatible
10+
github.com/docker/docker v20.10.10+incompatible
1111
github.com/enescakir/emoji v1.0.0
1212
github.com/go-ozzo/ozzo-validation/v4 v4.3.0
1313
github.com/goccy/go-yaml v1.8.9
14-
github.com/google/go-github/v35 v35.2.0
15-
github.com/mholt/archiver/v3 v3.5.0
14+
github.com/google/go-github/v35 v35.3.0
15+
github.com/mholt/archiver/v3 v3.5.1
1616
github.com/mitchellh/go-homedir v1.1.0
1717
github.com/otiai10/copy v1.6.0
18-
github.com/outblocks/outblocks-plugin-go v0.0.0-20211105155114-b35f8c9e6f92
19-
github.com/pterm/pterm v0.12.32
20-
github.com/spf13/cobra v1.1.3
18+
github.com/outblocks/outblocks-plugin-go v0.0.0-20211106144905-90f0e0506308
19+
github.com/pterm/pterm v0.12.33
20+
github.com/spf13/cobra v1.2.1
2121
github.com/spf13/pflag v1.0.5
22-
github.com/spf13/viper v1.7.1
22+
github.com/spf13/viper v1.9.0
2323
github.com/txn2/txeh v1.3.0
24-
golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c
24+
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8
25+
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
2526
)
2627

2728
require (
2829
github.com/Masterminds/goutils v1.1.1 // indirect
2930
github.com/Microsoft/go-winio v0.4.17 // indirect
30-
github.com/andybalholm/brotli v1.0.0 // indirect
31+
github.com/andybalholm/brotli v1.0.1 // indirect
3132
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
3233
github.com/atomicgo/cursor v0.0.1 // indirect
3334
github.com/containerd/containerd v1.5.5 // indirect
3435
github.com/creasty/defaults v1.5.2 // indirect
3536
github.com/docker/distribution v2.7.1+incompatible // indirect
3637
github.com/docker/go-connections v0.4.0 // indirect
3738
github.com/docker/go-units v0.4.0 // indirect
38-
github.com/dsnet/compress v0.0.1 // indirect
39+
github.com/dsnet/compress v0.0.2-0.20210315054119-f66993602bf5 // indirect
3940
github.com/fatih/color v1.10.0 // indirect
40-
github.com/fsnotify/fsnotify v1.4.9 // indirect
41+
github.com/fsnotify/fsnotify v1.5.1 // indirect
4142
github.com/go-playground/validator/v10 v10.6.1 // indirect
4243
github.com/gogo/protobuf v1.3.2 // indirect
43-
github.com/golang/protobuf v1.5.0 // indirect
44-
github.com/golang/snappy v0.0.1 // indirect
44+
github.com/golang/protobuf v1.5.2 // indirect
45+
github.com/golang/snappy v0.0.3 // indirect
4546
github.com/google/go-querystring v1.0.0 // indirect
4647
github.com/google/uuid v1.3.0 // indirect
4748
github.com/gookit/color v1.4.2 // indirect
@@ -52,7 +53,7 @@ require (
5253
github.com/inconshreveable/mousetrap v1.0.0 // indirect
5354
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
5455
github.com/klauspost/compress v1.11.13 // indirect
55-
github.com/klauspost/pgzip v1.2.4 // indirect
56+
github.com/klauspost/pgzip v1.2.5 // indirect
5657
github.com/magiconair/properties v1.8.5 // indirect
5758
github.com/mattn/go-colorable v0.1.8 // indirect
5859
github.com/mattn/go-isatty v0.0.12 // indirect
@@ -66,30 +67,29 @@ require (
6667
github.com/nwaples/rardecode v1.1.0 // indirect
6768
github.com/opencontainers/go-digest v1.0.0 // indirect
6869
github.com/opencontainers/image-spec v1.0.1 // indirect
69-
github.com/pelletier/go-toml v1.9.1 // indirect
70-
github.com/pierrec/lz4/v4 v4.0.3 // indirect
70+
github.com/pelletier/go-toml v1.9.4 // indirect
71+
github.com/pierrec/lz4/v4 v4.1.2 // indirect
7172
github.com/pkg/errors v0.9.1 // indirect
7273
github.com/rivo/uniseg v0.2.0 // indirect
7374
github.com/sirupsen/logrus v1.8.1 // indirect
7475
github.com/spf13/afero v1.6.0 // indirect
75-
github.com/spf13/cast v1.3.1 // indirect
76+
github.com/spf13/cast v1.4.1 // indirect
7677
github.com/spf13/jwalterweatherman v1.1.0 // indirect
7778
github.com/subosito/gotenv v1.2.0 // indirect
78-
github.com/ulikunitz/xz v0.5.7 // indirect
79+
github.com/ulikunitz/xz v0.5.9 // indirect
7980
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
8081
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect
81-
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 // indirect
82-
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 // indirect
82+
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
83+
golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420 // indirect
8384
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
8485
golang.org/x/sys v0.0.0-20211013075003-97ac67df715c // indirect
85-
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
8686
golang.org/x/text v0.3.6 // indirect
8787
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
88-
google.golang.org/appengine v1.6.6 // indirect
89-
google.golang.org/genproto v0.0.0-20201110150050-8816d57aaa9a // indirect
90-
google.golang.org/grpc v1.33.2 // indirect
91-
google.golang.org/protobuf v1.26.0 // indirect
92-
gopkg.in/ini.v1 v1.62.0 // indirect
88+
google.golang.org/appengine v1.6.7 // indirect
89+
google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71 // indirect
90+
google.golang.org/grpc v1.40.0 // indirect
91+
google.golang.org/protobuf v1.27.1 // indirect
92+
gopkg.in/ini.v1 v1.63.2 // indirect
9393
gopkg.in/yaml.v2 v2.4.0 // indirect
9494
)
9595

0 commit comments

Comments
 (0)