Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/risgar/cli-launcher
https://github.com/risgar/cli-launcher
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/risgar/cli-launcher
- Owner: RisGar
- License: eupl-1.2
- Created: 2023-04-13T18:13:00.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-04-22T17:14:54.000Z (over 1 year ago)
- Last Synced: 2024-05-02T05:02:04.320Z (8 months ago)
- Language: Go
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cli-launcher
A tool built with [bubbletea](https://github.com/charmbracelet/bubbletea) to display a list of terminal commands with custom titles. My use case for this program is listing out terminal games installed on my system.
## Installation
```console
$ make build
go build -o bin/term-games
```## Configuration
To specify the terminal commands, which should be used available, edit the `iterms` variable in the `config.go` file.
```go
var items []list.Item = []list.Item{
item{title: "Program 1", desc: "command_in_path"},
item{title: "Program 2", desc: "/full/path/to/executable"},
}
```The `title` field can be any string, however the `desc` field has to be the command executable.
For commands in your `$PATH`, you can provide the executable directly, for others, please provide a full path to the executable.