_select

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DynamicSelect = func(ctx common.Context, o *selectOrchestrator) error {
	err := o.runner.PrepareFunc(o.runner, ctx)
	if err != nil {
		return err
	}
	err = o.prepareFunc(o, ctx)
	if err != nil {
		return err
	}
	o.bannerFunc(o)
	promptErr := o.runFunc(o, ctx)
	if promptErr != nil {
		return managePromptError(promptErr)
	}
	return nil
}

Functions

func AddCommand

func AddCommand(parent cmd.AnchorCommand, commandFolderName string, createCmdFunc NewCommandFunc) error

func NewCommand

func NewCommand(ctx common.Context, commandFolderName string, selectFunc DynamicSelectFunc) *selectCmd

func NewOrchestrator

func NewOrchestrator(runner *runner.ActionRunnerOrchestrator, commandFolderName string) *selectOrchestrator

Types

type DynamicSelectFunc

type DynamicSelectFunc func(ctx common.Context, o *selectOrchestrator) error

type NewCommandFunc

type NewCommandFunc func(ctx common.Context, commandFolderName string, selectFunc DynamicSelectFunc) *selectCmd

Jump to

Keyboard shortcuts

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