others

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands(h Actions) []*cobra.Command

Commands builds system command set (gc, version, completion).

Types

type Actions

type Actions interface {
	GC(cmd *cobra.Command, args []string) error
	Version(cmd *cobra.Command, args []string) error
}

Actions defines cross-cutting system operations.

type Handler

type Handler struct {
	cmdcore.BaseHandler
}

Handler groups miscellaneous CLI commands (gc, version).

func (Handler) GC

func (h Handler) GC(cmd *cobra.Command, _ []string) error

GC handles the 'gc' command.

func (Handler) Version

func (h Handler) Version(_ *cobra.Command, _ []string) error

Version handles the 'version' command.

Jump to

Keyboard shortcuts

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