cli

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 32 Imported by: 0

Documentation

Overview

Package cli implements the command-line interface for ccrouter.

Package cli implements the command-line interface.

Index

Constants

This section is empty.

Variables

View Source
var Version = "0.1.0"

Version is the application version.

Functions

func Execute

func Execute()

Execute runs the CLI.

func NewCleanCommand

func NewCleanCommand() *cobra.Command

NewCleanCommand creates the clean command.

func NewCodeCommand

func NewCodeCommand() *cobra.Command

NewCodeCommand creates the code command.

func NewConfigCommand

func NewConfigCommand() *cobra.Command

NewConfigCommand creates the config command - launches the TUI wizard.

func NewLogsCommand

func NewLogsCommand() *cobra.Command

NewLogsCommand creates the logs command.

func NewMonitorCommand

func NewMonitorCommand() *cobra.Command

NewMonitorCommand creates the monitor command

func NewProfileCommand

func NewProfileCommand() *cobra.Command

NewProfileCommand creates the profile command group.

func NewProfileListCommand

func NewProfileListCommand() *cobra.Command

NewProfileListCommand lists available profiles.

func NewProfileStatusCommand

func NewProfileStatusCommand() *cobra.Command

NewProfileStatusCommand shows current profile status.

func NewProfileSwitchCommand

func NewProfileSwitchCommand() *cobra.Command

NewProfileSwitchCommand switches active profile.

func NewRestartCommand

func NewRestartCommand() *cobra.Command

NewRestartCommand creates the restart command.

func NewRootCommand

func NewRootCommand() *cobra.Command

NewRootCommand creates the root command.

func NewStartCommand

func NewStartCommand() *cobra.Command

NewStartCommand creates the start command.

func NewStatusCommand

func NewStatusCommand() *cobra.Command

NewStatusCommand creates the status command.

func NewStopCommand

func NewStopCommand() *cobra.Command

NewStopCommand creates the stop command.

Types

type RegistryAdapter

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

RegistryAdapter adapts transformer.Registry to proxy.TransformerRegistry interface.

func NewRegistryAdapter

func NewRegistryAdapter(registry *transformer.Registry) *RegistryAdapter

NewRegistryAdapter creates a new registry adapter.

func (*RegistryAdapter) Get

Get implements proxy.TransformerRegistry.

type RouterAdapter

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

RouterAdapter adapts router.Engine to proxy.Router interface.

func NewRouterAdapter

func NewRouterAdapter(engine *router.Engine) *RouterAdapter

NewRouterAdapter creates a new router adapter.

func (*RouterAdapter) DetectRoute

func (a *RouterAdapter) DetectRoute(req router.RouteRequest) string

DetectRoute implements proxy.Router.

func (*RouterAdapter) GetTargets

func (a *RouterAdapter) GetTargets(routeName string) []config.RouteTarget

GetTargets implements proxy.Router.

func (*RouterAdapter) SetActiveProfile

func (a *RouterAdapter) SetActiveProfile(profile string)

SetActiveProfile implements proxy.Router.

Jump to

Keyboard shortcuts

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