Back to godoc.org
github.com/zchee/kt / pkg / commands

Package commands

v0.0.0 (ed4c552)
Latest Go to latest
Published: Oct 21, 2019 | License: BSD-3-Clause | Module: github.com/zchee/kt

Overview

Package commands provides the kt commands.

Index

Package Files

func NewCommand

func NewCommand() *cobra.Command

NewCommand creates the `kt` command with arguments.

func NewKTCommand

func NewKTCommand(in iopkg.Reader, out, errOut iopkg.Writer) *cobra.Command

NewKTCommand creates the `kt` command and its nested children.

func RunCompletion

func RunCompletion(out io.Writer, shell string, cmd *cobra.Command) error

RunCompletion checks given arguments and executes command.

func UsageErrorf

func UsageErrorf(cmd *cobra.Command, format string, args ...interface{}) error

func Version

func Version() string

Version is the current spinctl version.

type KT

type KT struct {
	// contains filtered or unexported fields
}

func (*KT) RunTail

func (kt *KT) RunTail(ctx context.Context) error
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier