stats

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StatsCmd = &cobra.Command{
	Use:   "stats",
	Short: "View CLI download statistics",
	Long: `View download statistics for the playconsole-cli tool itself.

This tracks downloads from GitHub releases and shows distribution
across platforms and versions.`,
}

StatsCmd is the root command for CLI statistics

Functions

This section is empty.

Types

type DownloadSource

type DownloadSource struct {
	Name        string `json:"name"`
	Tracked     bool   `json:"tracked"`
	Description string `json:"description"`
	Command     string `json:"command,omitempty"`
}

DownloadSource represents a download source

type DownloadStats

type DownloadStats struct {
	Total       int64                   `json:"total"`
	ByRelease   []api.ReleaseDownloads  `json:"by_release,omitempty"`
	ByPlatform  []api.PlatformDownloads `json:"by_platform,omitempty"`
	LastUpdated string                  `json:"last_updated"`
}

DownloadStats represents overall download statistics

Jump to

Keyboard shortcuts

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