surveyor

command module
v0.0.2-0...-2500d6a Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: MIT Imports: 6 Imported by: 0

README

surveyor

A Command-Line Interface (CLI) utility for interactive terminal prompts.

Inspired by enquirer.

Disclaimer: This is still under development and not ready for production. See critical bug that defeats the whole premise of this project.

Table of Contents

Install

surveyor is available for Linux, macOS, Windows, and more.

Homebrew

Coming soon...

Go

GO111MODULE="on" go get -u -v github.com/pbnj/surveyor

Usage


NAME:
   surveyor - A Command-Line Interface (CLI) utility for interactive terminal prompts

USAGE:
   main [global options] command [command options] [arguments...]

COMMANDS:
   input        Prompt user for text input
   multiline    Prompt user for multiline text input
   password     Prompt user for password input
   confirm      Prompt user for confirmation
   select       Prompt user for single-choice selection
   multiselect  Prompt user for multi-choice selection
   help, h      Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h  show help (default: false)

Example


Input
GH_USER=$(surveyor input --message "What is your GitHub username:")

curl https://api.github.com/users/${GH_USER}
Multiline

Password

Confirm

select

multiselect

Contributing

Any and all contributions are welcome!

For bugs, suggestions, or enhancements, please submit an issue.

Special Thanks

Thank you to authors and maintainers of:

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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