package
0.19.19
Repository: https://github.com/xo/usql.git
Documentation: pkg.go.dev

# Functions

All returns all variables.
Call returns all named connections from the environment.
Cget returns the environment's named connection.
Chdir changes the current working directory to the specified path, or to the user's home directory if path is not specified.
Cset sets a named connection for the environment.
Dequote unquotes a string.
EditFile edits a file.
Exec executes s using the user's SHELL / COMSPEC with -c (or /c) and returning the captured output.
Getenv tries retrieving successive keys from os environment variables.
Getshell returns the user's defined SHELL, or system default (if found on path) and the appropriate command-line argument for the returned shell.
Getvar retrieves an environment variable.
GoTime returns the user's time format converted to Go's time.Format value.
HistoryFile returns the path to the history file.
Listing writes a formatted listing of the special environment variables to w, separated in sections based on variable type.
OpenFile opens a file for read (os.O_RDONLY), returning the full, expanded path of the file.
Pall returns all p variables.
Pipe starts a command and returns its input for writing.
Pset sets a p variable.
Ptoggle toggles a p variable.
Pwrite writes the p variables to the writer.
RCFile returns the path to the RC file.
Set sets a variable.
Shell runs s as a shell.
TermGraphics returns the [rasterm.TermType] based on TERM_GRAPHICS environment variable.
Unquote returns a func that unquotes strings for the user.
Unset unsets a variable.
ValidIdentifier returns an error when n is not a valid identifier.

# Type aliases

Vars is a map of variables to their values.