cli

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute executes the root command

func GetServerBinaryPath

func GetServerBinaryPath() (string, error)

GetServerBinaryPath returns the path to the server binary

func IsProcessRunning

func IsProcessRunning(pid int) bool

IsProcessRunning checks if a process with the given PID is running

func KillProcess

func KillProcess(pid int, graceful bool) error

KillProcess kills a process with the given PID

func ReadPID

func ReadPID() (int, error)

ReadPID reads the process ID from the PID file

func RemovePID

func RemovePID() error

RemovePID removes the PID file

func SavePID

func SavePID(pid int) error

SavePID saves the process ID to the PID file

func StartServer

func StartServer(serverPath string, port int, host string) (int, error)

StartServer starts the server in the background

func StartServerWithServeCommand

func StartServerWithServeCommand(cliPath string, port int, host string) (int, error)

StartServerWithServeCommand starts the CLI binary with the __serve command in background

Types

This section is empty.

Jump to

Keyboard shortcuts

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