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

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterpolateArguments

func InterpolateArguments(rawLine string, command string) (string, error)

InterpolateArguments fills in an alias' placeholders ($#) with provided arguments TODO add alias_test.go unit tests

func LoadHistoryFile

func LoadHistoryFile() ([]string, error)

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

func ScheduleQueryAndWait(api models.GoQueryAPI, uuid, query string) (models.Rows, error)

ScheduleQueryAndWait schedules the provided query with the proved API, and implements blocking with a ctrl C interupt

func UpdateHistoryFile

func UpdateHistoryFile(line string) error

UpdateHistoryFile attempts to write a new line entry to the history file

Types

This section is empty.