app

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package app provides an application runner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

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

func NewApplication

func NewApplication(
	configPath *string, dryRun *bool, ctx context.Context,
	cancel context.CancelCauseFunc, disablePowerEvents, disableAutoHotReload *bool,
	connectToSessionBus, enableLidEvents *bool,
) (*Application, error)

func (*Application) Run

func (a *Application) Run(ctx context.Context) error

func (*Application) RunOnce

func (a *Application) RunOnce(ctx context.Context) error

type TUI added in v1.1.0

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

func NewTUI added in v1.1.0

func NewTUI(ctx context.Context, configPath, mockedHyprMonitors string,
	version string, disablePowerEvents, connectToSessionBus, enableLidEvents, runningUnderTest bool,
) (*TUI, error)

func (*TUI) Run added in v1.1.0

func (t *TUI) Run(ctx context.Context, cancel context.CancelCauseFunc) error

Jump to

Keyboard shortcuts

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