commands

package
v0.0.0-...-eefbc77 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: GPL-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUserIDRequiredForDeletion  = errors.New("USER_ID argument required in single mode")
	ErrGroupIDRequiredForDeletion = errors.New("GROUP_ID argument required in single mode")
	ErrInvalidUserIDForDeletion   = errors.New("invalid user ID: must be a number")
	ErrInvalidGroupIDForDeletion  = errors.New("invalid group ID: must be a number")
	ErrUserIDInMultiModeDeletion  = errors.New("do not provide USER_ID argument in multi mode")
	ErrGroupIDInMultiModeDeletion = errors.New("do not provide GROUP_ID argument in multi mode")
)
View Source
var (
	ErrEmptyLine        = errors.New("empty line")
	ErrInvalidID        = errors.New("invalid ID")
	ErrNoSuitableEditor = errors.New("no suitable editor found")
	ErrUnsupportedOS    = errors.New("unsupported operating system")
	ErrInvalidStatus    = errors.New("invalid status: must be 'flagged', 'confirmed', or 'both'")
)
View Source
var (
	ErrUserIDRequired    = errors.New("USER_ID argument required in single mode")
	ErrInvalidUserID     = errors.New("invalid user ID: must be a number")
	ErrUserIDInMultiMode = errors.New("do not provide USER_ID argument in multi mode")
)
View Source
var (
	ErrGroupIDRequired    = errors.New("GROUP_ID argument required in single mode")
	ErrInvalidGroupID     = errors.New("invalid group ID: must be a number")
	ErrGroupIDInMultiMode = errors.New("do not provide GROUP_ID argument in multi mode")
)
View Source
var (
	ErrNameRequired   = errors.New("NAME argument required")
	ErrReasonRequired = errors.New("REASON argument required")
	ErrTimeRequired   = errors.New("TIME argument required")
)

Functions

func AnalysisCommands

func AnalysisCommands(deps *CLIDependencies) []*cli.Command

AnalysisCommands returns all analysis-related commands.

func CleanupCommands

func CleanupCommands(deps *CLIDependencies) []*cli.Command

CleanupCommands returns all cleanup-related commands.

func DeletionCommands

func DeletionCommands(deps *CLIDependencies) []*cli.Command

DeletionCommands returns all deletion-related commands.

func FriendCleanupCommands

func FriendCleanupCommands(deps *CLIDependencies) []*cli.Command

FriendCleanupCommands returns all friend cleanup-related commands.

func GroupCleanupCommands

func GroupCleanupCommands(deps *CLIDependencies) []*cli.Command

GroupCleanupCommands returns all group cleanup-related commands.

func MigrationCommands

func MigrationCommands(deps *CLIDependencies) []*cli.Command

MigrationCommands returns all migration-related commands.

Types

type CLIDependencies

type CLIDependencies struct {
	DB       database.Client
	Migrator *migrate.Migrator
	CFClient *cloudflare.Client
	RoAPI    *api.API
	Logger   *zap.Logger
}

CLIDependencies holds the common dependencies needed by CLI commands.

type TermFrequency

type TermFrequency struct {
	Term  string
	Count int
}

TermFrequency represents a term and its occurrence count.

Jump to

Keyboard shortcuts

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