Documentation ¶
Index ¶
- func ByName[T Nameable](ask question.Asker, list []T, message string) (T, error)
- func Channel(octopus *octopusApiClient.Client, ask question.Asker, io io.Writer, ...) (*channels.Channel, error)
- func EnvironmentSelect(ask question.Asker, getAllEnvironmentsCallback GetAllEnvironmentsCallback, ...) (*environments.Environment, error)
- func EnvironmentsMultiSelect(ask question.Asker, getAllEnvironmentsCallback GetAllEnvironmentsCallback, ...) ([]*environments.Environment, error)
- func FindChannel(octopus *octopusApiClient.Client, project *projects.Project, ...) (*channels.Channel, error)
- func FindEnvironment(octopus *client.Client, environmentName string) (*environments.Environment, error)
- func FindProject(octopus *octopusApiClient.Client, projectIdentifier string) (*projects.Project, error)
- func GetAllEnvironments(client *client.Client) ([]*environments.Environment, error)
- func GitCredentialStorage(questionText string, ask question.Asker) (string, error)
- func Lifecycle(questionText string, octopus *client.Client, ask question.Asker) (*lifecycles.Lifecycle, error)
- func Project(questionText string, octopus *octopusApiClient.Client, ask question.Asker) (*projects.Project, error)
- func Select[T any](ask question.Asker, questionText string, itemsCallback func() ([]T, error), ...) (T, error)
- func SelectOrNew[T any](ask question.Asker, questionText string, itemsCallback func() ([]T, error), ...) (T, bool, error)
- type GetAllEnvironmentsCallback
- type Nameable
- type SelectOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvironmentSelect ¶ added in v0.2.1
func EnvironmentSelect(ask question.Asker, getAllEnvironmentsCallback GetAllEnvironmentsCallback, message string) (*environments.Environment, error)
func EnvironmentsMultiSelect ¶ added in v0.2.0
func EnvironmentsMultiSelect(ask question.Asker, getAllEnvironmentsCallback GetAllEnvironmentsCallback, message string, required bool) ([]*environments.Environment, error)
func FindChannel ¶ added in v0.2.1
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 GetAllEnvironments ¶ added in v0.6.0
func GetAllEnvironments(client *client.Client) ([]*environments.Environment, error)
func GitCredentialStorage ¶ added in v0.5.0
func SelectOrNew ¶ added in v0.5.0
func SelectOrNew[T any](ask question.Asker, questionText string, itemsCallback func() ([]T, error), getKey func(item T) string) (T, bool, error)
SelectOrNew is the same as Select but show a create new option at the bottom of the list When create new is selected the returned bool will be true
Types ¶
type GetAllEnvironmentsCallback ¶ added in v0.6.0
type GetAllEnvironmentsCallback func() ([]*environments.Environment, error)
type SelectOption ¶ added in v0.5.0
func NewSelectOption ¶ added in v1.3.0
func NewSelectOption[T any](value any, display string) *SelectOption[T]
func SelectOptions ¶ added in v0.5.0
func SelectOptions[T any](ask question.Asker, questionText string, itemsCallback func() []*SelectOption[T]) (*SelectOption[T], error)
Click to show internal directories.
Click to hide internal directories.