https://github.com/pomdtr/ask
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pomdtr/ask
- Owner: pomdtr
- License: mit
- Created: 2023-06-03T10:17:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-03T15:14:18.000Z (over 2 years ago)
- Last Synced: 2025-06-12T20:33:38.667Z (4 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).

## 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:"
```