mirror of
https://github.com/onyx-and-iris/gobs-cli.git
synced 2026-04-18 07:03:37 +00:00
add env file resolver
This commit is contained in:
20
README.md
20
README.md
@@ -22,17 +22,19 @@ gobs-cli --host=localhost --port=4455 --password=<websocket password> --help
|
||||
|
||||
#### Environment Variables
|
||||
|
||||
Load connection details from your environment:
|
||||
Store and load environment variables from:
|
||||
|
||||
```bash
|
||||
#!/usr/bin/env bash
|
||||
- A `.env` file in the cwd
|
||||
- $XDG_CONFIG_HOME / gobs-cli / config.env (see [os.UserConfigDir][userconfigdir])
|
||||
|
||||
export OBS_HOST=localhost
|
||||
export OBS_PORT=4455
|
||||
export OBS_PASSWORD=<websocket password>
|
||||
export OBS_TIMEOUT=5
|
||||
```env
|
||||
OBS_HOST=localhost
|
||||
OBS_PORT=4455
|
||||
OBS_PASSWORD=<websocket password>
|
||||
OBS_TIMEOUT=5
|
||||
```
|
||||
|
||||
|
||||
## Commands
|
||||
|
||||
### VersionCmd
|
||||
@@ -433,4 +435,6 @@ gobs-cli virtualcam toggle
|
||||
|
||||
```console
|
||||
gobs-cli virtualcam status
|
||||
```
|
||||
```
|
||||
|
||||
[userconfigdir]: https://pkg.go.dev/os#UserConfigDir
|
||||
Reference in New Issue
Block a user