selectors

package
v0.3.6 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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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