kind: sigs.k8s.io/kind/pkg/cmd Index | Files | Directories

package cmd

import "sigs.k8s.io/kind/pkg/cmd"

Package cmd provides helpers used by kind's commands / cli

Index

Package Files

doc.go iostreams.go logger.go

func ColorEnabled Uses

func ColorEnabled(logger log.Logger) bool

ColorEnabled returns true if color is enabled for the logger this should be used to control output

func NewLogger Uses

func NewLogger() log.Logger

NewLogger returns the standard logger used by the kind CLI This logger writes to os.Stderr

type IOStreams Uses

type IOStreams struct {
    // In think, os.Stdin
    In  io.Reader
    // Out think, os.Stdout
    Out io.Writer
    // ErrOut think, os.Stderr
    ErrOut io.Writer
}

IOStreams provides the standard names for iostreams. This is useful for embedding and for unit testing. Inconsistent and different names make it hard to read and review code This is based on cli-runtime, but just the nice type without the dependency

func StandardIOStreams Uses

func StandardIOStreams() IOStreams

StandardIOStreams returns an IOStreams from os.Stdin, os.Stdout

Directories

PathSynopsis
kindPackage kind implements the root kind cobra command, and the cli Main()
kind/buildPackage build implements the `build` command
kind/build/baseimage
kind/build/nodeimage
kind/completionPackage completion implements the `completion` command
kind/completion/bashPackage bash implements the `bash` command
kind/completion/zshPackage zsh implements the `zsh` command
kind/createPackage create implements the `create` command
kind/create/clusterPackage cluster implements the `create cluster` command
kind/deletePackage delete implements the `delete` command
kind/delete/clusterPackage cluster implements the `delete` command
kind/delete/clustersPackage clusters implements the `delete` command for multiple clusters
kind/exportPackage export implements the `export` command
kind/export/kubeconfigPackage kubeconfig implements the `kubeconfig` command
kind/export/logsPackage logs implements the `logs` command
kind/getPackage get implements the `get` command
kind/get/clustersPackage clusters implements the `clusters` command
kind/get/kubeconfigPackage kubeconfig implements the `kubeconfig` command
kind/get/nodesPackage nodes implements the `nodes` command
kind/loadPackage load implements the `load` command
kind/load/docker-imagePackage load implements the `load` command
kind/load/image-archivePackage load implements the `load` command
kind/versionPackage version implements the `version` command

Package cmd imports 5 packages (graph) and is imported by 49 packages. Updated 2020-01-28. Refresh now. Tools for package owners.