cmd

package
v0.0.0-...-3f06ee3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2016 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Data = cli.Command{
	Name:  "data",
	Usage: "Goclerk data tools",
	Subcommands: []cli.Command{
		{
			Name:   "export",
			Usage:  "Export goclerk data",
			Action: exportJson,
		},
		{
			Name:  "import",
			Usage: "Import json data into goclerk",
			Subcommands: []cli.Command{
				{
					Name:   "invoice",
					Usage:  "Import an invoice",
					Action: importInvoice,
				},
			},
		},
	},
}

Data command to import and export data from the database

View Source
var Setup = cli.Command{
	Name:  "setup",
	Usage: "Goclerk setup tools",
	Subcommands: []cli.Command{
		{
			Name:   "install",
			Usage:  "Install goclerk",
			Action: install,
		},
		{
			Name:   "reset",
			Usage:  "Reset the database",
			Action: reset,
		},
	},
}

Setup command to install the configuration and reset the database

View Source
var Web = cli.Command{
	Name:   "web",
	Usage:  "Start GoClerk web server",
	Action: runWeb,
	Flags: []cli.Flag{
		cli.StringFlag{
			Name:  "config, c",
			Value: "config/config.ini",
			Usage: "Configuration file path",
		},
		cli.StringFlag{
			Name:  "port, p",
			Value: "4000",
			Usage: "Port number",
		},
	},
}

Web is the web interface and api command

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