inpututil

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package inpututil provides input parsing utilities for the Inertia CLI

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProjectWalkthrough

func AddProjectWalkthrough(in io.Reader) (
	buildType string, buildFilePath string, inputErr error,
)

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

func AddRemoteWalkthrough

func AddRemoteWalkthrough(
	in io.Reader, config *cfg.Config,
	name, port, sshPort, currBranch string,
) error

AddRemoteWalkthrough is the command line walkthrough that asks users for RemoteVPS details. It is up to the caller to save config.

func ChooseFromListWalkthrough

func ChooseFromListWalkthrough(in io.Reader, optionName string, options []string) (string, error)

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

func EnterEC2CredentialsWalkthrough

func EnterEC2CredentialsWalkthrough(in io.Reader) (id, key string, err error)

EnterEC2CredentialsWalkthrough prints promts to stdout and reads input from given reader

Types

This section is empty.

Jump to

Keyboard shortcuts

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