Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pomdtr/ask
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pomdtr/ask
- Owner: pomdtr
- License: mit
- Created: 2023-06-03T10:17:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-03T15:14:18.000Z (over 1 year ago)
- Last Synced: 2024-06-21T19:54:29.482Z (7 months ago)
- Language: Go
- Size: 229 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# Ask
A cli for the [survey](https://github.com/go-survey/survey) library, inspired by [gum](https://github.com/charmbracelet/gum).
![demo](https://vhs.charm.sh/vhs-2rDv6Sx6xThz61l25M6dtl.gif)
## Installation
```bash
# brew
brew install pomdtr/tap/ask# from source
go install github.com/pomdtr/ask@latest
```Or download the packages from [github releases](https:github.com/pomdtr/ask/releases).
## Usage
### Ask for input
```bash
ask "What is your name?"
```### Ask for password
```bash
ask --password "What is your password?"
```### Ask for confirmation
```bash
ask --confirm "Are you sure?"
```### Ask for selection
```bash
ls -1 | ask --select "Select a file:"
```### Ask for long input
```bash
ask --edit "Write a commit message:"
```