input

package
v0.6.0-preview2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package input provides input parsing utilities for the Inertia CLI

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProjectWalkthrough

func AddProjectWalkthrough() (
	buildType cfg.BuildType, buildFilePath string, err error,
)

AddProjectWalkthrough is the command line walkthrough that asks for details about the project the user intends to deploy

func CatchSigterm

func CatchSigterm(cancelFunc func())

CatchSigterm listens in the background for some kind of interrupt and calls the given cancelFunc as necessary

func ChooseFromListWalkthrough

func ChooseFromListWalkthrough(optionName string, options []string) (string, error)

ChooseFromListWalkthrough prints given options and reads in a choice from the given reader

func EnterEC2CredentialsWalkthrough

func EnterEC2CredentialsWalkthrough() (id, key string, err error)

EnterEC2CredentialsWalkthrough prints promts to stdout and reads input from given reader

func Prompt

func Prompt(query ...interface{}) (string, error)

Prompt prints the given query and reads the response

func Promptf

func Promptf(query string, args ...interface{}) (string, error)

Promptf prints the given query and reads the response

Types

This section is empty.

Jump to

Keyboard shortcuts

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