Documentation
¶
Index ¶
- func Execute()
- func GetRootCommand() *cobra.Command
- type Agent
- type AgentConfig
- type Client
- func (c *Client) Close() error
- func (c *Client) GetConfig() (*pb.Config, error)
- func (c *Client) GetRuleStatus(ruleName string) (*pb.Rule, error)
- func (c *Client) ListWatchedPaths() ([]string, error)
- func (c *Client) Ping() error
- func (c *Client) StreamLogs(ruleName, filter string, timeout int64) (pb.AgentService_StreamLogsClient, error)
- func (c *Client) TriggerRule(ruleName string) (*pb.TriggerRuleResponse, error)
- type Config
- type DevLoopConfig
- type Rule
- type Settings
- type WatchPattern
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 ¶
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
type AgentConfig ¶ added in v0.0.45
type Client ¶ added in v0.0.45
type Client struct {
// contains filtered or unexported fields
}
Client wraps the gRPC client with convenience methods
func (*Client) GetRuleStatus ¶ added in v0.0.45
GetRuleStatus retrieves the status of a specific rule
func (*Client) ListWatchedPaths ¶ added in v0.0.45
ListWatchedPaths retrieves all watched file patterns
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 DevLoopConfig ¶ added in v0.0.63
type DevLoopConfig struct {
Settings *Settings `yaml:"settings,omitempty"`
Rules []Rule `yaml:"rules"`
}
DevLoopConfig represents the structure of a .devloop.yaml file
type Rule ¶ added in v0.0.63
type Rule struct {
Name string `yaml:"name"`
Prefix string `yaml:"prefix,omitempty"`
Color string `yaml:"color,omitempty"`
Workdir string `yaml:"workdir,omitempty"`
RunOnInit *bool `yaml:"run_on_init,omitempty"`
Verbose bool `yaml:"verbose,omitempty"`
DebounceDelay string `yaml:"debounce_delay,omitempty"`
Env map[string]string `yaml:"env,omitempty"`
Watch []WatchPattern `yaml:"watch"`
Commands []string `yaml:"commands"`
}
type Settings ¶ added in v0.0.63
type Settings struct {
PrefixLogs bool `yaml:"prefix_logs,omitempty"`
PrefixMaxLength int `yaml:"prefix_max_length,omitempty"`
ColorLogs bool `yaml:"color_logs,omitempty"`
ColorScheme string `yaml:"color_scheme,omitempty"`
CustomColors map[string]string `yaml:"custom_colors,omitempty"`
Verbose bool `yaml:"verbose,omitempty"`
DefaultDebounceDelay string `yaml:"default_debounce_delay,omitempty"`
}
type WatchPattern ¶ added in v0.0.63
Click to show internal directories.
Click to hide internal directories.