task

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package task provides the “--task” CLI flag to enable task discovery.

Use Enabled to query whether task discovery has been requested (enabled), or FromTasks that instead returns an appropriate discovery option.

Index

Constants

View Source
const (
	TaskFlagName = "task"
)

Names of the CLI flags defined and used in this package.

Variables

This section is empty.

Functions

func Enabled

func Enabled(cmd *cobra.Command) bool

Enabled returns true if tasks should be discovered, otherwise false.

func FromTasks

func FromTasks(cmd *cobra.Command) discover.DiscoveryOption

FromTasks returns a discover.FromTasks option if task discovery has been requested on the CLI, otherwise nil.

func SetupCLI

func SetupCLI(cmd *cobra.Command)

SetupCLI adds the "task" flag to enable/disable task discovery.

Types

This section is empty.

Jump to

Keyboard shortcuts

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