Documentation
¶
Index ¶
- Constants
- Variables
- func Execute(args []string) (err error)
- func ExitCode(err error) int
- func ResolveIcon(nameOrID string) string
- func ResolveSound(name string) *api.Sound
- func VersionString() string
- type AppActivateCmd
- type AppClockAlarmCmd
- type AppClockCmd
- type AppClockShowCmd
- type AppCmd
- type AppListCmd
- type AppNextCmd
- type AppPrevCmd
- type AppRadioCmd
- type AppRadioNextCmd
- type AppRadioPlayCmd
- type AppRadioPrevCmd
- type AppRadioStopCmd
- type AppStopwatchCmd
- type AppStopwatchPauseCmd
- type AppStopwatchResetCmd
- type AppStopwatchStartCmd
- type AppTimerCmd
- type AppTimerPauseCmd
- type AppTimerResetCmd
- type AppTimerSetCmd
- type AppTimerStartCmd
- type AudioCmd
- type AudioGetCmd
- type AudioVolumeCmd
- type AuthCmd
- type AuthRemoveCmd
- type AuthSetKeyCmd
- type AuthStatusCmd
- type BluetoothCmd
- type BluetoothGetCmd
- type BluetoothNameCmd
- type BluetoothOffCmd
- type BluetoothOnCmd
- type CLI
- type DeviceCmd
- type DiscoverCmd
- type DismissCmd
- type DisplayBrightnessCmd
- type DisplayCmd
- type DisplayGetCmd
- type DisplayModeCmd
- type ExitError
- type IconsCmd
- type IconsPopularCmd
- type IconsSearchCmd
- type NotifyCmd
- type RootFlags
- type SetupCmd
- type SoundsCmd
- type StreamCmd
- type StreamGifCmd
- type StreamImageCmd
- type StreamPipeCmd
- type StreamStartCmd
- type StreamStatusCmd
- type StreamStopCmd
- type VersionCmd
- type WiFiCmd
Constants ¶
const ( CodeSuccess = 0 CodeError = 1 CodeUsage = 2 CodeAuth = 3 CodeAPI = 4 CodeRateLimit = 5 CodeTimeout = 6 )
Exit code constants.
Variables ¶
var IconAliases = map[string]string{
"checkmark": "i2867",
"cross": "a2868",
"heart": "a230",
"star": "i635",
"fire": "a2735",
"warning": "i555",
"info": "i65",
"clock": "a82",
"calendar": "i66",
"mail": "i43",
"email": "i20907",
"download": "i120",
"upload": "i121",
"rocket": "a26304",
"github": "i32320",
"slack": "i36682",
"thumbsup": "i14180",
"thumbsdown": "i14182",
"sun": "i2282",
"rain": "i2284",
"snow": "i2289",
"cloud": "i2283",
"music": "i612",
"beer": "i3253",
"coffee": "i16041",
"pizza": "i8779",
"dollar": "i73",
"bitcoin": "i12949",
"eye": "i14092",
"lock": "i242",
"unlock": "i1370",
"bell": "a1370",
"phone": "i124",
"home": "i96",
"error": "i555",
"success": "i2867",
"fail": "a2868",
}
IconAliases maps friendly names to LaMetric icon IDs. Use "lametric icons search <query>" to find more icons.
var SoundAliases = map[string]api.Sound{
"notification": {Category: "notifications", ID: "notification"},
"notification2": {Category: "notifications", ID: "notification2"},
"notification3": {Category: "notifications", ID: "notification3"},
"notification4": {Category: "notifications", ID: "notification4"},
"positive1": {Category: "notifications", ID: "positive1"},
"positive2": {Category: "notifications", ID: "positive2"},
"positive3": {Category: "notifications", ID: "positive3"},
"positive4": {Category: "notifications", ID: "positive4"},
"positive5": {Category: "notifications", ID: "positive5"},
"positive6": {Category: "notifications", ID: "positive6"},
"negative1": {Category: "notifications", ID: "negative1"},
"negative2": {Category: "notifications", ID: "negative2"},
"negative3": {Category: "notifications", ID: "negative3"},
"negative4": {Category: "notifications", ID: "negative4"},
"negative5": {Category: "notifications", ID: "negative5"},
"win": {Category: "notifications", ID: "win"},
"win2": {Category: "notifications", ID: "win2"},
"cash": {Category: "notifications", ID: "cash"},
"cat": {Category: "notifications", ID: "cat"},
"dog": {Category: "notifications", ID: "dog"},
"bicycle": {Category: "notifications", ID: "bicycle"},
"energy": {Category: "notifications", ID: "energy"},
"knock": {Category: "notifications", ID: "knock-knock"},
"letter": {Category: "notifications", ID: "letter_email"},
"lose1": {Category: "notifications", ID: "lose1"},
"lose2": {Category: "notifications", ID: "lose2"},
"statistic": {Category: "notifications", ID: "statistic"},
"wind": {Category: "notifications", ID: "wind"},
"wind2": {Category: "notifications", ID: "wind_short"},
"alarm1": {Category: "alarms", ID: "alarm1"},
"alarm2": {Category: "alarms", ID: "alarm2"},
"alarm3": {Category: "alarms", ID: "alarm3"},
"alarm4": {Category: "alarms", ID: "alarm4"},
"alarm5": {Category: "alarms", ID: "alarm5"},
"alarm6": {Category: "alarms", ID: "alarm6"},
"alarm7": {Category: "alarms", ID: "alarm7"},
"alarm8": {Category: "alarms", ID: "alarm8"},
"alarm9": {Category: "alarms", ID: "alarm9"},
"alarm10": {Category: "alarms", ID: "alarm10"},
"alarm11": {Category: "alarms", ID: "alarm11"},
"alarm12": {Category: "alarms", ID: "alarm12"},
"alarm13": {Category: "alarms", ID: "alarm13"},
}
SoundAliases maps friendly names to Sound definitions.
Functions ¶
func ResolveIcon ¶
ResolveIcon returns the icon ID for a name or alias. If the input already looks like an icon ID (starts with "i" or "a"), it is returned as-is.
func ResolveSound ¶
ResolveSound returns the Sound for a name or alias. If the name is not found, it's treated as a notification sound ID.
Types ¶
type AppActivateCmd ¶
type AppActivateCmd struct {
Package string `arg:"" help:"App package name (e.g. com.lametric.clock)"`
WidgetID string `arg:"" help:"Widget ID to activate"`
}
AppActivateCmd activates a specific app widget.
func (*AppActivateCmd) Run ¶
func (c *AppActivateCmd) Run(flags *RootFlags) error
type AppClockAlarmCmd ¶
type AppClockAlarmCmd struct {
Enabled bool `arg:"" help:"Enable (true) or disable (false) alarm"`
Widget string `help:"Widget ID (auto-detected if omitted)" short:"w"`
}
AppClockAlarmCmd toggles the clock alarm.
func (*AppClockAlarmCmd) Run ¶
func (c *AppClockAlarmCmd) Run(flags *RootFlags) error
type AppClockCmd ¶
type AppClockCmd struct {
Alarm AppClockAlarmCmd `cmd:"" help:"Toggle clock alarm"`
Show AppClockShowCmd `cmd:"" help:"Show clock face"`
}
AppClockCmd manages the clock app.
type AppClockShowCmd ¶
type AppClockShowCmd struct {
Widget string `help:"Widget ID (auto-detected if omitted)" short:"w"`
}
AppClockShowCmd activates the clock face.
func (*AppClockShowCmd) Run ¶
func (c *AppClockShowCmd) Run(flags *RootFlags) error
type AppCmd ¶
type AppCmd struct {
List AppListCmd `cmd:"" default:"1" help:"List installed apps"`
Next AppNextCmd `cmd:"" help:"Switch to next app"`
Prev AppPrevCmd `cmd:"" help:"Switch to previous app"`
Activate AppActivateCmd `cmd:"" help:"Activate specific app widget"`
Clock AppClockCmd `cmd:"" help:"Clock app controls"`
Radio AppRadioCmd `cmd:"" help:"Radio app controls"`
Timer AppTimerCmd `cmd:"" help:"Timer app controls"`
Stopwatch AppStopwatchCmd `cmd:"" help:"Stopwatch controls"`
}
AppCmd manages installed apps and built-in app controls.
type AppListCmd ¶
type AppListCmd struct{}
AppListCmd lists installed apps.
func (*AppListCmd) Run ¶
func (c *AppListCmd) Run(flags *RootFlags) error
type AppNextCmd ¶
type AppNextCmd struct{}
AppNextCmd switches to the next app.
func (*AppNextCmd) Run ¶
func (c *AppNextCmd) Run(flags *RootFlags) error
type AppPrevCmd ¶
type AppPrevCmd struct{}
AppPrevCmd switches to the previous app.
func (*AppPrevCmd) Run ¶
func (c *AppPrevCmd) Run(flags *RootFlags) error
type AppRadioCmd ¶
type AppRadioCmd struct {
Play AppRadioPlayCmd `cmd:"" help:"Start playing radio"`
Stop AppRadioStopCmd `cmd:"" help:"Stop radio"`
Next AppRadioNextCmd `cmd:"" help:"Next station"`
Prev AppRadioPrevCmd `cmd:"" help:"Previous station"`
}
AppRadioCmd manages the radio app.
type AppRadioNextCmd ¶
type AppRadioNextCmd struct {
Widget string `help:"Widget ID (auto-detected if omitted)" short:"w"`
}
AppRadioNextCmd switches to the next radio station.
func (*AppRadioNextCmd) Run ¶
func (c *AppRadioNextCmd) Run(flags *RootFlags) error
type AppRadioPlayCmd ¶
type AppRadioPlayCmd struct {
Widget string `help:"Widget ID (auto-detected if omitted)" short:"w"`
}
AppRadioPlayCmd starts playing the radio.
func (*AppRadioPlayCmd) Run ¶
func (c *AppRadioPlayCmd) Run(flags *RootFlags) error
type AppRadioPrevCmd ¶
type AppRadioPrevCmd struct {
Widget string `help:"Widget ID (auto-detected if omitted)" short:"w"`
}
AppRadioPrevCmd switches to the previous radio station.
func (*AppRadioPrevCmd) Run ¶
func (c *AppRadioPrevCmd) Run(flags *RootFlags) error
type AppRadioStopCmd ¶
type AppRadioStopCmd struct {
Widget string `help:"Widget ID (auto-detected if omitted)" short:"w"`
}
AppRadioStopCmd stops the radio.
func (*AppRadioStopCmd) Run ¶
func (c *AppRadioStopCmd) Run(flags *RootFlags) error
type AppStopwatchCmd ¶
type AppStopwatchCmd struct {
Start AppStopwatchStartCmd `cmd:"" help:"Start stopwatch"`
Pause AppStopwatchPauseCmd `cmd:"" help:"Pause stopwatch"`
Reset AppStopwatchResetCmd `cmd:"" help:"Reset stopwatch"`
}
AppStopwatchCmd manages the stopwatch app.
type AppStopwatchPauseCmd ¶
type AppStopwatchPauseCmd struct {
Widget string `help:"Widget ID (auto-detected if omitted)" short:"w"`
}
AppStopwatchPauseCmd pauses the stopwatch.
func (*AppStopwatchPauseCmd) Run ¶
func (c *AppStopwatchPauseCmd) Run(flags *RootFlags) error
type AppStopwatchResetCmd ¶
type AppStopwatchResetCmd struct {
Widget string `help:"Widget ID (auto-detected if omitted)" short:"w"`
}
AppStopwatchResetCmd resets the stopwatch.
func (*AppStopwatchResetCmd) Run ¶
func (c *AppStopwatchResetCmd) Run(flags *RootFlags) error
type AppStopwatchStartCmd ¶
type AppStopwatchStartCmd struct {
Widget string `help:"Widget ID (auto-detected if omitted)" short:"w"`
}
AppStopwatchStartCmd starts the stopwatch.
func (*AppStopwatchStartCmd) Run ¶
func (c *AppStopwatchStartCmd) Run(flags *RootFlags) error
type AppTimerCmd ¶
type AppTimerCmd struct {
Set AppTimerSetCmd `cmd:"" help:"Set timer duration (e.g. 5m, 1h30m, 90s)"`
Start AppTimerStartCmd `cmd:"" help:"Start timer"`
Pause AppTimerPauseCmd `cmd:"" help:"Pause timer"`
Reset AppTimerResetCmd `cmd:"" help:"Reset timer"`
}
AppTimerCmd manages the countdown timer app.
type AppTimerPauseCmd ¶
type AppTimerPauseCmd struct {
Widget string `help:"Widget ID (auto-detected if omitted)" short:"w"`
}
AppTimerPauseCmd pauses the timer.
func (*AppTimerPauseCmd) Run ¶
func (c *AppTimerPauseCmd) Run(flags *RootFlags) error
type AppTimerResetCmd ¶
type AppTimerResetCmd struct {
Widget string `help:"Widget ID (auto-detected if omitted)" short:"w"`
}
AppTimerResetCmd resets the timer.
func (*AppTimerResetCmd) Run ¶
func (c *AppTimerResetCmd) Run(flags *RootFlags) error
type AppTimerSetCmd ¶
type AppTimerSetCmd struct {
Duration string `arg:"" help:"Duration (e.g. 5m, 1h30m, 90s)"`
Widget string `help:"Widget ID (auto-detected if omitted)" short:"w"`
}
AppTimerSetCmd sets the timer duration and starts it.
func (*AppTimerSetCmd) Run ¶
func (c *AppTimerSetCmd) Run(flags *RootFlags) error
type AppTimerStartCmd ¶
type AppTimerStartCmd struct {
Widget string `help:"Widget ID (auto-detected if omitted)" short:"w"`
}
AppTimerStartCmd starts the timer.
func (*AppTimerStartCmd) Run ¶
func (c *AppTimerStartCmd) Run(flags *RootFlags) error
type AudioCmd ¶
type AudioCmd struct {
Get AudioGetCmd `cmd:"" default:"1" help:"Show audio settings"`
Volume AudioVolumeCmd `cmd:"" help:"Set volume (0-100)"`
}
AudioCmd manages audio settings.
type AudioGetCmd ¶
type AudioGetCmd struct{}
AudioGetCmd shows current audio settings.
func (*AudioGetCmd) Run ¶
func (c *AudioGetCmd) Run(flags *RootFlags) error
type AudioVolumeCmd ¶
type AudioVolumeCmd struct {
Level int `arg:"" help:"Volume level 0-100"`
}
AudioVolumeCmd sets the volume level.
func (*AudioVolumeCmd) Run ¶
func (c *AudioVolumeCmd) Run(flags *RootFlags) error
type AuthCmd ¶
type AuthCmd struct {
SetKey AuthSetKeyCmd `cmd:"" name:"set-key" help:"Store API key for a device"`
Status AuthStatusCmd `cmd:"" help:"Show API key status"`
Remove AuthRemoveCmd `cmd:"" help:"Remove stored API key"`
}
AuthCmd manages API key storage.
type AuthRemoveCmd ¶
type AuthRemoveCmd struct{}
AuthRemoveCmd removes the stored API key.
func (*AuthRemoveCmd) Run ¶
func (c *AuthRemoveCmd) Run(flags *RootFlags) error
Run deletes the API key from keyring for the resolved device.
type AuthSetKeyCmd ¶
type AuthSetKeyCmd struct {
Stdin bool `help:"Read API key from stdin (for scripts)"`
}
AuthSetKeyCmd stores an API key in the system keyring.
func (*AuthSetKeyCmd) Run ¶
func (c *AuthSetKeyCmd) Run(flags *RootFlags) error
Run prompts for an API key and stores it for the resolved device.
type AuthStatusCmd ¶
type AuthStatusCmd struct{}
AuthStatusCmd shows the current API key status.
func (*AuthStatusCmd) Run ¶
func (c *AuthStatusCmd) Run(flags *RootFlags) error
Run checks env var, keyring, and reports status.
type BluetoothCmd ¶
type BluetoothCmd struct {
Get BluetoothGetCmd `cmd:"" default:"1" help:"Show bluetooth status"`
On BluetoothOnCmd `cmd:"" help:"Enable bluetooth"`
Off BluetoothOffCmd `cmd:"" help:"Disable bluetooth"`
Name BluetoothNameCmd `cmd:"" help:"Set bluetooth name"`
}
BluetoothCmd manages bluetooth settings.
type BluetoothGetCmd ¶
type BluetoothGetCmd struct{}
BluetoothGetCmd shows current bluetooth status.
func (*BluetoothGetCmd) Run ¶
func (c *BluetoothGetCmd) Run(flags *RootFlags) error
type BluetoothNameCmd ¶
type BluetoothNameCmd struct {
Name string `arg:"" help:"Bluetooth device name"`
}
BluetoothNameCmd sets the bluetooth device name.
func (*BluetoothNameCmd) Run ¶
func (c *BluetoothNameCmd) Run(flags *RootFlags) error
type BluetoothOffCmd ¶
type BluetoothOffCmd struct{}
BluetoothOffCmd disables bluetooth.
func (*BluetoothOffCmd) Run ¶
func (c *BluetoothOffCmd) Run(flags *RootFlags) error
type BluetoothOnCmd ¶
type BluetoothOnCmd struct{}
BluetoothOnCmd enables bluetooth.
func (*BluetoothOnCmd) Run ¶
func (c *BluetoothOnCmd) Run(flags *RootFlags) error
type CLI ¶
type CLI struct {
RootFlags `embed:""`
Notify NotifyCmd `cmd:"" name:"notify" help:"Send a notification"`
Dismiss DismissCmd `cmd:"" name:"dismiss" help:"Dismiss a notification"`
Version VersionCmd `cmd:"" name:"version" help:"Show version information"`
Setup SetupCmd `cmd:"" help:"Setup wizard for a new device"`
Discover DiscoverCmd `cmd:"" help:"Find LaMetric devices on the network"`
Auth AuthCmd `cmd:"" help:"Manage API keys"`
Device DeviceCmd `cmd:"" help:"Show device information"`
Display DisplayCmd `cmd:"" name:"display" help:"Display settings"`
Audio AudioCmd `cmd:"" name:"audio" help:"Audio settings"`
Bluetooth BluetoothCmd `cmd:"" name:"bluetooth" help:"Bluetooth settings"`
WiFi WiFiCmd `cmd:"" name:"wifi" help:"WiFi status"`
Sounds SoundsCmd `cmd:"" name:"sounds" help:"List available sounds"`
Icons IconsCmd `cmd:"" name:"icons" help:"List available icon aliases"`
App AppCmd `cmd:"" name:"app" help:"App control"`
Stream StreamCmd `cmd:"" name:"stream" help:"Streaming controls"`
}
CLI is the top-level Kong CLI struct.
type DiscoverCmd ¶
type DiscoverCmd struct {
Timeout time.Duration `help:"Discovery timeout" default:"10s" short:"t"`
}
DiscoverCmd finds LaMetric devices on the local network.
func (*DiscoverCmd) Run ¶
func (c *DiscoverCmd) Run(flags *RootFlags) error
Run discovers devices and displays them.
type DismissCmd ¶
type DismissCmd struct {
ID string `arg:"" optional:"" help:"Notification ID (omit to dismiss current)"`
}
DismissCmd dismisses a notification by ID (or the current one).
func (*DismissCmd) Run ¶
func (c *DismissCmd) Run(flags *RootFlags) error
Run executes the dismiss command.
type DisplayBrightnessCmd ¶
type DisplayBrightnessCmd struct {
Level int `arg:"" help:"Brightness level 0-100"`
}
DisplayBrightnessCmd sets the display brightness.
func (*DisplayBrightnessCmd) Run ¶
func (c *DisplayBrightnessCmd) Run(flags *RootFlags) error
type DisplayCmd ¶
type DisplayCmd struct {
Get DisplayGetCmd `cmd:"" default:"1" help:"Show display settings"`
Brightness DisplayBrightnessCmd `cmd:"" help:"Set brightness (0-100)"`
Mode DisplayModeCmd `cmd:"" help:"Set brightness mode (auto/manual)"`
}
DisplayCmd manages display settings.
type DisplayGetCmd ¶
type DisplayGetCmd struct{}
DisplayGetCmd shows current display settings.
func (*DisplayGetCmd) Run ¶
func (c *DisplayGetCmd) Run(flags *RootFlags) error
type DisplayModeCmd ¶
type DisplayModeCmd struct {
Mode string `arg:"" help:"Brightness mode: auto or manual" enum:"auto,manual"`
}
DisplayModeCmd sets the brightness mode.
func (*DisplayModeCmd) Run ¶
func (c *DisplayModeCmd) Run(flags *RootFlags) error
type IconsCmd ¶
type IconsCmd struct {
Popular IconsPopularCmd `cmd:"" default:"1" help:"Show popular icons"`
Search IconsSearchCmd `cmd:"" help:"Search icons by name from LaMetric cloud"`
}
IconsCmd manages icon search.
type IconsPopularCmd ¶
type IconsPopularCmd struct {
Limit int `help:"Maximum results to show" default:"30" short:"n"`
}
IconsPopularCmd shows popular icons from the cloud.
func (*IconsPopularCmd) Run ¶
func (c *IconsPopularCmd) Run(flags *RootFlags) error
Run fetches and displays popular icons.
type IconsSearchCmd ¶
type IconsSearchCmd struct {
Query string `arg:"" help:"Search query (e.g., 'rocket', 'heart')"`
Limit int `help:"Maximum results to show" default:"20" short:"n"`
}
IconsSearchCmd searches icons in the LaMetric cloud library.
func (*IconsSearchCmd) Run ¶
func (c *IconsSearchCmd) Run(flags *RootFlags) error
Run searches for icons matching the query.
type NotifyCmd ¶
type NotifyCmd struct {
Text string `arg:"" optional:"" help:"Notification text (or use stdin)"`
Icon string `help:"Icon ID or alias (e.g., rocket, i1234)" short:"i"`
Sound string `help:"Sound ID or alias (e.g., positive1)" short:"s"`
Priority string `help:"Priority: info, warning, critical" default:"info" short:"p" enum:"info,warning,critical"`
Cycles int `help:"Repeat count (0=loop)" default:"1"`
Lifetime int `help:"TTL in milliseconds" default:"120000"`
Goal string `help:"Goal frame: current/max (e.g., 50/100)"`
Chart string `help:"Chart frame: comma-separated values (e.g., 1,2,3,4,5)"`
Wait bool `help:"Block until notification dismissed"`
}
NotifyCmd sends a notification to a LaMetric device.
type RootFlags ¶
type RootFlags struct {
JSON bool `help:"Output JSON to stdout" short:"j"`
Plain bool `help:"Output plain TSV (for scripting)"`
NoColor bool `help:"Disable colors" env:"NO_COLOR"`
Device string `help:"Device name or IP" short:"d" env:"LAMETRIC_DEVICE"`
Verbose bool `help:"Enable verbose logging" short:"v"`
}
RootFlags are global flags available to all commands.
type SetupCmd ¶
type SetupCmd struct {
IP string `help:"Device IP address" short:"i"`
Name string `help:"Device alias" short:"n"`
}
SetupCmd is the interactive setup wizard for configuring a LaMetric device.
type StreamCmd ¶
type StreamCmd struct {
Start StreamStartCmd `cmd:"" help:"Start streaming session"`
Stop StreamStopCmd `cmd:"" help:"Stop streaming"`
Status StreamStatusCmd `cmd:"" help:"Show streaming status"`
Image StreamImageCmd `cmd:"" help:"Send single image"`
Gif StreamGifCmd `cmd:"" help:"Send animated GIF"`
Pipe StreamPipeCmd `cmd:"" help:"Pipe raw frames from stdin (for ffmpeg)"`
}
StreamCmd groups streaming subcommands.
type StreamGifCmd ¶
type StreamGifCmd struct {
File string `arg:"" help:"GIF file"`
Loop bool `help:"Loop the GIF continuously" short:"l"`
}
StreamGifCmd sends an animated GIF frame-by-frame.
func (*StreamGifCmd) Run ¶
func (c *StreamGifCmd) Run(flags *RootFlags) error
type StreamImageCmd ¶
type StreamImageCmd struct {
File string `arg:"" help:"Image file (PNG, JPG)"`
}
StreamImageCmd sends a single image to the device.
func (*StreamImageCmd) Run ¶
func (c *StreamImageCmd) Run(flags *RootFlags) error
type StreamPipeCmd ¶
type StreamPipeCmd struct {
Width int `help:"Frame width (default: device width)" short:"w"`
Height int `help:"Frame height (default: device height)" short:"h"`
FPS int `help:"Target frames per second" default:"30"`
}
StreamPipeCmd reads raw RGB888 frames from stdin and streams them.
func (*StreamPipeCmd) Run ¶
func (c *StreamPipeCmd) Run(flags *RootFlags) error
type StreamStartCmd ¶
type StreamStartCmd struct{}
StreamStartCmd starts a streaming session.
func (*StreamStartCmd) Run ¶
func (c *StreamStartCmd) Run(flags *RootFlags) error
type StreamStatusCmd ¶
type StreamStatusCmd struct{}
StreamStatusCmd shows current streaming status.
func (*StreamStatusCmd) Run ¶
func (c *StreamStatusCmd) Run(flags *RootFlags) error
type StreamStopCmd ¶
type StreamStopCmd struct{}
StreamStopCmd stops the active streaming session.
func (*StreamStopCmd) Run ¶
func (c *StreamStopCmd) Run(flags *RootFlags) error