Skip to content

Commit

Permalink
updated help text
Browse files Browse the repository at this point in the history
  • Loading branch information
NimbleArchitect committed Aug 19, 2022
1 parent 0ae5ae5 commit 6f6540f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 2 additions & 0 deletions cmd/plugin/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ var rootShort = "View pod information at the container level"

var rootDescription = ` Ice lets you view configuration and settings of the containers that run inside pods.
Full documentation can be found at: https://nimblearchitect.github.io/kubectl-ice
Suggestions and improvements can be made by raising an issue here:
https://github.com/NimbleArchitect/kubectl-ice
Expand Down
6 changes: 0 additions & 6 deletions pkg/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ type commonFlags struct {
showColumnByName string // list of column names to show, overrides other hidden columns
}

var helpTemplate = `
{{if or .Runnable .HasSubCommands}}{{.UsageString}}{{end}}
More information at: https://www.github.com/NimbleArchitect/kubectl-ice
`

func InitSubCommands(rootCmd *cobra.Command) {
var includeInitShort string = "include init container(s) in the output, by default init containers are hidden"
var odditiesShort string = "show only the outlier rows that dont fall within the computed range"
Expand Down
16 changes: 12 additions & 4 deletions pkg/plugin/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,30 @@ import (

var versionsShort = "Display container versions and mount points"

var helpTemplate = `
{{if or .Runnable .HasSubCommands}}{{.UsageString}}{{end}}
More information at: https://nimblearchitect.github.io/kubectl-ice/
`

func Version(cmd *cobra.Command, kubeFlags *genericclioptions.ConfigFlags, args []string) error {
// 1234567890123456789012345678901234567890123456789012345678901234567890123456789
fmt.Printf(`kubectl-ice kubernetes container viewer
version %s
the latest version can be found at:
https://github.com/NimbleArchitect/kubectl-ice/releases
https://nimblearchitect.github.io/kubectl-ice/downloads/
to view the documentation:
https://nimblearchitect.github.io/kubectl-ice
to view the documentation or raise issues:
or to raise issues:
https://github.com/NimbleArchitect/kubectl-ice
if you find this program useful please consider saying thanks I can be reached
on twitter @nimblearchitect or you can buy me a coffee:
https://www.buymeacoffee.com/NimbleArchitect
https://ko-fi.com/nimblearchitect
https://nimblearchitect.github.io/kubectl-ice/donations/
if your just after the version string use: kubectl-ice -v
Expand Down

0 comments on commit 6f6540f

Please sign in to comment.