Documentation
¶
Index ¶
- func Adapt(...) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func CompleteApps(ctx context.Context, cmd *cobra.Command, args []string, partial string) ([]string, error)
- func CompleteOrgs(ctx context.Context, cmd *cobra.Command, args []string, partial string) ([]string, error)
- func CompleteRegions(ctx context.Context, cmd *cobra.Command, args []string, partial string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Adapt ¶
func Adapt(
fn func(ctx context.Context, cmd *cobra.Command, args []string, partial string) ([]string, error),
) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
Adapt takes a function that expects a standard flyctl command context and returns completion ideas or an error, and adapts it to the completion function signature expected by cobra. It also sets up the context with a subset of the preparers that are needed for basic functions of flyctl.
func CompleteApps ¶
func CompleteApps(
ctx context.Context,
cmd *cobra.Command,
args []string,
partial string,
) ([]string, error)
func CompleteOrgs ¶
func CompleteOrgs(
ctx context.Context,
cmd *cobra.Command,
args []string,
partial string,
) ([]string, error)
func CompleteRegions ¶
func CompleteRegions(
ctx context.Context,
cmd *cobra.Command,
args []string,
partial string,
) ([]string, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.