command

package
v0.0.0-...-d6daade Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeCommands

func InitializeCommands(repos *repository.Repositories, srvs *service.Services) *cobra.Command

InitializeCommands sets up all commands and injects repositories into them

Types

type CommandInterface

type CommandInterface interface {
	Name() string            // Returns the command name
	Command() *cobra.Command // Returns the actual cobra.Command
	Handler(args ...interface{}) error
}

type ImportScheduledAnimeCommand

type ImportScheduledAnimeCommand struct {
	// contains filtered or unexported fields
}

ImportScheduledAnimeCommand struct implements CommandInterface

func NewImportScheduledAnimeCommand

func NewImportScheduledAnimeCommand(aniSrv *service.AniListService) *ImportScheduledAnimeCommand

func (*ImportScheduledAnimeCommand) Command

Command returns the cobra.Command for the command

func (*ImportScheduledAnimeCommand) Handler

func (c *ImportScheduledAnimeCommand) Handler(args ...interface{}) error

ImportScheduledAnimeHandler handles the scheduled anime import.

func (*ImportScheduledAnimeCommand) Name

Name returns the name of the command

type TestCommand

type TestCommand struct {
	// contains filtered or unexported fields
}

TestCommand struct implements CommandInterface

func (*TestCommand) Command

func (c *TestCommand) Command() *cobra.Command

Command returns the cobra.Command for the command

func (*TestCommand) Handler

func (c *TestCommand) Handler(args ...interface{}) error

ImportScheduledAnimeHandler handles the scheduled anime import.

func (*TestCommand) Name

func (c *TestCommand) Name() string

Name returns the name of the command

Jump to

Keyboard shortcuts

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