mirror of
https://github.com/onyx-and-iris/gobs-cli.git
synced 2026-04-18 07:03:37 +00:00
Compare commits
2 Commits
add-settin
...
v0.16.1
| Author | SHA1 | Date | |
|---|---|---|---|
| 3ffdf668ff | |||
| 6e37c2c6c7 |
@@ -5,11 +5,12 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
# [0.15.0] - 2026-01-26
|
||||
# [0.16.0] - 2026-01-26
|
||||
|
||||
### Added
|
||||
|
||||
- new subcommands added to input, see [InputCmd](https://github.com/onyx-and-iris/gobs-cli?tab=readme-ov-file#inputcmd)
|
||||
- settings command group, see [SettingsCmd](https://github.com/onyx-and-iris/gobs-cli?tab=readme-ov-file#settingscmd)
|
||||
|
||||
# [0.14.1] - 2025-07-14
|
||||
|
||||
|
||||
10
README.md
10
README.md
@@ -725,7 +725,7 @@ gobs-cli projector open --monitor-index=1 "test_group"
|
||||
gobs-cli screenshot save --width=2560 --height=1440 "Scene" "C:\Users\me\Videos\screenshot.png"
|
||||
```
|
||||
|
||||
### Settings
|
||||
### SettingsCmd
|
||||
|
||||
- show: Show settings.
|
||||
- flags:
|
||||
@@ -749,19 +749,21 @@ gobs-cli settings profile SimpleOutput VBitrate 6000
|
||||
```
|
||||
|
||||
- stream-service: Get/Set stream service setting.
|
||||
- args: Type
|
||||
- flags:
|
||||
- --key: Stream key.
|
||||
- --server: Stream server URL.
|
||||
|
||||
*optional*
|
||||
- args: Type
|
||||
|
||||
```console
|
||||
gobs-cli settings stream-service
|
||||
|
||||
gobs-cli settings stream-service rtmp_common --key='live_xyzxyzxyzxyz'
|
||||
gobs-cli settings stream-service --key='live_xyzxyzxyzxyz' rtmp_common
|
||||
```
|
||||
|
||||
- video: Get/Set video setting.
|
||||
- flags:
|
||||
- flags:
|
||||
- --show: Show video settings.
|
||||
- --base-width: Base (canvas) width.
|
||||
- --base-height: Base (canvas) height.
|
||||
|
||||
@@ -189,7 +189,7 @@ func (cmd *SettingsProfileCmd) Run(ctx *context) error {
|
||||
|
||||
// SettingsStreamServiceCmd gets/ sets stream service settings.
|
||||
type SettingsStreamServiceCmd struct {
|
||||
Type string `arg:"" help:"Stream type (e.g., rtmp_common, rtmp_custom)." required:""`
|
||||
Type string `arg:"" help:"Stream type (e.g., rtmp_common, rtmp_custom)." optional:""`
|
||||
Key string ` help:"Stream key." flag:""`
|
||||
Server string ` help:"Stream server URL." flag:""`
|
||||
}
|
||||
@@ -202,7 +202,7 @@ func (cmd *SettingsStreamServiceCmd) Run(ctx *context) error {
|
||||
return fmt.Errorf("failed to get stream service settings: %w", err)
|
||||
}
|
||||
|
||||
if cmd.Key == "" && cmd.Server == "" {
|
||||
if cmd.Type == "" {
|
||||
t := table.New().Border(lipgloss.RoundedBorder()).
|
||||
BorderStyle(lipgloss.NewStyle().Foreground(ctx.Style.border)).
|
||||
Headers("Stream Service Setting", "Value").
|
||||
@@ -219,7 +219,7 @@ func (cmd *SettingsStreamServiceCmd) Run(ctx *context) error {
|
||||
return style
|
||||
})
|
||||
|
||||
t.Row("Type", cmd.Type)
|
||||
t.Row("Type", resp.StreamServiceType)
|
||||
t.Row("Key", resp.StreamServiceSettings.Key)
|
||||
t.Row("Server", resp.StreamServiceSettings.Server)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user