cmd

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const TRUE = "true"

TRUE used for boolean comparisons

Variables

View Source
var AppFs = afero.NewOsFs()

AppFs - defined for testing

Functions

func Completion

func Completion(cmd *cobra.Command, args []string)

Completion is a helper function to allow passing arguments to other functions (so that they can be unit tested)

func DeleteFileToResource added in v1.2.0

func DeleteFileToResource(rc *resty.Client, filename, path string, ci dsl.ConnectionInfo) (err error)

DeleteFileToResource - Specific op for DELETING Files

func Execute

func Execute(version, commit, date string)

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 NewTable

func NewTable(out io.Writer) *tablewriter.Table

NewTable - provides a blank table for rendering.

func PostFileToResource added in v1.2.0

func PostFileToResource(rc *resty.Client, filename, path, paramName string, ci dsl.ConnectionInfo, shouldCommit bool) (err error)

PostFileToResource - Specific op for POSTING Files

func Version added in v1.3.1

func Version(w io.Writer)

Version outputs a formatted version message to the passed writer.

func WriteThingsToFile

func WriteThingsToFile(thing dsl.Thing, namedfile string) (err error)

WriteThingsToFile - common function used by commands creating yaml things

Types

This section is empty.

Jump to

Keyboard shortcuts

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