Skip to content
This repository was archived by the owner on Jul 30, 2023. It is now read-only.

Commit 30c46a5

Browse files
authoredDec 31, 2022
Merge pull request #86 from prune998/prune/ctx-no-color
remove ctx and ns subcommand from colorization
2 parents 3080226 + b1cdc0e commit 30c46a5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
 

‎command/subcommand.go

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ func isColoringSupported(sc kubectl.Subcommand) bool {
5454
kubectl.Plugin,
5555
kubectl.Wait,
5656
kubectl.Run,
57+
kubectl.Ctx,
58+
kubectl.Ns,
5759
}
5860

5961
for _, u := range unsupported {

‎kubectl/subcommand.go

+4
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ const (
7070
Plugin
7171
Version
7272
Options
73+
Ctx
74+
Ns
7375
)
7476

7577
var strToSubcommand = map[string]Subcommand{
@@ -115,6 +117,8 @@ var strToSubcommand = map[string]Subcommand{
115117
"plugin": Plugin,
116118
"version": Version,
117119
"options": Options,
120+
"ctx": Ctx,
121+
"ns": Ns,
118122
}
119123

120124
func InspectSubcommand(command string) (Subcommand, bool) {

0 commit comments

Comments
 (0)
This repository has been archived.