Documentation ¶
Overview ¶
Package utils holds utility functions like print formatting or conversion functions
Package utils holds utility functions like print formatting or conversion functions ¶
Package utils holds utility functions like print formatting or conversion functions
Index ¶
- func InterpolateArguments(rawLine string, command string) (string, error)
- func LoadHistoryFile() ([]string, error)
- func PrettyPrintQueryResults(results models.Rows, printMode config.PrintModeEnum)
- func ScheduleQueryAndWait(api models.GoQueryAPI, uuid, query string) (models.Rows, error)
- func UpdateHistoryFile(line string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterpolateArguments ¶
InterpolateArguments fills in an alias' placeholders ($#) with provided arguments TODO add alias_test.go unit tests
func LoadHistoryFile ¶
LoadHistoryFile attempts to read and return the history file from disk and parse it as new line delimited commands
func PrettyPrintQueryResults ¶
func PrettyPrintQueryResults(results models.Rows, printMode config.PrintModeEnum)
PrettyPrintQueryResults prints a given []result map set to standard out taking into consideration the current state.go's print mode
func ScheduleQueryAndWait ¶
ScheduleQueryAndWait schedules the provided query with the proved API, and implements blocking with a ctrl C interupt
func UpdateHistoryFile ¶
UpdateHistoryFile attempts to write a new line entry to the history file
Types ¶
This section is empty.