Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v1.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdBuild

func NewCmdBuild(cfg *api.Config) *cobra.Command

NewCmdBuild implements the S2I cli build command.

func NewCmdCompletion

func NewCmdCompletion(root *cobra.Command) *cobra.Command

NewCmdCompletion implements the S2I cli completion command.

func NewCmdCreate

func NewCmdCreate() *cobra.Command

NewCmdCreate implements the S2I cli create command.

func NewCmdRebuild

func NewCmdRebuild(cfg *api.Config) *cobra.Command

NewCmdRebuild implements the S2i cli rebuild command.

func NewCmdUsage

func NewCmdUsage(cfg *api.Config) *cobra.Command

NewCmdUsage implements the S2I cli usage command.

func NewCmdVersion

func NewCmdVersion() *cobra.Command

NewCmdVersion implements the S2i cli version command.

func RunCompletion

func RunCompletion(out io.Writer, cmd *cobra.Command, root *cobra.Command, args []string) error

RunCompletion first checks args[0] to decide compose zsh or bash then write the content into the out bytes.Buffer if command input error will call UsageError with `cmd cobra.Command` `root cobra.Command` mainly for GenBashCompletion function

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL