cmd

package
v0.0.47 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetRootCommand

func GetRootCommand() *cobra.Command

GetRootCommand returns the root command for external use

Types

type Agent added in v0.0.45

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

func NewAgent added in v0.0.45

func NewAgent(config *AgentConfig) (*Agent, error)

NewAgent creates a new server instance with the given configuration

func (*Agent) Start added in v0.0.45

func (s *Agent) Start() error

Start starts the server with the configured options

type AgentConfig added in v0.0.45

type AgentConfig struct {
	ConfigPath  string
	Verbose     bool
	HTTPPort    int
	GRPCPort    int
	GatewayAddr string
	EnableMCP   bool
	AutoPorts   bool
}

type Client added in v0.0.45

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

Client wraps the gRPC client with convenience methods

func NewClient added in v0.0.45

func NewClient(cfg Config) (*Client, error)

NewClient creates a new client instance

func (*Client) Close added in v0.0.45

func (c *Client) Close() error

Close closes the client connection

func (*Client) GetConfig added in v0.0.45

func (c *Client) GetConfig() (*pb.Config, error)

GetConfig retrieves the devloop configuration

func (*Client) GetRuleStatus added in v0.0.45

func (c *Client) GetRuleStatus(ruleName string) (*pb.Rule, error)

GetRuleStatus retrieves the status of a specific rule

func (*Client) ListWatchedPaths added in v0.0.45

func (c *Client) ListWatchedPaths() ([]string, error)

ListWatchedPaths retrieves all watched file patterns

func (*Client) Ping added in v0.0.45

func (c *Client) Ping() error

Ping tests connectivity to the devloop server

func (*Client) StreamLogs added in v0.0.45

func (c *Client) StreamLogs(ruleName, filter string, timeout int64) (pb.AgentService_StreamLogsClient, error)

StreamLogs streams real-time logs for a specific rule

func (*Client) TriggerRule added in v0.0.45

func (c *Client) TriggerRule(ruleName string) (*pb.TriggerRuleResponse, error)

TriggerRule triggers execution of a specific rule

type Config added in v0.0.45

type Config struct {
	Address        string
	RequestTimeout time.Duration
}

Config holds client configuration

Jump to

Keyboard shortcuts

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