Skip to content
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.
/ surveyor Public archive

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

License

Notifications You must be signed in to change notification settings

pbnj/surveyor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages