step

package
v0.0.0-...-00ec098 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Choice

type Choice struct {
	Name string
	Desc string
	Link string
}

A Choice represents a question posed to a user.

type Fetch

type Fetch struct {
	Link string
	Path string
}

Fetch downloads the given resource into the provided path.

func (Fetch) Name

func (f Fetch) Name() string

func (Fetch) Run

func (f Fetch) Run() error

type Prompt

type Prompt struct {
	Text    string
	Choices []Choice
}

Prompt asks a question and records the user's response.

func (Prompt) Name

func (p Prompt) Name() string

func (Prompt) Run

func (p Prompt) Run() error

type Setup

type Setup interface {
	Name() string
	Run() error
}

Jump to

Keyboard shortcuts

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