subcommands

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DetectCmd = &cobra.Command{
	Use:   "detect",
	Short: "Detect installed agent frameworks",
	Long: "\nDetect which agent frameworks are installed on this system.\n\n" +
		"Scans for configuration files and directories of supported frameworks like Claude Code, " +
		"Continue.dev, Cline, etc.",
	PreRunE: validateDetect,
	RunE:    runDetect,
}
View Source
var HealthCmd = &cobra.Command{
	Use:   "health",
	Short: "Check health of all integrations",
	Long: "\nCheck the health status of all configured integrations.\n\n" +
		"Performs comprehensive health checks including:\n" +
		"- Configuration file accessibility\n" +
		"- Settings validity\n" +
		"- Binary path verification\n" +
		"- Integration-specific checks\n\n" +
		"Exit codes:\n" +
		"  0 - All checked integrations are healthy\n" +
		"  1 - One or more integrations have issues (useful for CI/CD scripts)",
	Example: `  # Check health of all integrations
  memorizer integrations health

  # Check health of specific integration
  memorizer integrations health claude-code-hook`,
	PreRunE: validateHealth,
	RunE:    runHealth,
}
View Source
var ListCmd = &cobra.Command{
	Use:   "list",
	Short: "List all available integrations",
	Long: "\nList all integrations registered in the system.\n\n" +
		"Shows the name, description, and current status (configured/not configured) of each integration.",
	PreRunE: validateList,
	RunE:    runList,
}
View Source
var RemoveCmd = &cobra.Command{
	Use:   "remove <integration-name>",
	Short: "Remove an integration",
	Long: "\nRemove integration configuration from an agent framework.\n\n" +
		"Removes hooks, tools, or other configuration entries that were added by the setup command.",
	Example: `  # Remove Claude Code integration
  memorizer integrations remove claude-code-hook`,
	Args:    cobra.ExactArgs(1),
	PreRunE: validateRemove,
	RunE:    runRemove,
}
View Source
var SetupCmd = &cobra.Command{
	Use:   "setup <integration-name>",
	Short: "Setup a specific integration",
	Long: "\nSetup integration with a specific agent framework.\n\n" +
		"Configures the framework to use memorizer for memory indexing. The setup process " +
		"varies by framework but typically involves adding hooks or tools to the framework's " +
		"configuration files.",
	Example: `  # Setup Claude Code integration
  memorizer integrations setup claude-code-hook

  # Setup with custom binary path
  memorizer integrations setup claude-code-hook --binary-path /custom/path/memorizer`,
	Args:    cobra.ExactArgs(1),
	PreRunE: validateSetup,
	RunE:    runSetup,
}

Functions

func FindBinaryPath

func FindBinaryPath() (string, error)

FindBinaryPath attempts to locate the memorizer binary

Types

This section is empty.

Jump to

Keyboard shortcuts

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