trayctl

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	CacheDir string
	Token    string // optional GitHub token for authenticated downloads
	Version  string // CLI version — tray release must match
	RepoURL  string // defaults to defaultRepoURL if empty
}

Manager handles downloading, verifying, starting, and stopping the tray binary.

func (*Manager) BinaryPath

func (m *Manager) BinaryPath() string

BinaryPath returns the full path to the tray binary.

func (*Manager) Install

func (m *Manager) Install() error

Install downloads and verifies the tray binary from GitHub Releases. Stops any running tray instance before overwriting.

func (*Manager) IsInstalled

func (m *Manager) IsInstalled() bool

IsInstalled checks if the tray binary exists on disk.

func (*Manager) IsRunning

func (m *Manager) IsRunning() bool

IsRunning checks whether the tray process is currently running.

func (*Manager) RegisterAutostart

func (m *Manager) RegisterAutostart() error

func (*Manager) Start

func (m *Manager) Start() error

Start launches the tray process in the background.

func (*Manager) Stop

func (m *Manager) Stop() error

Stop terminates the running tray process.

func (*Manager) Uninstall

func (m *Manager) Uninstall() error

Uninstall stops the tray and removes the binary.

func (*Manager) UnregisterAutostart

func (m *Manager) UnregisterAutostart() error

func (*Manager) Verify

func (m *Manager) Verify() error

Verify runs the tray binary with --version to check it executes successfully.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL