INNER CODE UNIT · Go

CacheCommand

kitops-ml/kitops · pkg/cmd/kitcache/cmd.go:31

func CacheCommand() *cobra.Command {
	cmd := &cobra.Command{
		Use:   "cache",
		Short: `Manage temporary files cached by Kit`,
		Long: `Manage files stored in the temporary KitOps cache dir ($KITOPS_HOME/cache)

Normally, this directory is empty, but may contain leftover files from resumable
downloads or files that were not cleaned up due to the command being cancelled.

The $KITOPS_HOME location is system dependent:
	- Linux: $XDG_DATA_HOME/kitops with a fall back to $HOME/.local/share/kitops
	- MacOS: ~/Library/Caches/kitops
	- Windows: %LOCALAPPDATA%\kitops
`,
		Example: `# Get information about size of cached files
kit cache info

# Clear files in cache

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…