Skip to content

Commit

Permalink
update chaosblade modules to v1.4.0
Browse files Browse the repository at this point in the history
Signed-off-by: xcaspar <[email protected]>
  • Loading branch information
xcaspar committed Dec 1, 2021
1 parent 5bd8386 commit 2960725
Show file tree
Hide file tree
Showing 4 changed files with 1,003 additions and 10 deletions.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
.PHONY: build clean

BLADE_SRC_ROOT=`pwd`

GO_ENV=CGO_ENABLED=1
GO_MODULE=GO111MODULE=on
GO=env $(GO_ENV) $(GO_MODULE) go
Expand Down
12 changes: 6 additions & 6 deletions exec/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ func (cms *ContainerCommandModelSpec) LongDesc() string {
return `Execute a container experiment.`
}

type removeActionCommand struct {
type RemoveActionCommand struct {
spec.BaseExpActionCommandSpec
}

func NewRemoveActionCommand() spec.ExpActionCommandSpec {
return &removeActionCommand{
return &RemoveActionCommand{
spec.BaseExpActionCommandSpec{
ActionMatchers: []spec.ExpFlagSpec{},
ActionFlags: []spec.ExpFlagSpec{
Expand All @@ -77,19 +77,19 @@ blade create cri container remove --container-id a76d53933d3f. If container-runt
}
}

func (*removeActionCommand) Name() string {
func (*RemoveActionCommand) Name() string {
return "remove"
}

func (*removeActionCommand) Aliases() []string {
func (*RemoveActionCommand) Aliases() []string {
return []string{"rm"}
}

func (*removeActionCommand) ShortDesc() string {
func (*RemoveActionCommand) ShortDesc() string {
return "remove a container"
}

func (r *removeActionCommand) LongDesc() string {
func (r *RemoveActionCommand) LongDesc() string {
if r.ActionLongDesc != "" {
return r.ActionLongDesc
}
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ go 1.13
require (
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 // indirect
github.com/chaosblade-io/chaosblade-exec-os v1.3.1-0.20210906070659-0b8e3c15c25b
github.com/chaosblade-io/chaosblade-spec-go v1.3.1-0.20211124120331-a95ad0aac789
github.com/chaosblade-io/chaosblade-exec-os v1.4.0
github.com/chaosblade-io/chaosblade-spec-go v1.4.0
github.com/containerd/containerd v1.5.6
github.com/docker/docker v0.0.0-20180612054059-a9fbbdc8dd87
github.com/docker/go-connections v0.4.0 // indirect
Expand Down
Loading

0 comments on commit 2960725

Please sign in to comment.