cmd

package
v0.0.0-...-5ef3027 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute runs the Kong-based CLI

Types

type CLI

type CLI struct {
	// Global flags
	Overwrite    bool `help:"Overwrite existing markdown files when processing"`
	UpdateCovers bool `help:"Re-download cover images even if they already exist"`

	// Datasette flags
	Datasette   bool   `help:"Enable Datasette output" default:"true"`
	DatasetteDB string `help:"Path to SQLite database file" default:"./hermes.db"`

	// Cache flags
	CacheDBFile string `help:"Path to cache SQLite database file" default:"./cache.db"`
	CacheTTL    string `help:"Cache time-to-live duration (e.g., 720h for 30 days)" default:"720h"`

	// TMDB cover cache flags (used by importers and enhance command)
	UseTMDBCoverCache  bool   `help:"Use development cache for TMDB cover images to avoid repeated downloads" default:"false"`
	TMDBCoverCachePath string `help:"Path to TMDB cover cache directory" default:"tmdb-cover-cache"`

	Import  ImportCmd          `cmd:"" help:"Import data from various sources"`
	Enhance enhance.EnhanceCmd `cmd:"" help:"Enhance existing markdown notes with TMDB data"`
	Cache   CacheCmd           `cmd:"" help:"Manage cache database"`
	Diff    diff.DiffCmd       `cmd:"" help:"Diff imported data between sources"`
}

CLI represents the complete command structure for the hermes application

type CacheCmd

type CacheCmd struct {
	Invalidate cache.InvalidateCacheCmd `cmd:"" help:"Invalidate (clear) cache for a specific source"`
}

CacheCmd represents the cache management command

type ImportCmd

type ImportCmd struct {
	Goodreads  goodreads.GoodreadsCmd   `cmd:"" help:"Import books from Goodreads library export"`
	IMDB       imdb.IMDBCmd             `cmd:"" help:"Import movies/shows from IMDB lists"`
	Letterboxd letterboxd.LetterboxdCmd `cmd:"" help:"Import movies from Letterboxd"`
	Steam      steam.SteamCmd           `cmd:"" help:"Import games from Steam"`
}

ImportCmd represents the import command and its subcommands

Directories

Path Synopsis
Package enhance provides functionality to enrich existing markdown notes with TMDB data.
Package enhance provides functionality to enrich existing markdown notes with TMDB data.

Jump to

Keyboard shortcuts

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