command

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package commands contains a set of CLI commands the application can be called with in order to perform some low-level administrative operations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	// Run runs the command with the commandline flags passed as string array
	Run(args []string) error
}

A Command is an executable sub-command that gets a number of args passed from the commandline when running

type QR

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

QR is a command used to bulk-create a set of

func NewQR

func NewQR() *QR

func (*QR) Run

func (q *QR) Run(args []string) error

Run implements the Command interface by having a runnable function that gets passed the commandline arguments

type User

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

func NewUser

func NewUser(dbInstance db.DB) *User

NewUser creates a new user command to manage users with

func (*User) Run

func (u *User) Run(args []string) error

Run implements the Command interface

Jump to

Keyboard shortcuts

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