Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
GITCOMMIT = "HEAD"
)
View Source
var ( RootCmd = &cobra.Command{ Use: "short", Short: "Manageable Kubernetes manifests using koki/short", Long: `Short converts the api-friendly kubernetes manifests into ops-friendly syntax. Full documentation available at https://docs.koki.io/short `, RunE: func(c *cobra.Command, args []string) error { err := short(c, args) if err != nil && !verboseErrors { fmt.Fprintln(os.Stderr, "Use flag '--verbose-errors' for more detailed error info.") } if err != nil { return fmt.Errorf(serrors.PrettyError(err)) } return nil }, SilenceUsage: true, Example: ` # Convert existing kubernetes manifestes to shorthand format short -f pod.yaml # Stream in manifest files cat pod.yaml | short - # Read from url short -f http://spec.com/pod.yaml # Convert shorthand file to native syntax short --kube-native -f pod_short.yaml short -k -f pod_short.yaml # Output to file short -f pod.yaml > pod_short.yaml # Output as yaml* or json short -f pod.yaml -o json `, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.