Skip to content

Commit f4b6954

Browse files
committed
feat: support two new command: emoji, cmd
1 parent ec17526 commit f4b6954

File tree

15 files changed

+1089
-806
lines changed

15 files changed

+1089
-806
lines changed

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ require (
4646
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
4747
github.com/distribution/reference v0.6.0 // indirect
4848
github.com/emicklei/go-restful/v3 v3.12.1 // indirect
49+
github.com/enescakir/emoji v1.0.0 // indirect
4950
github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f // indirect
5051
github.com/fatih/camelcase v1.0.0 // indirect
5152
github.com/fsnotify/fsnotify v1.8.0 // indirect
@@ -83,6 +84,7 @@ require (
8384
github.com/josharian/intern v1.0.0 // indirect
8485
github.com/json-iterator/go v1.1.12 // indirect
8586
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
87+
github.com/kyokomi/emoji/v2 v2.2.13 // indirect
8688
github.com/leodido/go-urn v1.4.0 // indirect
8789
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
8890
github.com/lithammer/dedent v1.1.0 // indirect

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFP
8989
github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M=
9090
github.com/emicklei/go-restful/v3 v3.12.1 h1:PJMDIM/ak7btuL8Ex0iYET9hxM3CI2sjZtzpL63nKAU=
9191
github.com/emicklei/go-restful/v3 v3.12.1/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc=
92+
github.com/enescakir/emoji v1.0.0 h1:W+HsNql8swfCQFtioDGDHCHri8nudlK1n5p2rHCJoog=
93+
github.com/enescakir/emoji v1.0.0/go.mod h1:Bt1EKuLnKDTYpLALApstIkAjdDrS/8IAgTkKp+WKFD0=
9294
github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g=
9395
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
9496
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
@@ -300,6 +302,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
300302
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
301303
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
302304
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=
303307
github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ=
304308
github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI=
305309
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de h1:9TO3cAIGXtEhnIaL+V+BEER86oLrvS+kWobKpbJuye0=

internal/osbuilder/cmd/cmd.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ import (
2929
"k8s.io/kubectl/pkg/util/templates"
3030
"k8s.io/kubectl/pkg/util/term"
3131

32+
"github.com/onexstack/osbuilder/internal/osbuilder/cmd/cmd"
3233
"github.com/onexstack/osbuilder/internal/osbuilder/cmd/color"
3334
"github.com/onexstack/osbuilder/internal/osbuilder/cmd/completion"
3435
"github.com/onexstack/osbuilder/internal/osbuilder/cmd/create"
36+
"github.com/onexstack/osbuilder/internal/osbuilder/cmd/emoji"
3537
"github.com/onexstack/osbuilder/internal/osbuilder/cmd/options"
3638
cmdutil "github.com/onexstack/osbuilder/internal/osbuilder/cmd/util"
3739
"github.com/onexstack/osbuilder/internal/osbuilder/cmd/version"
@@ -202,6 +204,8 @@ func NewOSCtlCommand(o OSCtlOptions) *cobra.Command {
202204
Message: "Basic Commands (Beginner):",
203205
Commands: []*cobra.Command{
204206
color.NewCmdColor(f, o.IOStreams),
207+
cmd.NewCmdCmd(f, o.IOStreams),
208+
emoji.NewEmojiCmd(f, o.IOStreams),
205209
},
206210
},
207211
{

0 commit comments

Comments
 (0)