cli

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Methods

type Methods struct {
	// contains filtered or unexported fields
}

Methods is a slice of toolsets.Method that implements the flag.Value interface, allowing it to be used as a command-line flag type.

func NewMethods added in v1.18.2

func NewMethods(initial ...toolsets.Method) *Methods

NewMethods creates a new Methods instance with the specified initial methods.

func (*Methods) Profiles added in v1.18.2

func (m *Methods) Profiles() []string

Profiles returns the list of enabled profiles.

func (*Methods) Set

func (m *Methods) Set(value string) error

Set parses a comma-separated string of method names and updates the Methods slice. It supports individual method names, as well as profile names that expand into multiple methods. If an invalid method or profile name is encountered, it returns an error.

func (Methods) String

func (m Methods) String() string

String returns a comma-separated string representation of the Methods slice.

func (*Methods) Toolsets added in v1.18.2

func (m *Methods) Toolsets() []toolsets.Method

Toolsets returns the list of enabled toolset methods.

Jump to

Keyboard shortcuts

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