cmd

package
v0.0.11 Latest Latest
Warning

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

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

Documentation

Overview

Package cmd implements the eos CLI commands for registering, starting, stopping, and monitoring background services on a VPS.

Index

Constants

This section is empty.

Variables

View Source
var ErrServiceNonExistent = errors.New("service non existent")

Functions

func Execute

func Execute()

Execute is the entry point for the eos CLI. It builds the root command tree and exits with code 1 on error.

Types

type Asset

type Asset struct {
	Name               string `json:"name"`
	BrowserDownloadURL string `json:"browser_download_url"`
}

type DaemonController

type DaemonController interface {
	Start(ctx context.Context, detach bool, logToFileAndConsole bool, verbose bool) error
	Stop(ctx context.Context, cmd *cobra.Command, verbose bool) (bool, error)
	Remove() error
	Info(cmd *cobra.Command)
	Logs(cmd *cobra.Command, lines int, follow bool)
	LogsHint() string
}

type ErrorResult

type ErrorResult struct {
	Error   error
	Service types.ServiceInstance
}

type ErrorServices

type ErrorServices map[string]ErrorResult

type ParsedService

type ParsedService struct {
	YamlFile string
	Config   types.ServiceConfig
}

type Release

type Release struct {
	TagName string  `json:"tag_name"`
	Name    string  `json:"name"`
	Assets  []Asset `json:"assets"`
}

type ServiceFileRequestResult

type ServiceFileRequestResult struct {
	Name          string
	AlreadyExists bool
}

type ServiceStartResult

type ServiceStartResult struct {
	Restarted bool
	PGID      int
}

type StoppedServices

type StoppedServices map[string]manager.StopServiceResult

type UpdateResult

type UpdateResult struct {
	Asset          *Asset
	ChecksumsAsset *Asset
	LatestVersion  string
}

Directories

Path Synopsis
Package helpers provides CLI utility functions for output formatting, JSON rendering, and shell completions.
Package helpers provides CLI utility functions for output formatting, JSON rendering, and shell completions.

Jump to

Keyboard shortcuts

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