add local path dep for kong-completion

update the completion tags
This commit is contained in:
onyx-and-iris 2026-03-25 21:08:36 +00:00
parent e5e0ac3dcf
commit acf7bc79b2
18 changed files with 103 additions and 103 deletions

View File

@ -13,11 +13,11 @@ import (
// FilterCmd provides commands to manage filters in OBS Studio.
type FilterCmd struct {
List FilterListCmd `cmd:"" help:"List all filters." aliases:"ls"`
Enable FilterEnableCmd `cmd:"" help:"Enable filter." aliases:"on"`
Disable FilterDisableCmd `cmd:"" help:"Disable filter." aliases:"off"`
Toggle FilterToggleCmd `cmd:"" help:"Toggle filter." aliases:"tg"`
Status FilterStatusCmd `cmd:"" help:"Get filter status." aliases:"ss"`
List FilterListCmd `cmd:"" help:"List all filters." aliases:"ls" completion-command-alias-enabled:"false"`
Enable FilterEnableCmd `cmd:"" help:"Enable filter." aliases:"on" completion-command-alias-enabled:"false"`
Disable FilterDisableCmd `cmd:"" help:"Disable filter." aliases:"off" completion-command-alias-enabled:"false"`
Toggle FilterToggleCmd `cmd:"" help:"Toggle filter." aliases:"tg" completion-command-alias-enabled:"false"`
Status FilterStatusCmd `cmd:"" help:"Get filter status." aliases:"ss" completion-command-alias-enabled:"false"`
}
// FilterListCmd provides a command to list all filters in a scene.

2
go.mod
View File

@ -2,6 +2,8 @@ module github.com/onyx-and-iris/gobs-cli
go 1.25.0
replace github.com/jotaen/kong-completion v0.0.12 => ../kong-completion
require (
github.com/alecthomas/kong v1.14.0
github.com/alecthomas/mango-kong v0.1.0

2
go.sum
View File

@ -47,8 +47,6 @@ github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUq
github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg=
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
github.com/jotaen/kong-completion v0.0.12 h1:a9jmSaWgkdAUMQT583UxLIJrO9tfdSmYqcIxrBByjPc=
github.com/jotaen/kong-completion v0.0.12/go.mod h1:dyIG20e3qq128SUBtF8jzI7YtkfzjWMlgbqkAJd6xHQ=
github.com/lucasb-eyer/go-colorful v1.3.0 h1:2/yBRLdWBZKrf7gB40FoiKfAWYQ0lqNcbuQwVHXptag=
github.com/lucasb-eyer/go-colorful v1.3.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=

View File

@ -10,11 +10,11 @@ import (
// GroupCmd provides commands to manage groups in OBS Studio.
type GroupCmd struct {
List GroupListCmd `cmd:"" help:"List all groups." aliases:"ls"`
Show GroupShowCmd `cmd:"" help:"Show group details." aliases:"sh"`
Hide GroupHideCmd `cmd:"" help:"Hide group." aliases:"h"`
Toggle GroupToggleCmd `cmd:"" help:"Toggle group." aliases:"tg"`
Status GroupStatusCmd `cmd:"" help:"Get group status." aliases:"ss"`
List GroupListCmd `cmd:"" help:"List all groups." aliases:"ls" completion-command-alias-enabled:"false"`
Show GroupShowCmd `cmd:"" help:"Show group details." aliases:"sh" completion-command-alias-enabled:"false"`
Hide GroupHideCmd `cmd:"" help:"Hide group." aliases:"h" completion-command-alias-enabled:"false"`
Toggle GroupToggleCmd `cmd:"" help:"Toggle group." aliases:"tg" completion-command-alias-enabled:"false"`
Status GroupStatusCmd `cmd:"" help:"Get group status." aliases:"ss" completion-command-alias-enabled:"false"`
}
// GroupListCmd provides a command to list all groups in a scene.

View File

@ -11,9 +11,9 @@ import (
// HotkeyCmd provides commands to manage hotkeys in OBS Studio.
type HotkeyCmd struct {
List HotkeyListCmd `cmd:"" help:"List all hotkeys." aliases:"ls"`
Trigger HotkeyTriggerCmd `cmd:"" help:"Trigger a hotkey by name." aliases:"tr"`
TriggerSequence HotkeyTriggerSequenceCmd `cmd:"" help:"Trigger a hotkey by sequence." aliases:"trs"`
List HotkeyListCmd `cmd:"" help:"List all hotkeys." aliases:"ls" completion-command-alias-enabled:"false"`
Trigger HotkeyTriggerCmd `cmd:"" help:"Trigger a hotkey by name." aliases:"tr" completion-command-alias-enabled:"false"`
TriggerSequence HotkeyTriggerSequenceCmd `cmd:"" help:"Trigger a hotkey by sequence." aliases:"trs" completion-command-alias-enabled:"false"`
}
// HotkeyListCmd provides a command to list all hotkeys.

View File

@ -14,17 +14,17 @@ import (
// InputCmd provides commands to manage inputs in OBS Studio.
type InputCmd struct {
Create InputCreateCmd `cmd:"" help:"Create input." aliases:"c"`
Remove InputRemoveCmd `cmd:"" help:"Remove input." aliases:"d"`
List InputListCmd `cmd:"" help:"List all inputs." aliases:"ls"`
ListKinds InputListKindsCmd `cmd:"" help:"List input kinds." aliases:"k"`
Mute InputMuteCmd `cmd:"" help:"Mute input." aliases:"m"`
Unmute InputUnmuteCmd `cmd:"" help:"Unmute input." aliases:"um"`
Toggle InputToggleCmd `cmd:"" help:"Toggle input." aliases:"tg"`
Volume InputVolumeCmd `cmd:"" help:"Set input volume." aliases:"v"`
Show InputShowCmd `cmd:"" help:"Show input details." aliases:"s"`
Update InputUpdateCmd `cmd:"" help:"Update input settings." aliases:"up"`
KindDefaults InputKindDefaultsCmd `cmd:"" help:"Get default settings for an input kind." aliases:"df"`
Create InputCreateCmd `cmd:"" help:"Create input." aliases:"c" completion-command-alias-enabled:"false"`
Remove InputRemoveCmd `cmd:"" help:"Remove input." aliases:"d" completion-command-alias-enabled:"false"`
List InputListCmd `cmd:"" help:"List all inputs." aliases:"ls" completion-command-alias-enabled:"false"`
ListKinds InputListKindsCmd `cmd:"" help:"List input kinds." aliases:"k" completion-command-alias-enabled:"false"`
Mute InputMuteCmd `cmd:"" help:"Mute input." aliases:"m" completion-command-alias-enabled:"false"`
Unmute InputUnmuteCmd `cmd:"" help:"Unmute input." aliases:"um" completion-command-alias-enabled:"false"`
Toggle InputToggleCmd `cmd:"" help:"Toggle input." aliases:"tg" completion-command-alias-enabled:"false"`
Volume InputVolumeCmd `cmd:"" help:"Set input volume." aliases:"v" completion-command-alias-enabled:"false"`
Show InputShowCmd `cmd:"" help:"Show input details." aliases:"s" completion-command-alias-enabled:"false"`
Update InputUpdateCmd `cmd:"" help:"Update input settings." aliases:"up" completion-command-alias-enabled:"false"`
KindDefaults InputKindDefaultsCmd `cmd:"" help:"Get default settings for an input kind." aliases:"df" completion-command-alias-enabled:"false"`
}
// InputCreateCmd provides a command to create an input.

52
main.go
View File

@ -34,16 +34,16 @@ func (v VersionFlag) BeforeApply(app *kong.Kong, vars kong.Vars) error { // noli
// ObsConfig holds the configuration for connecting to the OBS WebSocket server.
type ObsConfig struct {
Host string `flag:"host" help:"Host to connect to." default:"localhost" env:"OBS_HOST" short:"H"`
Port int `flag:"port" help:"Port to connect to." default:"4455" env:"OBS_PORT" short:"P"`
Password string `flag:"password" help:"Password for authentication." default:"" env:"OBS_PASSWORD" short:"p"`
Timeout int `flag:"timeout" help:"Timeout in seconds." default:"5" env:"OBS_TIMEOUT" short:"T"`
Host string `flag:"host" help:"Host to connect to." default:"localhost" env:"OBS_HOST" short:"H" completion-short-enabled:"false"`
Port int `flag:"port" help:"Port to connect to." default:"4455" env:"OBS_PORT" short:"P" completion-short-enabled:"false"`
Password string `flag:"password" help:"Password for authentication." default:"" env:"OBS_PASSWORD" short:"p" completion-short-enabled:"false"`
Timeout int `flag:"timeout" help:"Timeout in seconds." default:"5" env:"OBS_TIMEOUT" short:"T" completion-short-enabled:"false"`
}
// StyleConfig holds the configuration for styling the CLI output.
type StyleConfig struct {
Style string `help:"Style used in output." flag:"style" default:"" env:"GOBS_STYLE" short:"s" enum:",red,magenta,purple,blue,cyan,green,yellow,orange,white,grey,navy,black"`
NoBorder bool `help:"Disable table border styling in output." flag:"no-border" default:"false" env:"GOBS_STYLE_NO_BORDER" short:"b"`
Style string `flag:"style" help:"Style used in output." default:"" env:"GOBS_STYLE" short:"s" enum:",red,magenta,purple,blue,cyan,green,yellow,orange,white,grey,navy,black" completion-short-enabled:"false"`
NoBorder bool `flag:"no-border" help:"Disable table border styling in output." default:"false" env:"GOBS_STYLE_NO_BORDER" short:"b" completion-short-enabled:"false"`
}
// CLI is the main command line interface structure.
@ -55,27 +55,27 @@ type CLI struct {
Man mangokong.ManFlag `help:"Print man page."`
Version VersionFlag `help:"Print gobs-cli version information and quit" name:"version" short:"v"`
Completion kongcompletion.Completion `help:"Generate shell completion scripts." cmd:"" aliases:"c"`
Completion kongcompletion.Completion `help:"Generate shell completion scripts." cmd:""`
ObsVersion ObsVersionCmd `help:"Print OBS client and websocket version." cmd:"" aliases:"v"`
Scene SceneCmd `help:"Manage scenes." cmd:"" aliases:"sc" group:"Scene"`
Sceneitem SceneItemCmd `help:"Manage scene items." cmd:"" aliases:"si" group:"Scene Item"`
Group GroupCmd `help:"Manage groups." cmd:"" aliases:"g" group:"Group"`
Input InputCmd `help:"Manage inputs." cmd:"" aliases:"i" group:"Input"`
Text TextCmd `help:"Manage text inputs." cmd:"" aliases:"t" group:"Text Input"`
Record RecordCmd `help:"Manage recording." cmd:"" aliases:"rec" group:"Recording"`
Stream StreamCmd `help:"Manage streaming." cmd:"" aliases:"st" group:"Streaming"`
Scenecollection SceneCollectionCmd `help:"Manage scene collections." cmd:"" aliases:"scn" group:"Scene Collection"`
Profile ProfileCmd `help:"Manage profiles." cmd:"" aliases:"p" group:"Profile"`
Replaybuffer ReplayBufferCmd `help:"Manage replay buffer." cmd:"" aliases:"rb" group:"Replay Buffer"`
Studiomode StudioModeCmd `help:"Manage studio mode." cmd:"" aliases:"sm" group:"Studio Mode"`
Virtualcam VirtualCamCmd `help:"Manage virtual camera." cmd:"" aliases:"vc" group:"Virtual Camera"`
Hotkey HotkeyCmd `help:"Manage hotkeys." cmd:"" aliases:"hk" group:"Hotkey"`
Filter FilterCmd `help:"Manage filters." cmd:"" aliases:"f" group:"Filter"`
Projector ProjectorCmd `help:"Manage projectors." cmd:"" aliases:"prj" group:"Projector"`
Screenshot ScreenshotCmd `help:"Take screenshots." cmd:"" aliases:"ss" group:"Screenshot"`
Settings SettingsCmd `help:"Manage video and profile settings." cmd:"" aliases:"set" group:"Settings"`
Media MediaCmd `help:"Manage media inputs." cmd:"" aliases:"mi" group:"Media Input"`
ObsVersion ObsVersionCmd `cmd:"" help:"Print OBS client and websocket version." aliases:"v" completion-command-alias-enabled:"false"`
Scene SceneCmd `cmd:"" help:"Manage scenes." aliases:"sc" completion-command-alias-enabled:"false" group:"Scene"`
Sceneitem SceneItemCmd `cmd:"" help:"Manage scene items." aliases:"si" completion-command-alias-enabled:"false" group:"Scene Item"`
Group GroupCmd `cmd:"" help:"Manage groups." aliases:"g" completion-command-alias-enabled:"false" group:"Group"`
Input InputCmd `cmd:"" help:"Manage inputs." aliases:"i" completion-command-alias-enabled:"false" group:"Input"`
Text TextCmd `cmd:"" help:"Manage text inputs." aliases:"t" completion-command-alias-enabled:"false" group:"Text Input"`
Record RecordCmd `cmd:"" help:"Manage recording." aliases:"rec" completion-command-alias-enabled:"false" group:"Recording"`
Stream StreamCmd `cmd:"" help:"Manage streaming." aliases:"st" completion-command-alias-enabled:"false" group:"Streaming"`
Scenecollection SceneCollectionCmd `cmd:"" help:"Manage scene collections." aliases:"scn" completion-command-alias-enabled:"false" group:"Scene Collection"`
Profile ProfileCmd `cmd:"" help:"Manage profiles." aliases:"p" completion-command-alias-enabled:"false" group:"Profile"`
Replaybuffer ReplayBufferCmd `cmd:"" help:"Manage replay buffer." aliases:"rb" completion-command-alias-enabled:"false" group:"Replay Buffer"`
Studiomode StudioModeCmd `cmd:"" help:"Manage studio mode." aliases:"sm" completion-command-alias-enabled:"false" group:"Studio Mode"`
Virtualcam VirtualCamCmd `cmd:"" help:"Manage virtual camera." aliases:"vc" completion-command-alias-enabled:"false" group:"Virtual Camera"`
Hotkey HotkeyCmd `cmd:"" help:"Manage hotkeys." aliases:"hk" completion-command-alias-enabled:"false" group:"Hotkey"`
Filter FilterCmd `cmd:"" help:"Manage filters." aliases:"f" completion-command-alias-enabled:"false" group:"Filter"`
Projector ProjectorCmd `cmd:"" help:"Manage projectors." aliases:"prj" completion-command-alias-enabled:"false" group:"Projector"`
Screenshot ScreenshotCmd `cmd:"" help:"Take screenshots." aliases:"ss" completion-command-alias-enabled:"false" group:"Screenshot"`
Settings SettingsCmd `cmd:"" help:"Manage video and profile settings." aliases:"set" completion-command-alias-enabled:"false" group:"Settings"`
Media MediaCmd `cmd:"" help:"Manage media inputs." aliases:"mi" completion-command-alias-enabled:"false" group:"Media Input"`
}
type context struct {

View File

@ -8,11 +8,11 @@ import (
// MediaCmd represents a collection of commands to control media inputs.
type MediaCmd struct {
Cursor MediaCursorCmd `cmd:"" help:"Get/set the cursor position of a media input." aliases:"c"`
Play MediaPlayCmd `cmd:"" help:"Plays a media input." aliases:"p"`
Pause MediaPauseCmd `cmd:"" help:"Pauses a media input." aliases:"pa"`
Stop MediaStopCmd `cmd:"" help:"Stops a media input." aliases:"s"`
Restart MediaRestartCmd `cmd:"" help:"Restarts a media input." aliases:"r"`
Cursor MediaCursorCmd `cmd:"" help:"Get/set the cursor position of a media input." aliases:"c" completion-command-alias-enabled:"false"`
Play MediaPlayCmd `cmd:"" help:"Plays a media input." aliases:"p" completion-command-alias-enabled:"false"`
Pause MediaPauseCmd `cmd:"" help:"Pauses a media input." aliases:"pa" completion-command-alias-enabled:"false"`
Stop MediaStopCmd `cmd:"" help:"Stops a media input." aliases:"s" completion-command-alias-enabled:"false"`
Restart MediaRestartCmd `cmd:"" help:"Restarts a media input." aliases:"r" completion-command-alias-enabled:"false"`
}
// MediaCursorCmd represents the command to get or set the cursor position of a media input.

View File

@ -11,11 +11,11 @@ import (
// ProfileCmd provides commands to manage profiles in OBS Studio.
type ProfileCmd struct {
List ProfileListCmd `help:"List profiles." cmd:"" aliases:"ls"`
Current ProfileCurrentCmd `help:"Get current profile." cmd:"" aliases:"c"`
Switch ProfileSwitchCmd `help:"Switch profile." cmd:"" aliases:"sw"`
Create ProfileCreateCmd `help:"Create profile." cmd:"" aliases:"new"`
Remove ProfileRemoveCmd `help:"Remove profile." cmd:"" aliases:"rm"`
List ProfileListCmd `cmd:"" help:"List profiles." aliases:"ls" completion-command-alias-enabled:"false"`
Current ProfileCurrentCmd `cmd:"" help:"Get current profile." aliases:"c" completion-command-alias-enabled:"false"`
Switch ProfileSwitchCmd `cmd:"" help:"Switch profile." aliases:"sw" completion-command-alias-enabled:"false"`
Create ProfileCreateCmd `cmd:"" help:"Create profile." aliases:"new" completion-command-alias-enabled:"false"`
Remove ProfileRemoveCmd `cmd:"" help:"Remove profile." aliases:"rm" completion-command-alias-enabled:"false"`
}
// ProfileListCmd provides a command to list all profiles.

View File

@ -10,8 +10,8 @@ import (
// ProjectorCmd provides a command to manage projectors in OBS.
type ProjectorCmd struct {
ListMonitors ProjectorListMonitorsCmd `cmd:"" help:"List available monitors." aliases:"ls-m"`
Open ProjectorOpenCmd `cmd:"" help:"Open a fullscreen projector for a source on a specific monitor." aliases:"o"`
ListMonitors ProjectorListMonitorsCmd `cmd:"" help:"List available monitors." aliases:"ls-m" completion-command-alias-enabled:"false"`
Open ProjectorOpenCmd `cmd:"" help:"Open a fullscreen projector for a source on a specific monitor." aliases:"o" completion-command-alias-enabled:"false"`
}
// ProjectorListMonitorsCmd provides a command to list all monitors available for projectors.

View File

@ -9,15 +9,15 @@ import (
// RecordCmd handles the recording commands.
type RecordCmd struct {
Start RecordStartCmd `cmd:"" help:"Start recording." aliases:"s"`
Stop RecordStopCmd `cmd:"" help:"Stop recording." aliases:"st"`
Toggle RecordToggleCmd `cmd:"" help:"Toggle recording." aliases:"tg"`
Status RecordStatusCmd `cmd:"" help:"Show recording status." aliases:"ss"`
Pause RecordPauseCmd `cmd:"" help:"Pause recording." aliases:"p"`
Resume RecordResumeCmd `cmd:"" help:"Resume recording." aliases:"r"`
Directory RecordDirectoryCmd `cmd:"" help:"Get/Set recording directory." aliases:"d"`
Split RecordSplitCmd `cmd:"" help:"Split recording." aliases:"sp"`
Chapter RecordChapterCmd `cmd:"" help:"Create a chapter in the recording." aliases:"c"`
Start RecordStartCmd `cmd:"" help:"Start recording." aliases:"s" completion-command-alias-enabled:"false"`
Stop RecordStopCmd `cmd:"" help:"Stop recording." aliases:"st" completion-command-alias-enabled:"false"`
Toggle RecordToggleCmd `cmd:"" help:"Toggle recording." aliases:"tg" completion-command-alias-enabled:"false"`
Status RecordStatusCmd `cmd:"" help:"Show recording status." aliases:"ss" completion-command-alias-enabled:"false"`
Pause RecordPauseCmd `cmd:"" help:"Pause recording." aliases:"p" completion-command-alias-enabled:"false"`
Resume RecordResumeCmd `cmd:"" help:"Resume recording." aliases:"r" completion-command-alias-enabled:"false"`
Directory RecordDirectoryCmd `cmd:"" help:"Get/Set recording directory." aliases:"d" completion-command-alias-enabled:"false"`
Split RecordSplitCmd `cmd:"" help:"Split recording." aliases:"sp" completion-command-alias-enabled:"false"`
Chapter RecordChapterCmd `cmd:"" help:"Create a chapter in the recording." aliases:"c" completion-command-alias-enabled:"false"`
}
// RecordStartCmd starts the recording.

View File

@ -6,11 +6,11 @@ import (
// ReplayBufferCmd handles the recording commands.
type ReplayBufferCmd struct {
Start ReplayBufferStartCmd `help:"Start replay buffer." cmd:"" aliases:"s"`
Stop ReplayBufferStopCmd `help:"Stop replay buffer." cmd:"" aliases:"st"`
Toggle ReplayBufferToggleCmd `help:"Toggle replay buffer." cmd:"" aliases:"tg"`
Status ReplayBufferStatusCmd `help:"Get replay buffer status." cmd:"" aliases:"ss"`
Save ReplayBufferSaveCmd `help:"Save replay buffer." cmd:"" aliases:"sv"`
Start ReplayBufferStartCmd `cmd:"" help:"Start replay buffer." aliases:"s" completion-command-alias-enabled:"false"`
Stop ReplayBufferStopCmd `cmd:"" help:"Stop replay buffer." aliases:"st" completion-command-alias-enabled:"false"`
Toggle ReplayBufferToggleCmd `cmd:"" help:"Toggle replay buffer." aliases:"tg" completion-command-alias-enabled:"false"`
Status ReplayBufferStatusCmd `cmd:"" help:"Get replay buffer status." aliases:"ss" completion-command-alias-enabled:"false"`
Save ReplayBufferSaveCmd `cmd:"" help:"Save replay buffer." aliases:"sv" completion-command-alias-enabled:"false"`
}
// ReplayBufferStartCmd starts the replay buffer.

View File

@ -11,9 +11,9 @@ import (
// SceneCmd provides commands to manage scenes in OBS Studio.
type SceneCmd struct {
List SceneListCmd `cmd:"" help:"List all scenes." aliases:"ls"`
Current SceneCurrentCmd `cmd:"" help:"Get the current scene." aliases:"c"`
Switch SceneSwitchCmd `cmd:"" help:"Switch to a scene." aliases:"sw"`
List SceneListCmd `cmd:"" help:"List all scenes." aliases:"ls" completion-command-alias-enabled:"false"`
Current SceneCurrentCmd `cmd:"" help:"Get the current scene." aliases:"c" completion-command-alias-enabled:"false"`
Switch SceneSwitchCmd `cmd:"" help:"Switch to a scene." aliases:"sw" completion-command-alias-enabled:"false"`
}
// SceneListCmd provides a command to list all scenes.

View File

@ -10,10 +10,10 @@ import (
// SceneCollectionCmd provides commands to manage scene collections in OBS Studio.
type SceneCollectionCmd struct {
List SceneCollectionListCmd `help:"List scene collections." cmd:"" aliases:"ls"`
Current SceneCollectionCurrentCmd `help:"Get current scene collection." cmd:"" aliases:"c"`
Switch SceneCollectionSwitchCmd `help:"Switch scene collection." cmd:"" aliases:"sw"`
Create SceneCollectionCreateCmd `help:"Create scene collection." cmd:"" aliases:"new"`
List SceneCollectionListCmd `cmd:"" help:"List scene collections." aliases:"ls" completion-command-alias-enabled:"false"`
Current SceneCollectionCurrentCmd `cmd:"" help:"Get current scene collection." aliases:"c" completion-command-alias-enabled:"false"`
Switch SceneCollectionSwitchCmd `cmd:"" help:"Switch scene collection." aliases:"sw" completion-command-alias-enabled:"false"`
Create SceneCollectionCreateCmd `cmd:"" help:"Create scene collection." aliases:"new" completion-command-alias-enabled:"false"`
}
// SceneCollectionListCmd provides a command to list all scene collections.

View File

@ -13,12 +13,12 @@ import (
// SceneItemCmd provides commands to manage scene items in OBS Studio.
type SceneItemCmd struct {
List SceneItemListCmd `cmd:"" help:"List all scene items." aliases:"ls"`
Show SceneItemShowCmd `cmd:"" help:"Show scene item." aliases:"sh"`
Hide SceneItemHideCmd `cmd:"" help:"Hide scene item." aliases:"h"`
Toggle SceneItemToggleCmd `cmd:"" help:"Toggle scene item." aliases:"tg"`
Visible SceneItemVisibleCmd `cmd:"" help:"Get scene item visibility." aliases:"v"`
Transform SceneItemTransformCmd `cmd:"" help:"Transform scene item." aliases:"t"`
List SceneItemListCmd `cmd:"" help:"List all scene items." aliases:"ls" completion-command-alias-enabled:"false"`
Show SceneItemShowCmd `cmd:"" help:"Show scene item." aliases:"sh" completion-command-alias-enabled:"false"`
Hide SceneItemHideCmd `cmd:"" help:"Hide scene item." aliases:"h" completion-command-alias-enabled:"false"`
Toggle SceneItemToggleCmd `cmd:"" help:"Toggle scene item." aliases:"tg" completion-command-alias-enabled:"false"`
Visible SceneItemVisibleCmd `cmd:"" help:"Get scene item visibility." aliases:"v" completion-command-alias-enabled:"false"`
Transform SceneItemTransformCmd `cmd:"" help:"Transform scene item." aliases:"t" completion-command-alias-enabled:"false"`
}
// SceneItemListCmd provides a command to list all scene items in a scene.

View File

@ -11,10 +11,10 @@ import (
// SettingsCmd handles settings management.
type SettingsCmd struct {
Show SettingsShowCmd `help:"Show settings." cmd:"" aliases:"s"`
Profile SettingsProfileCmd `help:"Get/Set profile parameter setting." cmd:"" aliases:"p"`
StreamService SettingsStreamServiceCmd `help:"Get/Set stream service setting." cmd:"" aliases:"ss"`
Video SettingsVideoCmd `help:"Get/Set video setting." cmd:"" aliases:"v"`
Show SettingsShowCmd `cmd:"" help:"Show settings." aliases:"s" completion-command-alias-enabled:"false"`
Profile SettingsProfileCmd `cmd:"" help:"Get/Set profile parameter setting." aliases:"p" completion-command-alias-enabled:"false"`
StreamService SettingsStreamServiceCmd `cmd:"" help:"Get/Set stream service setting." aliases:"ss" completion-command-alias-enabled:"false"`
Video SettingsVideoCmd `cmd:"" help:"Get/Set video setting." aliases:"v" completion-command-alias-enabled:"false"`
}
// SettingsShowCmd shows the video settings.

View File

@ -6,10 +6,10 @@ import (
// StreamCmd handles the streaming commands.
type StreamCmd struct {
Start StreamStartCmd `cmd:"" help:"Start streaming." aliases:"s"`
Stop StreamStopCmd `cmd:"" help:"Stop streaming." aliases:"st"`
Toggle StreamToggleCmd `cmd:"" help:"Toggle streaming." aliases:"tg"`
Status StreamStatusCmd `cmd:"" help:"Get streaming status." aliases:"ss"`
Start StreamStartCmd `cmd:"" help:"Start streaming." aliases:"s" completion-command-alias-enabled:"false"`
Stop StreamStopCmd `cmd:"" help:"Stop streaming." aliases:"st" completion-command-alias-enabled:"false"`
Toggle StreamToggleCmd `cmd:"" help:"Toggle streaming." aliases:"tg" completion-command-alias-enabled:"false"`
Status StreamStatusCmd `cmd:"" help:"Get streaming status." aliases:"ss" completion-command-alias-enabled:"false"`
}
// StreamStartCmd starts the stream.

View File

@ -8,10 +8,10 @@ import (
// StudioModeCmd provides commands to manage studio mode in OBS Studio.
type StudioModeCmd struct {
Enable StudioModeEnableCmd `cmd:"enable" help:"Enable studio mode." aliases:"on"`
Disable StudioModeDisableCmd `cmd:"disable" help:"Disable studio mode." aliases:"off"`
Toggle StudioModeToggleCmd `cmd:"toggle" help:"Toggle studio mode." aliases:"tg"`
Status StudioModeStatusCmd `cmd:"status" help:"Get studio mode status." aliases:"ss"`
Enable StudioModeEnableCmd `cmd:"enable" help:"Enable studio mode." aliases:"on" completion-command-alias-enabled:"false"`
Disable StudioModeDisableCmd `cmd:"disable" help:"Disable studio mode." aliases:"off" completion-command-alias-enabled:"false"`
Toggle StudioModeToggleCmd `cmd:"toggle" help:"Toggle studio mode." aliases:"tg" completion-command-alias-enabled:"false"`
Status StudioModeStatusCmd `cmd:"status" help:"Get studio mode status." aliases:"ss" completion-command-alias-enabled:"false"`
}
// StudioModeEnableCmd provides a command to enable studio mode.