Documentation ¶
Index ¶
- Variables
- func LoadOrDefault(workDir string) (*config.Config, bool)
- func Setup(currentConfig *config.Config, prompts []ConfigPrompt, workDir string) error
- type ConfigPrompt
- type PromptBuildCommand
- type PromptDebuggerOptions
- type PromptEnvironment
- type PromptExposePort
- type PromptName
- type PromptNetworks
- type PromptOutputBinary
- type PromptRunCommand
- type PromptRuntimeImage
- type SelectWithAddAndRemove
Constants ¶
This section is empty.
Variables ¶
var AppFs = afero.NewOsFs()
AppFs hold the file-system abstraction for this package
Functions ¶
func LoadOrDefault ¶
LoadOrDefault loads gebug's configuration file from the disk. Loads a default configuration in case of failure
Types ¶
type ConfigPrompt ¶
type ConfigPrompt interface { // Run asks for configuration field and saves it in configuration Run() error }
ConfigPrompt asks for fields for the configuration
type PromptBuildCommand ¶
PromptBuildCommand handles the prompt that asks for build command
func (*PromptBuildCommand) Run ¶
func (p *PromptBuildCommand) Run() error
Run asks the user for build command
type PromptDebuggerOptions ¶
PromptDebuggerOptions handles the prompt that asks for debugger options
func (*PromptDebuggerOptions) Run ¶
func (p *PromptDebuggerOptions) Run() error
Run asks the user for debugger options
type PromptEnvironment ¶
PromptEnvironment handles the prompt that asks for environment variables
func (*PromptEnvironment) Run ¶
func (p *PromptEnvironment) Run() error
Run asks the user for environment variables
type PromptExposePort ¶
PromptExposePort handles the prompt that asks for expose ports
func (*PromptExposePort) Run ¶
func (p *PromptExposePort) Run() error
Run asks the user for expose ports
type PromptName ¶
PromptName handles the prompt that asks for application name
type PromptNetworks ¶
PromptNetworks handles the prompt that asks for networks
func (*PromptNetworks) Run ¶
func (p *PromptNetworks) Run() error
Run asks the user for networks to use
type PromptOutputBinary ¶
PromptOutputBinary handles the prompt that asks for output binary
func (*PromptOutputBinary) Run ¶
func (p *PromptOutputBinary) Run() error
Run asks the user for the name of the output binary
type PromptRunCommand ¶
PromptRunCommand handles the prompt that asks for run command
func (*PromptRunCommand) Run ¶
func (p *PromptRunCommand) Run() error
Run asks the user for the run command
type PromptRuntimeImage ¶
PromptRuntimeImage handles the prompt that asks for runtime image
func (*PromptRuntimeImage) Run ¶
func (p *PromptRuntimeImage) Run() error
Run asks the user for the runtime image
type SelectWithAddAndRemove ¶
type SelectWithAddAndRemove struct {
// contains filtered or unexported fields
}
SelectWithAddAndRemove provides a ui prompt for a list that supports both adding to and removing from a list
func NewSelectWithAddAndRemove ¶
func NewSelectWithAddAndRemove(field *[]string, prompt *promptui.SelectWithAdd) *SelectWithAddAndRemove
NewSelectWithAddAndRemove constructs SelectWithAddAndRemove
func (*SelectWithAddAndRemove) Run ¶
func (s *SelectWithAddAndRemove) Run() error
Run runs the prompt