{"modulePath":"github.com/panyam/devloop","version":"v0.1.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cmd\n\n## Functions\n\n```go\nfunc Execute()\n```\nExecute 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.\n\n```go\nfunc GetRootCommand() *cobra.Command\n```\nGetRootCommand returns the root command for external use\n\n## Types\n\n```go\ntype Agent struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAgent(config *AgentConfig) (*Agent, error)\n```\nNewAgent creates a new server instance with the given configuration\n\n```go\nfunc (s *Agent) Start() error\n```\nStart starts the server with the configured options\n\n```go\ntype AgentConfig struct {\n\tConfigPath  string\n\tVerbose     bool\n\tHTTPPort    int\n\tGRPCPort    int\n\tGatewayAddr string\n\tAutoPorts   bool\n}\n```\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\nClient wraps the gRPC client with convenience methods\n\n```go\nfunc NewClient(cfg Config) (*Client, error)\n```\nNewClient creates a new client instance\n\n```go\nfunc (c *Client) Close() error\n```\nClose closes the client connection\n\n```go\nfunc (c *Client) GetConfig() (*pb.Config, error)\n```\nGetConfig retrieves the devloop configuration\n\n```go\nfunc (c *Client) GetRuleStatus(ruleName string) (*pb.Rule, error)\n```\nGetRuleStatus retrieves the status of a specific rule\n\n```go\nfunc (c *Client) ListWatchedPaths() ([]string, error)\n```\nListWatchedPaths retrieves all watched file patterns\n\n```go\nfunc (c *Client) Ping() error\n```\nPing tests connectivity to the devloop server\n\n```go\nfunc (c *Client) StreamLogs(ruleName, filter string, timeout int64) (pb.AgentService_StreamLogsClient, error)\n```\nStreamLogs streams real-time logs for a specific rule\n\n```go\nfunc (c *Client) TriggerRule(ruleName string) (*pb.TriggerRuleResponse, error)\n```\nTriggerRule triggers execution of a specific rule\n\n```go\ntype Config struct {\n\tAddress        string\n\tRequestTimeout time.Duration\n}\n```\nConfig holds client configuration\n\n```go\ntype DevLoopConfig struct {\n\tSettings *Settings `yaml:\"settings,omitempty\"`\n\tRules    []Rule    `yaml:\"rules\"`\n}\n```\nDevLoopConfig represents the structure of a .devloop.yaml file\n\n```go\ntype Rule struct {\n\tName          string            `yaml:\"name\"`\n\tPrefix        string            `yaml:\"prefix,omitempty\"`\n\tColor         string            `yaml:\"color,omitempty\"`\n\tWorkdir       string            `yaml:\"workdir,omitempty\"`\n\tRunOnInit     *bool             `yaml:\"run_on_init,omitempty\"`\n\tVerbose       bool              `yaml:\"verbose,omitempty\"`\n\tDebounceDelay string            `yaml:\"debounce_delay,omitempty\"`\n\tEnv           map[string]string `yaml:\"env,omitempty\"`\n\tWatch         []WatchPattern    `yaml:\"watch\"`\n\tCommands      []string          `yaml:\"commands\"`\n}\n```\n\n```go\ntype Settings struct {\n\tPrefixLogs           bool              `yaml:\"prefix_logs,omitempty\"`\n\tPrefixMaxLength      int               `yaml:\"prefix_max_length,omitempty\"`\n\tColorLogs            bool              `yaml:\"color_logs,omitempty\"`\n\tColorScheme          string            `yaml:\"color_scheme,omitempty\"`\n\tCustomColors         map[string]string `yaml:\"custom_colors,omitempty\"`\n\tVerbose              bool              `yaml:\"verbose,omitempty\"`\n\tDefaultDebounceDelay string            `yaml:\"default_debounce_delay,omitempty\"`\n}\n```\n\n```go\ntype WatchPattern struct {\n\tAction   string   `yaml:\"action\"`\n\tPatterns []string `yaml:\"patterns\"`\n}\n```\n\n","path":"github.com/panyam/devloop/cmd","name":"cmd","synopsis":"","isRedistributable":true}
