completion

package
v0.1.64 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContentCreateArgs

func ContentCreateArgs(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

ContentCreateArgs completes only the content kind (first arg) for the create command, since the second arg is a new name chosen by the user.

Types

type CompletionFunc

type CompletionFunc = func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

CompletionFunc is the function signature for cobra ValidArgsFunction.

func ActivePlays

func ActivePlays(cli labcli.CLI) CompletionFunc

ActivePlays completes playground IDs that are in an active (non-stopped, non-destroyed) state. Use for: stop, ssh, port-forward, expose port/shell/list/remove, ssh-proxy, persist.

func ChallengeNames

func ChallengeNames(cli labcli.CLI) CompletionFunc

ChallengeNames completes all challenge names from the catalog. Use for: challenge start.

func ContentArgs

func ContentArgs(cli labcli.CLI) CompletionFunc

ContentArgs completes content kind (first arg) and authored content names (second arg). Use for: content pull, push, remove.

func CourseArgs

func CourseArgs(cli labcli.CLI) CompletionFunc

CourseArgs completes course names (first arg) and lesson names (second arg) from the full catalog. Use for: course start.

func NonDestroyedPlays

func NonDestroyedPlays(cli labcli.CLI) CompletionFunc

NonDestroyedPlays completes playground IDs that are not destroyed. Use for: destroy, machines, tasks.

func PlaygroundNames

func PlaygroundNames(cli labcli.CLI) CompletionFunc

PlaygroundNames completes playground template names for the start command. Returns user's custom playgrounds first, then official, then community.

func StartedChallengeNames

func StartedChallengeNames(cli labcli.CLI) CompletionFunc

StartedChallengeNames completes only challenge names that have an active play session. Use for: challenge stop, challenge complete.

func StartedCourseArgs

func StartedCourseArgs(cli labcli.CLI) CompletionFunc

StartedCourseArgs completes only courses with started lessons (first arg) and only started lessons within a course (second arg). Use for: course stop.

func StartedTutorialNames

func StartedTutorialNames(cli labcli.CLI) CompletionFunc

StartedTutorialNames completes only tutorial names that have an active play session. Use for: tutorial stop, tutorial complete.

func StoppedPlays

func StoppedPlays(cli labcli.CLI) CompletionFunc

StoppedPlays completes playground IDs that are in a stopped state. Use for: restart.

func TutorialNames

func TutorialNames(cli labcli.CLI) CompletionFunc

TutorialNames completes all tutorial names from the catalog. Use for: tutorial start.

Jump to

Keyboard shortcuts

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