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.
Click to show internal directories.
Click to hide internal directories.