selectors

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Account

func Account(ask question.Asker, list []accounts.IAccount, message string) (accounts.IAccount, error)

func ByNameOrID

func ByNameOrID[T NameOrID](ask question.Asker, list []T, message string) (T, error)

func Channel added in v0.2.1

func Channel(octopus *octopusApiClient.Client, ask question.Asker, questionText string, project *projects.Project) (*channels.Channel, error)

func EnvironmentSelect added in v0.2.1

func EnvironmentSelect(ask question.Asker, client *client.Client, message string) (*environments.Environment, error)

func EnvironmentsMultiSelect added in v0.2.0

func EnvironmentsMultiSelect(ask question.Asker, client *client.Client, message string, required bool) ([]*environments.Environment, error)

func FindChannel added in v0.2.1

func FindChannel(octopus *octopusApiClient.Client, project *projects.Project, channelName string) (*channels.Channel, error)

func FindEnvironment added in v0.2.1

func FindEnvironment(octopus *client.Client, environmentName string) (*environments.Environment, error)

func FindProject added in v0.2.1

func FindProject(octopus *octopusApiClient.Client, projectName string) (*projects.Project, error)

func Project added in v0.2.1

func Project(questionText string, octopus *octopusApiClient.Client, ask question.Asker) (*projects.Project, error)

Types

type NameOrID

type NameOrID interface {
	GetName() string
	GetID() string
}

Jump to

Keyboard shortcuts

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