cmdutils

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

command line utils testable methods that wrap around the low level implementation when invoked from the cli method.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdUtils added in v1.6.0

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

func New added in v1.6.0

func (*CmdUtils) GenerateFromCmd added in v1.6.0

func (c *CmdUtils) GenerateFromCmd(tokens []string, output string) error

GenerateFromTokens is a helper cmd method to call from retrieve command

func (*CmdUtils) GenerateStrOut added in v1.6.0

func (c *CmdUtils) GenerateStrOut(input, output string) error

Generate a replaced string from string input command returns a non empty string if move of temp file is required

func (*CmdUtils) UploadTokensWithVals added in v1.6.0

func (c *CmdUtils) UploadTokensWithVals(tokens map[string]string) error

UploadTokensWithVals takes in a map of key/value pairs and uploads them

Jump to

Keyboard shortcuts

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