# Functions
Args is a convenience function that converts a variadic list of strings into an array.
ArgsS is a convenience function that converts a space delimited string into an array of args.
Execute is the entry point for executing all commands from main All commands with RunE will bubble errors back here.
IsTerminal reports whether the file descriptor is connected to a terminal.
NewCompletionCommand returns a new Opsani CLI cmpletion command instance.
NewConfigCommand returns a new instance of the root command for Opsani CLI.
NewConsoleCommand returns a command that opens the Opsani Console in the default browser.
NewDemoCommand returns a new instance of the demo command.
NewInitCommand returns a new `opsani init` command instance.
NewOptimizerCommand returns a new `opsani app` command instance.
NewOptimizerConfigCommand returns a new Opsani CLI `app config` action.
NewOptimizerConfigEditCommand returns a new Opsani CLI app config edit action.
NewOptimizerConfigGetCommand returns a new Opsani CLI `app config get` action.
NewOptimizerConfigPatchCommand returns a new Opsani CLI `app config patch` action.
NewOptimizerConfigSetCommand returns a new Opsani CLI `app config set` action.
NewOptimizerRestartCommand returns an Opsani CLI command for restarting the app.
NewOptimizerStartCommand returns an Opsani CLI command for starting the app.
NewOptimizerStatusCommand returns an Opsani CLI command for retrieving status on the app.
NewOptimizerStopCommand returns an Opsani CLI command for stopping the app.
NewProfileCommand returns a new instance of the profile command.
NewProfileRegistry returns a new registry of configured app profiles.
NewRootCommand returns a new instance of the root command for Opsani CLI.
NewServoCommand returns a new instance of the servo command.
NewServoDriver creates and returns an appropriate commander for a given servo.
NewVitalCommand returns a new instance of the vital command.
PrettyPrintJSONBytes prints the given byte array as pretty printed JSON.
PrettyPrintJSONObject prints the given object as pretty printed JSON.
PrettyPrintJSONResponse prints the given API response as pretty printed JSON.
PrettyPrintJSONString prints the given string as pretty printed JSON.
PrettyPrintYAMLToString pretty formats the given YAML byte array, optionally including line numbers.
RangeOfValidJSONArgs ensures that the number of args are within the range and are all valid JSON.
ReduceRunEFuncs reduces a list of Cobra run functions that return an error into a single aggregate run function.
ReduceRunFuncs reduces a list of Cobra run functions into a single aggregate run function.
SetJSONKeyPathValuesFromStringOnBytes sets a JSON dotted path expression of the form (this.key=value) to a new value in a JSON byte array.
SetJSONKeyPathValuesFromStringsOnBytes sets an array of JSON dotted path expressions of the form (this.key=value) to a new value in a JSON byte array.
SetStdio is global package helper for testing where access to a file descriptor for the TTY is required.
ValidSetJSONKeyPathArgs checks that positional arguments are valid key paths for setting values.
# Constants
Configuration keys (Cobra and Viper).
Configuration keys (Cobra and Viper).
Configuration keys (Cobra and Viper).
Configuration keys (Cobra and Viper).
Configuration keys (Cobra and Viper).
Configuration keys (Cobra and Viper).
Configuration keys (Cobra and Viper).
Configuration keys (Cobra and Viper).
# Structs
BaseCommand is the foundational command structure for the Opsani CLI It contains the root command for Cobra and is designed for embedding into other command structures to add subcommand functionality.
DockerComposeServoDriver supports interaction with servos deployed via Docker Compose.
FlagError is the kind of error raised in flag processing.
KubernetesServoDriver supports interaction with servos deployed via Kubernetes.
Profile represents an Opsani app, token, and base URL.
ProfileRegistry provides an interface for managing configuration of app profiles.
Servo represents a deployed Servo assembly running somewhere.
Task describes a long-running task that may succeed or fail.
# Interfaces
ServoDriver defines a standard interface for interacting with servo deployments.