run

package
v1.11.13 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package run is a collection of work functions used by the cobra.Command methods.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrArg     = errors.New("argument is unsupported")
	ErrToFew   = errors.New("too few arguments given")
	ErrNothing = errors.New(str.NothingToDo)
	ErrZap     = errors.New("zap logger cannot be nil")
)

Functions

func APIs

func APIs(db *sql.DB, w io.Writer, a arg.APIs) error

API is the work function for the api command.

func Data

func Data(db *sql.DB, w io.Writer, d database.Flags) error

Data is the work function for the data command.

func Demozoo

func Demozoo(db *sql.DB, w io.Writer, l *zap.SugaredLogger, cfg conf.Config, dz arg.Demozoo) error

Demozoos is the work function for the demozoo command.

func Env added in v1.11.3

func Env(w io.Writer, l *zap.SugaredLogger, cfg conf.Config) error

Env is the work function for the env command.

func GroupCron

func GroupCron(db *sql.DB, w io.Writer, cfg conf.Config, gro arg.Group) error

GroupCron is the work function for the group cronjob command.

func Groups

func Groups(db *sql.DB, w, dest io.Writer, gro arg.Group) error

Group is the work function for the group command.

func New

func New(db *sql.DB, w io.Writer, l *zap.SugaredLogger, cfg conf.Config) error

New is the work function for the new command.

func People

func People(db *sql.DB, w io.Writer, directory string, f arg.People) error

People is the work function for the people command.

func Rename

func Rename(db *sql.DB, w io.Writer, args ...string) error

Rename is the work function for the rename command.

func TestSite

func TestSite(db *sql.DB, w io.Writer, base string) error

TestSite is the work function for the test command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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