cmd

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 42 Imported by: 0

Documentation

Overview

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidArgs  error = errors.New("invalid arguments")
	ErrNotSupported error = errors.New("not supported")
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func RootCmd

func RootCmd() *cobra.Command

Types

type AttributeValues

type AttributeValues []string

attribute - name=value

func (*AttributeValues) Set

func (i *AttributeValues) Set(value string) error

func (*AttributeValues) String

func (i *AttributeValues) String() string

func (*AttributeValues) Type

func (i *AttributeValues) Type() string

type EnvValues

type EnvValues []string

env NAME=VALUE - string slice

func (*EnvValues) Set

func (i *EnvValues) Set(value string) error

func (*EnvValues) String

func (i *EnvValues) String() string

func (*EnvValues) Type

func (i *EnvValues) Type() string

type ExtraConfigValues

type ExtraConfigValues struct {
	Includes   IncludeValues
	Gateways   GatewayValues
	Attributes AttributeValues
	Envs       EnvValues
	Variables  VarValues
	Types      TypeValues
}

type GatewayValues

type GatewayValues map[string]string

gateway - name:port

func (*GatewayValues) Set

func (i *GatewayValues) Set(value string) error

func (*GatewayValues) String

func (i *GatewayValues) String() string

func (*GatewayValues) Type

func (i *GatewayValues) Type() string

type IncludeValues

type IncludeValues map[string]string

include file - priority:url|path

func (*IncludeValues) Set

func (i *IncludeValues) Set(value string) error

func (*IncludeValues) String

func (i *IncludeValues) String() string

func (*IncludeValues) Type

func (i *IncludeValues) Type() string

type TypeValues

type TypeValues []string

attribute - name=value

func (*TypeValues) Set

func (i *TypeValues) Set(value string) error

func (*TypeValues) String

func (i *TypeValues) String() string

func (*TypeValues) Type

func (i *TypeValues) Type() string

type VarValues

type VarValues map[string]string

variables - [TYPE:]NAME=VALUE

func (*VarValues) Set

func (i *VarValues) Set(value string) error

func (*VarValues) String

func (i *VarValues) String() string

func (*VarValues) Type

func (i *VarValues) Type() string

Jump to

Keyboard shortcuts

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