Documentation ¶
Index ¶
- func GetPotentials(ctx context.Context, resolver *buildcontext.Resolver, gwClient gwclient.Client, ...) ([]string, error)
- func Log(s string)
- func Logf(format string, args ...interface{})
- func NewCachedCloudClient(installationName string, c cloudListClient) cloudListClient
- func SetupLog(path string)
- type FlagValuePotentialFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPotentials ¶
func GetPotentials(ctx context.Context, resolver *buildcontext.Resolver, gwClient gwclient.Client, compLine string, compPoint int, app *cli.App, cloudClient cloudListClient) ([]string, error)
GetPotentials returns a list of potential arguments for shell auto completion NOTE: you can cause earthly to run this command with:
COMP_LINE="earthly -" COMP_POINT=$(echo -n $COMP_LINE | wc -c) go run cmd/earthly/main.go
func NewCachedCloudClient ¶ added in v0.7.7
func NewCachedCloudClient(installationName string, c cloudListClient) cloudListClient
func SetupLog ¶ added in v0.8.14
func SetupLog(path string)
SetupLog enables debug-level logging in the autocomplete package when path is set to a logfile. this is particuarly useful since autocompletion is called via a shell which can mangle stderr output and interprets stdout as autocompletion values.
Types ¶
Click to show internal directories.
Click to hide internal directories.