cmd

package
v0.0.0-...-239571a Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 33 Imported by: 0

Documentation

Overview

Package cmd provides the CLI commands for Spotigo

Index

Constants

View Source
const (
	// MaxInputLength is the maximum allowed length for user input
	MaxInputLength = 4096
	// MaxConversationHistory limits the number of messages kept in context
	MaxConversationHistory = 50
)

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute adds all child commands to the root command and sets flags appropriately.

func GetConfig

func GetConfig() *config.Config

GetConfig returns the loaded configuration

Types

type ArtistCount

type ArtistCount struct {
	Name  string
	Count int
}

ArtistCount tracks artist frequency

type GenreCount

type GenreCount struct {
	Name  string
	Count int
}

GenreCount tracks genre frequency

type LibraryStats

type LibraryStats struct {
	TotalTracks    int
	TotalPlaylists int
	TotalArtists   int
	UniqueAlbums   int
	TopArtists     []ArtistCount
	TopGenres      []GenreCount
	PlaylistStats  []PlaylistStat
}

LibraryStats holds computed statistics about the music library

type PlaylistStat

type PlaylistStat struct {
	Name       string
	TrackCount int
	Owner      string
}

PlaylistStat holds playlist statistics

Jump to

Keyboard shortcuts

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