Documentation
¶
Index ¶
- Variables
- func AnalysisCommands(deps *CLIDependencies) []*cli.Command
- func CleanupCommands(deps *CLIDependencies) []*cli.Command
- func DeletionCommands(deps *CLIDependencies) []*cli.Command
- func FriendCleanupCommands(deps *CLIDependencies) []*cli.Command
- func GroupCleanupCommands(deps *CLIDependencies) []*cli.Command
- func MigrationCommands(deps *CLIDependencies) []*cli.Command
- type CLIDependencies
- type TermFrequency
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") )
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 ¶
TermFrequency represents a term and its occurrence count.
Click to show internal directories.
Click to hide internal directories.