subcommands

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FactCmd = &cobra.Command{
	Use:   "fact <fact-id>",
	Short: "Remove a fact from memory",
	Long: "\nRemove a stored fact from the knowledge graph by its UUID.\n\n" +
		"Facts are permanently deleted and cannot be recovered. " +
		"Use 'memorizer read facts' to list all facts and their IDs.",
	Example: `  # Remove a fact by ID
  memorizer forget fact abc12345-6789-0abc-def0-123456789abc

  # List facts first to find IDs
  memorizer read facts`,
	Args:    cobra.ExactArgs(1),
	PreRunE: validateForgetFact,
	RunE:    runForgetFact,
}
View Source
var FileCmd = &cobra.Command{
	Use:   "file <path>...",
	Short: "Move files from memory to forgotten directory",
	Long: "\nMove files or directories from the memory directory to the forgotten directory.\n\n" +
		"Files are moved (not deleted) to ~/.memorizer/.forgotten/ preserving their " +
		"relative path structure. This is a non-destructive operation - files can be " +
		"recovered by using 'remember file' on the forgotten location.\n\n" +
		"The daemon will automatically detect the removal and update the knowledge graph.",
	Example: `  # Forget a single file
  memorizer forget file ~/.memorizer/memory/old-notes.md

  # Forget multiple files
  memorizer forget file doc1.md doc2.md doc3.md

  # Forget a directory recursively
  memorizer forget file ~/.memorizer/memory/archived/

  # Preview what would happen
  memorizer forget file --dry-run large-project/`,
	Args:    cobra.MinimumNArgs(1),
	PreRunE: validateForgetFile,
	RunE:    runForgetFile,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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