cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitHistoryFile

func InitHistoryFile() (*os.File, error)

InitHistoryFile ...

func ParseInput

func ParseInput(command string) (string, string, puppetdb.Pagination, puppetdb.OrderBy)

ParseInput is used to split the users entered query into the relevant parts and returns each part as a string For example "nodes ["=", "certname", "jenkins-compose.example.net"] Limit=5 Offset=10" Would return "nodes" "["=", "certname", "jenkins-compose.example.net"]" "Limit=5 Offset=10" "nodes", "nodes Limit=10 OrderBy={field: "certname", order: "asc"}", "nodes []", "nodes ["=", "certname", "jenkins-compose.example.net"]" are all accepted by this func

func PrintString

func PrintString(data interface{})

PrintString ...

func ReadHistory

func ReadHistory(historyFile *os.File) []string

ReadHistory ...

func WriteHistory

func WriteHistory(historyFile *os.File, cmd string) error

WriteHistory ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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