helper

package
v0.8.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2026 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoComplete

func AutoComplete(ctx context.Context, cli *base.CLI) (code int)

AutoComplete handles shell autocomplete requests. If the COMP_LINE environment variable is not set, it returns -1 to indicate that autocomplete is not being requested. If COMP_LINE is set, it processes the autocomplete request and returns 0 on success or 1 on failure.

To enable autocomplete, enter complete -o nospace -C "/path/to/earthly" earthly

Alternatively, you can run earthly with COMP_LINE and COMP_POINT set; for example:

COMP_LINE="earthly ./buildkitd+buildkitd --" COMP_POINT="32" ./build/linux/amd64/earthly
COMP_LINE="earthly ~/test/simple+test -" COMP_POINT="28" ./build/linux/amd64/earthly

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL