cmddaemon

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildChromeBridgeCmd

func BuildChromeBridgeCmd(version string) *cobra.Command

BuildChromeBridgeCmd creates the "chrome-bridge" command.

func BuildDaemonCmd

func BuildDaemonCmd(cmdFactory func() *cobra.Command, version string) *cobra.Command

BuildDaemonCmd creates the "daemon" command tree.

func ChromeBridgeLogPath

func ChromeBridgeLogPath() string

ChromeBridgeLogPath returns the path to the chrome bridge log file (~/.human/chrome-bridge.log), creating the directory if needed.

func DaemonLogPath

func DaemonLogPath() string

DaemonLogPath returns the path to the daemon log file.

func DaemonPidPath

func DaemonPidPath() string

DaemonPidPath returns the path to the daemon PID file.

func ReadAlivePid

func ReadAlivePid() (int, bool)

ReadAlivePid reads the PID file and checks if the process is alive. Returns (0, false) if no PID file exists or the process is dead.

func RemovePidFile

func RemovePidFile()

RemovePidFile removes the PID file.

func WritePidFile

func WritePidFile(pid int) error

WritePidFile writes the PID to the PID file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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