Skip to content

Commit dbee4cf

Browse files
authored
chore(workflow-cli): upgrade controller-sdk-go (#75)
* chore(builds): modify secondary confirmation info * chore(shortcuts): update shortcuts * chore(workflow-cli): upgrade controller-sdk-go
1 parent 84e0ae0 commit dbee4cf

7 files changed

Lines changed: 7 additions & 5 deletions

File tree

cli/cli.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package cli
44
var Shortcuts = map[string]string{
55
"create": "apps:create",
66
"destroy": "apps:destroy",
7+
"exec": "ps:exec",
78
"info": "apps:info",
89
"login": "auth:login",
910
"logout": "auth:logout",

cmd/builds.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ func buildFetchConfirmAction(confirm, procfile, dryccpath string, save bool) err
230230
fmt.Print(msg)
231231
fmt.Scanln(&confirm)
232232
if confirm != "yes" {
233-
return fmt.Errorf("cancel the build create fetch")
233+
return fmt.Errorf("cancel the build fetch action")
234234
}
235235
}
236236
return nil

cmd/builds_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ func TestBuildsFetch(t *testing.T) {
320320
}()
321321

322322
err := cmdr.BuildsFetch("testapp", 0, procfilePath, dryccpath, "", true)
323-
if err == nil || err.Error() != "cancel the build create fetch" {
323+
if err == nil || err.Error() != "cancel the build fetch action" {
324324
t.Fatalf("expected cancellation error, got %v", err)
325325
}
326326

cmd/shortcuts_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ func TestShortcutsList(t *testing.T) {
99

1010
expected := `create -> apps:create
1111
destroy -> apps:destroy
12+
exec -> ps:exec
1213
info -> apps:info
1314
login -> auth:login
1415
logout -> auth:logout

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.23
55
require (
66
github.com/containerd/console v1.0.4
77
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815
8-
github.com/drycc/controller-sdk-go v0.0.0-20250114084605-55b2a28ae6ee
8+
github.com/drycc/controller-sdk-go v0.0.0-20250306084459-f2b9cdd27a9d
99
github.com/drycc/pkg v0.0.0-20241028091700-8caca001c932
1010
github.com/minio/selfupdate v0.6.0
1111
github.com/olekukonko/tablewriter v0.0.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1
99
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
1010
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815 h1:bWDMxwH3px2JBh6AyO7hdCn/PkvCZXii8TGj7sbtEbQ=
1111
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE=
12-
github.com/drycc/controller-sdk-go v0.0.0-20250114084605-55b2a28ae6ee h1:A8uiBnRTW4mY5zKnwku25Rf1YHAAexTAfyMSPiF3uX8=
13-
github.com/drycc/controller-sdk-go v0.0.0-20250114084605-55b2a28ae6ee/go.mod h1:lGJpGtKDE7WUVJhkxOgWQfd4GEulJ/NlcJycVZIzs5g=
12+
github.com/drycc/controller-sdk-go v0.0.0-20250306084459-f2b9cdd27a9d h1:KStMQ64DjZ1HeyN6IP2KD0j4nOw/82cdQxQklo5ukhE=
13+
github.com/drycc/controller-sdk-go v0.0.0-20250306084459-f2b9cdd27a9d/go.mod h1:lGJpGtKDE7WUVJhkxOgWQfd4GEulJ/NlcJycVZIzs5g=
1414
github.com/drycc/pkg v0.0.0-20241028091700-8caca001c932 h1:tUfkfjmFmlm9n0dYp1NoHcFK6+APD/wHZ2We6CKXDSI=
1515
github.com/drycc/pkg v0.0.0-20241028091700-8caca001c932/go.mod h1:upGcZF/RCEqidGjSnWHh/txRC1I4GPsRGvF8/+bDfwU=
1616
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=

ps:logs

Whitespace-only changes.

0 commit comments

Comments
 (0)