task

package
v0.42.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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

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

Index

Constants

View Source
const (
	TaskFlagName = "task"
)

Names of the CLI flags provided in this package.

Variables

This section is empty.

Functions

func DiscoveryOption

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

DiscoveryOption returns a discover.FromTasks option func when task discovery has been requested on the passed cmd, otherwise nil.

func Enabled

func Enabled(cmd *cobra.Command) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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