Skip to content

Commit

Permalink
added colour support to remaining sub commands
Browse files Browse the repository at this point in the history
  • Loading branch information
NimbleArchitect committed Feb 4, 2023
1 parent 2220ea8 commit 13166b3
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/plugin/capabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ func Capabilities(cmd *cobra.Command, kubeFlags *genericclioptions.ConfigFlags,
builder.SetFlagsFrom(commonFlagList)

table := Table{}
builder.Table = &table
table.ColourOutput = commonFlagList.outputAsColour

builder.Table = &table
builder.ShowTreeView = commonFlagList.showTreeView

if err := builder.Build(&loopinfo); err != nil {
Expand Down
2 changes: 2 additions & 0 deletions pkg/plugin/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ func Commands(cmd *cobra.Command, kubeFlags *genericclioptions.ConfigFlags, args
builder.SetFlagsFrom(commonFlagList)

table := Table{}
table.ColourOutput = commonFlagList.outputAsColour

builder.Table = &table
builder.ShowTreeView = commonFlagList.showTreeView

Expand Down
2 changes: 2 additions & 0 deletions pkg/plugin/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ func Environment(cmd *cobra.Command, kubeFlags *genericclioptions.ConfigFlags, a
}

table := Table{}
table.ColourOutput = commonFlagList.outputAsColour

builder.Table = &table
builder.ShowTreeView = commonFlagList.showTreeView
if err := builder.Build(&loopinfo); err != nil {
Expand Down
2 changes: 2 additions & 0 deletions pkg/plugin/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ func Image(cmd *cobra.Command, kubeFlags *genericclioptions.ConfigFlags, args []
}

table := Table{}
table.ColourOutput = commonFlagList.outputAsColour

builder.Table = &table
builder.CommonFlags = commonFlagList
builder.Connection = &connect
Expand Down
1 change: 1 addition & 0 deletions pkg/plugin/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func IP(cmd *cobra.Command, kubeFlags *genericclioptions.ConfigFlags, args []str
return err
}
table := Table{}
table.ColourOutput = commonFlagList.outputAsColour
table.SetHeader(
"NAME", "IP",
)
Expand Down
2 changes: 2 additions & 0 deletions pkg/plugin/lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ func Lifecycle(cmd *cobra.Command, kubeFlags *genericclioptions.ConfigFlags, arg
builder.SetFlagsFrom(commonFlagList)

table := Table{}
table.ColourOutput = commonFlagList.outputAsColour

builder.Table = &table
builder.ShowTreeView = commonFlagList.showTreeView

Expand Down
2 changes: 2 additions & 0 deletions pkg/plugin/ports.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ func Ports(cmd *cobra.Command, kubeFlags *genericclioptions.ConfigFlags, args []
builder.SetFlagsFrom(commonFlagList)

table := Table{}
table.ColourOutput = commonFlagList.outputAsColour

builder.Table = &table
builder.ShowTreeView = commonFlagList.showTreeView

Expand Down
2 changes: 2 additions & 0 deletions pkg/plugin/probes.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ func Probes(cmd *cobra.Command, kubeFlags *genericclioptions.ConfigFlags, args [
builder.SetFlagsFrom(commonFlagList)

table := Table{}
table.ColourOutput = commonFlagList.outputAsColour

builder.Table = &table
builder.ShowTreeView = commonFlagList.showTreeView

Expand Down
2 changes: 2 additions & 0 deletions pkg/plugin/restarts.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ func Restarts(cmd *cobra.Command, kubeFlags *genericclioptions.ConfigFlags, args
builder.SetFlagsFrom(commonFlagList)

table := Table{}
table.ColourOutput = commonFlagList.outputAsColour

builder.Table = &table
builder.ShowTreeView = commonFlagList.showTreeView

Expand Down
2 changes: 2 additions & 0 deletions pkg/plugin/security.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ func Security(cmd *cobra.Command, kubeFlags *genericclioptions.ConfigFlags, args
builder.SetFlagsFrom(commonFlagList)

table := Table{}
table.ColourOutput = commonFlagList.outputAsColour

builder.Table = &table
builder.ShowTreeView = commonFlagList.showTreeView

Expand Down
2 changes: 2 additions & 0 deletions pkg/plugin/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ func Volumes(cmd *cobra.Command, kubeFlags *genericclioptions.ConfigFlags, args
}

table := Table{}
table.ColourOutput = commonFlagList.outputAsColour

builder.Table = &table
builder.ShowTreeView = commonFlagList.showTreeView

Expand Down

0 comments on commit 13166b3

Please sign in to comment.