root

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENV_PREFIX       = "MYC"
	CONFIG_FILE_NAME = ".mycontroller"
	CONFIG_FILE_EXT  = "yaml"
)

Variables

View Source
var (
	CONFIG    *clientTY.Config   // keep MyController server details
	IOStreams clientTY.IOStreams // read and write to this stream

	HideHeader   bool
	Pretty       bool
	OutputFormat string
)
View Source
var Cmd = &cobra.Command{
	Use:   "myc",
	Short: "myc",
	Long:  rootCliLong,
	PreRun: func(cmd *cobra.Command, args []string) {
		UpdateStreams(cmd)
	},
}

Functions

func Execute

func Execute(streams clientTY.IOStreams)

func GetClient

func GetClient() *api.Client

func UpdateStreams

func UpdateStreams(cmd *cobra.Command)

func WriteConfigFile

func WriteConfigFile()

Types

type VersionMap

type VersionMap struct {
	Spec map[string]interface{} `json:"spec"`
}

Jump to

Keyboard shortcuts

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