subcommands

package
v0.0.0-...-a7960c0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BatteryChargingicons = []string{"󱊤", "󰢜", "󰂆", "󰂇", "󰂈", "󰢝", "󰂉", "󰢞", "󰂊", "󰂋", "󰂅"}
)

Define slice of batteryIcons

Functions

This section is empty.

Types

type Battery

type Battery struct{}

func (*Battery) Execute

func (m *Battery) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute executes the check command.

func (*Battery) Name

func (*Battery) Name() string

func (*Battery) SetFlags

func (m *Battery) SetFlags(f *flag.FlagSet)

SetFlags adds the check flags to the specified set.

func (*Battery) Synopsis

func (*Battery) Synopsis() string

func (*Battery) Usage

func (*Battery) Usage() string

type BatteryStatus

type BatteryStatus struct {
	Enabled    bool    `json:"enabled"`
	Icon       string  `json:"icon"`
	Percentage int     `json:"percentage"`
	Wattage    float64 `json:"wattage"`
	Status     string  `json:"status"`
	Color      string  `json:"color"`
}

Define slice of icons BatteryStatus represents the battery information

func (*BatteryStatus) String

func (b *BatteryStatus) String() string

type Daemon

type Daemon struct{}

func (*Daemon) Execute

func (*Daemon) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

func (*Daemon) Name

func (*Daemon) Name() string

func (*Daemon) SetFlags

func (*Daemon) SetFlags(f *flag.FlagSet)

func (*Daemon) Synopsis

func (*Daemon) Synopsis() string

func (*Daemon) Usage

func (*Daemon) Usage() string

type Dock

type Dock struct {
	// contains filtered or unexported fields
}

func (*Dock) DoAction

func (d *Dock) DoAction(action string) *dbus.Error

func (*Dock) Execute

func (d *Dock) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute executes the check command.

func (*Dock) InterfaceName

func (d *Dock) InterfaceName() string

func (*Dock) Name

func (*Dock) Name() string

func (*Dock) ServiceName

func (d *Dock) ServiceName() string

func (*Dock) ServicePath

func (d *Dock) ServicePath() dbus.ObjectPath

func (*Dock) ServiceRun

func (d *Dock) ServiceRun(conn *dbus.Conn, msg any)

func (*Dock) SetFlags

func (m *Dock) SetFlags(f *flag.FlagSet)

SetFlags adds the check flags to the specified set.

func (*Dock) Synopsis

func (*Dock) Synopsis() string

func (*Dock) Update

func (d *Dock) Update() *dbus.Error

func (*Dock) Usage

func (*Dock) Usage() string

type Monitor

type Monitor struct {
	// contains filtered or unexported fields
}

Submap is a comannd manager struct

func (*Monitor) Execute

func (m *Monitor) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute executes the check command.

func (*Monitor) InterfaceName

func (m *Monitor) InterfaceName() string

func (*Monitor) Name

func (*Monitor) Name() string

func (*Monitor) ServiceName

func (m *Monitor) ServiceName() string

func (*Monitor) ServicePath

func (m *Monitor) ServicePath() dbus.ObjectPath

func (*Monitor) ServiceRun

func (m *Monitor) ServiceRun(conn *dbus.Conn, msg any)

func (*Monitor) SetFlags

func (m *Monitor) SetFlags(f *flag.FlagSet)

SetFlags adds the check flags to the specified set.

func (*Monitor) Synopsis

func (*Monitor) Synopsis() string

func (*Monitor) Update

func (m *Monitor) Update() *dbus.Error

func (*Monitor) Usage

func (*Monitor) Usage() string

type Quote

type Quote struct {
	Author      string
	Quote       string
	QuoteSignal chan string
}

Submap is a comannd manager struct

func (*Quote) Execute

func (q *Quote) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute executes the check command.

func (*Quote) GetQuote

func (q *Quote) GetQuote(msg string) (err *dbus.Error)

func (*Quote) InterfaceName

func (q *Quote) InterfaceName() string

func (*Quote) Name

func (*Quote) Name() string

func (*Quote) ServiceName

func (q *Quote) ServiceName() string

func (*Quote) ServicePath

func (q *Quote) ServicePath() dbus.ObjectPath

func (*Quote) ServiceRun

