Skip to content

Commit d585137

Browse files
committed
feat: support upgrade command
1 parent 3ac6147 commit d585137

File tree

5 files changed

+427
-4
lines changed

5 files changed

+427
-4
lines changed

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ go 1.24.0
55
require (
66
github.com/caicloud/nirvana v0.3.1
77
github.com/duke-git/lancet/v2 v2.3.4
8+
github.com/enescakir/emoji v1.0.0
89
github.com/evanphx/json-patch v5.6.0+incompatible
910
github.com/fatih/color v1.18.0
1011
github.com/ghodss/yaml v1.0.0
@@ -46,7 +47,6 @@ require (
4647
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
4748
github.com/distribution/reference v0.6.0 // indirect
4849
github.com/emicklei/go-restful/v3 v3.12.1 // indirect
49-
github.com/enescakir/emoji v1.0.0 // indirect
5050
github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f // indirect
5151
github.com/fatih/camelcase v1.0.0 // indirect
5252
github.com/fsnotify/fsnotify v1.8.0 // indirect
@@ -84,7 +84,6 @@ require (
8484
github.com/josharian/intern v1.0.0 // indirect
8585
github.com/json-iterator/go v1.1.12 // indirect
8686
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
87-
github.com/kyokomi/emoji/v2 v2.2.13 // indirect
8887
github.com/leodido/go-urn v1.4.0 // indirect
8988
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
9089
github.com/lithammer/dedent v1.1.0 // indirect

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,6 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
302302
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
303303
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
304304
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
305-
github.com/kyokomi/emoji/v2 v2.2.13 h1:GhTfQa67venUUvmleTNFnb+bi7S3aocF7ZCXU9fSO7U=
306-
github.com/kyokomi/emoji/v2 v2.2.13/go.mod h1:JUcn42DTdsXJo1SWanHh4HKDEyPaR5CqkmoirZZP9qE=
307305
github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ=
308306
github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI=
309307
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de h1:9TO3cAIGXtEhnIaL+V+BEER86oLrvS+kWobKpbJuye0=

internal/osbuilder/cmd/cmd.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import (
3535
"github.com/onexstack/osbuilder/internal/osbuilder/cmd/create"
3636
"github.com/onexstack/osbuilder/internal/osbuilder/cmd/emoji"
3737
"github.com/onexstack/osbuilder/internal/osbuilder/cmd/options"
38+
"github.com/onexstack/osbuilder/internal/osbuilder/cmd/upgrade"
3839
cmdutil "github.com/onexstack/osbuilder/internal/osbuilder/cmd/util"
3940
"github.com/onexstack/osbuilder/internal/osbuilder/cmd/version"
4041
clioptions "github.com/onexstack/osbuilder/internal/osbuilder/util/options"
@@ -205,6 +206,7 @@ func NewOSCtlCommand(o OSCtlOptions) *cobra.Command {
205206
Commands: []*cobra.Command{
206207
color.NewCmdColor(f, o.IOStreams),
207208
cmd.NewCmdCmd(f, o.IOStreams),
209+
upgrade.NewUpgradeCmd(f, o.IOStreams),
208210
emoji.NewEmojiCmd(f, o.IOStreams),
209211
},
210212
},

0 commit comments

Comments
 (0)