cmd

package
v0.0.0-...-12587cc Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: GPL-3.0 Imports: 18 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Calc = cli.Command{
	Name:   "calc",
	Usage:  "calculates the user's scores for the day before execution time",
	Action: calc,
	Flags: []cli.Flag{
		cli.IntFlag{
			Name:  "day, d",
			Usage: "calculates the scores for the given day (to compensate server-down-time)",
		},
	},
}

Calc holds the cli command for calculating

View Source
var Reset = cli.Command{
	Name:   "reset",
	Usage:  "resets database and session-storage",
	Action: reset,
	Flags: []cli.Flag{
		cli.BoolFlag{
			Name:  "users, u",
			Usage: "deletes all users except admin",
		}, cli.BoolFlag{
			Name:  "docs, d",
			Usage: "deletes all documents of all types",
		}, cli.BoolFlag{
			Name:  "all, a",
			Usage: "deletes all documents of all types and all users except admin",
		}, cli.BoolFlag{
			Name:  "standard, s",
			Usage: "deletes all documents of type quest and all users except admin",
		}, cli.BoolFlag{
			Name:  "web, w",
			Usage: "starts the webserver after executing the reset",
		},
	},
}

Reset holds the cli command for all available reset methods

View Source
var Web = cli.Command{
	Name:   "web",
	Usage:  "Start webserver",
	Action: runWeb,
}

Web holds the cli command for starting the webserver

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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