func (q *Quote) ServiceRun(conn *dbus.Conn, msg any)

func (*Quote) SetFlags

func (q *Quote) SetFlags(f *flag.FlagSet)

SetFlags adds the check flags to the specified set.

func (*Quote) Synopsis

func (*Quote) Synopsis() string

func (*Quote) Update

func (q *Quote) Update()

func (*Quote) Usage

func (*Quote) Usage() string

type Submap

type Submap struct{}

Submap is a comannd manager struct

func (*Submap) Execute

func (s *Submap) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute executes the check command.

func (*Submap) InterfaceName

func (s *Submap) InterfaceName() string

func (*Submap) Name

func (*Submap) Name() string

func (*Submap) ServiceName

func (s *Submap) ServiceName() string

func (*Submap) ServicePath

func (s *Submap) ServicePath() dbus.ObjectPath

func (*Submap) ServiceRun

func (s *Submap) ServiceRun(conn *dbus.Conn, msg any)

func (*Submap) SetFlags

func (s *Submap) SetFlags(f *flag.FlagSet)

SetFlags adds the check flags to the specified set.

func (*Submap) Synopsis

func (*Submap) Synopsis() string

func (*Submap) Usage

func (*Submap) Usage() string

type Title

type Title struct {
	CurrentName string
	// contains filtered or unexported fields
}

func (*Title) Execute

func (m *Title) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute executes the check command.

func (*Title) InterfaceName

func (t *Title) InterfaceName() string

func (*Title) Name

func (t *Title) Name() string

func (*Title) ServiceName

func (t *Title) ServiceName() string

func (*Title) ServicePath

func (t *Title) ServicePath() dbus.ObjectPath

func (*Title) ServiceRun

func (t *Title) ServiceRun(conn *dbus.Conn, msg any)

func (*Title) SetFlags

func (*Title) SetFlags(f *flag.FlagSet)

SetFlags adds the check flags to the specified set.

func (*Title) Synopsis

func (*Title) Synopsis() string

func (*Title) Update

func (t *Title) Update() *dbus.Error

func (*Title) Usage

func (*Title) Usage() string

type Weather

type Weather struct {
	WeatherData string
	// contains filtered or unexported fields
}

func (*Weather) Execute

func (w *Weather) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute executes the check command.

func (*Weather) GetWeather

func (w *Weather) GetWeather() (err *dbus.Error)

func (*Weather) InterfaceName

func (w *Weather) InterfaceName() string

func (*Weather) Name

func (*Weather) Name() string

func (*Weather) ServiceName

func (w *Weather) ServiceName() string

func (*Weather) ServicePath

func (w *Weather) ServicePath() dbus.ObjectPath

func (*Weather) ServiceRun

func (w *Weather) ServiceRun(conn *dbus.Conn, msg any)

func (*Weather) SetFlags

func (w *Weather) SetFlags(f *flag.FlagSet)

SetFlags adds the check flags to the specified set.

func (*Weather) Synopsis

func (*Weather) Synopsis() string

func (*Weather) Update

func (w *Weather) Update()

func (*Weather) Usage

func (*Weather) Usage() string

type Workspaces

type Workspaces struct {
	// contains filtered or unexported fields
}

Submap is a comannd manager struct

func (*Workspaces) Execute

func (w *Workspaces) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute executes the check command.

func (*Workspaces) InterfaceName

func (w *Workspaces) InterfaceName() string

func (*Workspaces) Name

func (*Workspaces) Name() string

func (*Workspaces) ServiceName

func (w *Workspaces) ServiceName() string

func (*Workspaces) ServicePath

func (w *Workspaces) ServicePath() dbus.ObjectPath

func (*Workspaces) ServiceRun

func (w *Workspaces) ServiceRun(conn *dbus.Conn, msg any)

func (*Workspaces) SetFlags

func (m *Workspaces) SetFlags(f *flag.FlagSet)

SetFlags adds the check flags to the specified set.

func (*Workspaces) Synopsis

func (*Workspaces) Synopsis() string

func (*Workspaces) Update

func (w *Workspaces) Update() *dbus.Error

func (*Workspaces) Usage

func (*Workspaces) Usage() string

Jump to

Keyboard shortcuts

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