https://github.com/harrisoncramer/joke-gpt
An example TUI with Cobra, Charm, and Viper that uses ChatGPT to tell you jokes
https://github.com/harrisoncramer/joke-gpt
bubbletea charmbracelet cli cobra-cli go golang tui
Last synced: 9 months ago
JSON representation
An example TUI with Cobra, Charm, and Viper that uses ChatGPT to tell you jokes
- Host: GitHub
- URL: https://github.com/harrisoncramer/joke-gpt
- Owner: harrisoncramer
- Created: 2024-07-30T02:35:08.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-26T22:30:52.000Z (almost 2 years ago)
- Last Synced: 2025-01-11T04:43:18.898Z (over 1 year ago)
- Topics: bubbletea, charmbracelet, cli, cobra-cli, go, golang, tui
- Language: Go
- Homepage:
- Size: 86.9 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# joke-gpt
This Repository is a template for creating CLI/TUI tools with Bubble Tea, Cobra, and Viper.
# Configuration
The plugin can use a configuration file in the current directory called `config.yaml` which contains the following schema:
```yaml
token: "api-token"
network:
timeout: 5000 # In milliseconds
display:
cursor: ">"
debug:
filepath: "debug.log"
messages: false
keys:
up: "k"
down: "j"
select: "enter"
quit: "esc"
repeat: "r"
```
Run `joke-gpt --help` for more information. You may also supply your ChatGPT token as an environment variable or as a flag argument.