cmd

package
v0.0.0-...-0a792b4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminCreator

type AdminCreator interface {
	CreateAdmin(email, password string) error
}

AdminCreator creates an admin user.

type AdminCreatorRunner

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

AdminCreatorRunner is the admin creator runner.

func NewAdminCreatorRunner

func NewAdminCreatorRunner(adminCreator AdminCreator) *AdminCreatorRunner

func (*AdminCreatorRunner) Run

func (s *AdminCreatorRunner) Run(args []string)

Run runs the admin creator command.

type CommandRouter

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

CommandRouter is the main commands router.

func NewCommandRouter

func NewCommandRouter(
	log ErrorLogger,
	server ContextRunner,
	bindata Runner,
	adminCreator AdminCreator,
) CommandRouter

NewCommandRouter creates a new CommandRouter.

func (*CommandRouter) Run

func (r *CommandRouter) Run()

Run the router.

type Config

type Config struct {
}

Config is the cmd configuration struct.

func NewConfig

func NewConfig() *Config

NewConfig returns the configuration object.

type ContextRunner

type ContextRunner interface {
	Run(ctx context.Context, names []string)
}

ContextRunner runs the command with context.

type ErrorLogger

type ErrorLogger interface {
	Error(args ...interface{})
}

ErrorLogger logs errors.

type Runner

type Runner interface {
	Run(names []string)
}

Runner runs the command.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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