prompt

package
v0.0.0-...-866a79a Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 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 Prompt

type Prompt struct {
	ArtistName   string
	SongName     string
	SearchResult map[string]string
}

Prompt is the entity representing the current search metadata.

func New

func New() *Prompt

New instantiates a new prompt and returns a pointer to it.

func (*Prompt) Run

func (p *Prompt) Run()

Run the prompt and save the artist and song name.

func (*Prompt) SelectSearchResult

func (p *Prompt) SelectSearchResult() string

SelectSearchResult creates a select prompt to help the user choose a song among a list of results.

Jump to

Keyboard shortcuts

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