prompt

package
v0.0.0-...-1fd3d55 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultPrompter

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

func (*DefaultPrompter) PromptLocation

func (p *DefaultPrompter) PromptLocation(
	ctx context.Context,
	subId string,
	msg string,
	filter LocationFilterPredicate,
) (string, error)

func (*DefaultPrompter) PromptResourceGroup

func (p *DefaultPrompter) PromptResourceGroup(ctx context.Context) (string, error)

func (*DefaultPrompter) PromptSubscription

func (p *DefaultPrompter) PromptSubscription(ctx context.Context, msg string) (subscriptionId string, err error)

type LocationFilterPredicate

type LocationFilterPredicate func(loc account.Location) bool

type Prompter

type Prompter interface {
	PromptSubscription(ctx context.Context, msg string) (subscriptionId string, err error)
	PromptLocation(ctx context.Context, subId string, msg string, filter LocationFilterPredicate) (string, error)
	PromptResourceGroup(ctx context.Context) (string, error)
}

func NewDefaultPrompter

func NewDefaultPrompter(
	env *environment.Environment,
	console input.Console,
	accountManager account.Manager,
	azCli azcli.AzCli,
	portalUrlBase cloud.PortalUrlBase,
) Prompter

Jump to

Keyboard shortcuts

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