Documentation ¶
Index ¶
- func IsANSITerminal(ctx context.Context) bool
- func LaunchEmbeddedConsole(ctx context.Context, k *kong.Kong, binder KongContextBinder, ...)
- func Predictors(ctx context.Context, client ftlv1connect.ControllerServiceClient) map[string]complete.Predictor
- func PrintJSON(ctx context.Context, json []byte)
- func RunInteractiveConsole(ctx context.Context, k *kong.Kong, binder KongContextBinder, ...) error
- func UpdateModuleState(ctx context.Context, module string, state BuildState)
- type BuildState
- type ExitListener
- type FTLCompletion
- type KongContextBinder
- type StatusLine
- type StatusManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsANSITerminal ¶
func LaunchEmbeddedConsole ¶
func LaunchEmbeddedConsole(ctx context.Context, k *kong.Kong, binder KongContextBinder, client ftlv1connect.ControllerServiceClient)
func Predictors ¶
func Predictors(ctx context.Context, client ftlv1connect.ControllerServiceClient) map[string]complete.Predictor
func PrintJSON ¶
PrintJSON prints a json string to the terminal It probably doesn't belong here, but it will be moved later with the interactive terminal work
func RunInteractiveConsole ¶
func RunInteractiveConsole(ctx context.Context, k *kong.Kong, binder KongContextBinder, client ftlv1connect.ControllerServiceClient) error
func UpdateModuleState ¶
func UpdateModuleState(ctx context.Context, module string, state BuildState)
Types ¶
type BuildState ¶
type BuildState string
const BuildStateBuilding BuildState = "Building"
const BuildStateBuilt BuildState = "Built"
const BuildStateDeployed BuildState = "Deployed"
const BuildStateDeploying BuildState = "Deploying"
const BuildStateFailed BuildState = "Failed"
const BuildStateTerminated BuildState = "Terminated"
const BuildStateWaiting BuildState = "Waiting"
type ExitListener ¶
type ExitListener struct {
// contains filtered or unexported fields
}
type FTLCompletion ¶
type FTLCompletion struct {
// contains filtered or unexported fields
}
type KongContextBinder ¶
type StatusLine ¶
type StatusLine interface { SetMessage(message string) Close() }
type StatusManager ¶
type StatusManager interface { Close() NewStatus(message string) StatusLine IntoContext(ctx context.Context) context.Context SetModuleState(module string, state BuildState) }
func FromContext ¶
func FromContext(ctx context.Context) StatusManager
func NewStatusManager ¶
func NewStatusManager(ctx context.Context) StatusManager
Click to show internal directories.
Click to hide internal directories.