https://github.com/s4heid/goom
Open urls in the browser based on a config file
https://github.com/s4heid/goom
browser cli cobra golang url viper
Last synced: 2 months ago
JSON representation
Open urls in the browser based on a config file
- Host: GitHub
- URL: https://github.com/s4heid/goom
- Owner: s4heid
- License: apache-2.0
- Created: 2019-07-11T01:18:18.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T04:06:53.000Z (over 2 years ago)
- Last Synced: 2025-02-13T19:27:32.586Z (4 months ago)
- Topics: browser, cli, cobra, golang, url, viper
- Language: Go
- Homepage:
- Size: 81.1 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://goreportcard.com/report/s4heid/goom)
[](https://github.com/s4heid/goom/actions)
[](https://github.com/s4heid/goom/blob/master/LICENSE)# goom
A simple CLI application for opening url's in the web browser.
## Installation
Download the binary from ttps://github.com/s4heid/goom/releases. Alternatively,
you can### MacOS/Linux
Install goom via Homebrew/Linuxbrew package manager:
```bash
brew tap s4heid/homebrew-tap https://github.com/s4heid/homebrew-tap.git
brew install gozoom
```### Git
Build it from source:
```sh
git clone https://github.com/s4heid/goom.git
cd goom
make all
./goom
```## Configuration
Create a configuration file `~/.goom.yml`. The following properties need to be
specified:* `url` - the target url. Templating syntax can be used to build the target url
with properties of a room.
* `rooms` - list of rooms.
- `id` - identifier of a room.
- `alias` - alias for a room that should be unique.
- `name` *(optional)* - descriptive name of a room.Currently supported input source formats are [YAML](https://yaml.org) and
[JSON](https://www.json.org/)**Example Config**:
```yaml
---
url: https://zoom.us/j/{{.Id}}
rooms:
- id: 0123456789
name: Team Standup
alias: daily
- id: 9876543210
name: John Doe
alias: jd
```If you want to open the url that is associated with the room of John Doe, use
goom's `open` command and pass the alias `jd` as a command line argument:```sh
$ goom open jd
Opening "https://zoom.us/j/9876543210" in the browser...
```The interpolated url `https://zoom.us/j/9876543210` will be opened in a new
window of your default web browser.## License
[Apache License, Version 2.0](LICENSE)