-
Notifications
You must be signed in to change notification settings - Fork 54
Timesheet server commands
Stanislav Valasek edited this page Feb 18, 2019
·
1 revision
valasek@linux:~$ timeshet.bin
Web based timesheet application with DB persistence.
Application reads DB and server configuration from config.toml, loads default data if DB is empty and launch web GUI.
Usage:
timesheet [command]
Available Commands:
db Initiate, load or backup DB. See timesheet help db
help Help about any command
routes Prints the list of all available routes
server Starts the server on URL and port defined in config.yaml
Flags:
--config string config file (default is ./timesheet.yaml)
-h, --help help for timesheet
-v, --version Prints application versions
Use "timesheet [command] --help" for more information about a command.
valasek@linux:~$ timeshet.bin
Feb 18 21:58:29.700 [INFO] config file /home/valasek/programming/timesheet/server/timesheet.yaml
Initiate, load, or backup DB.
Command first tests connection to DB. If succeeds it will initiate, load or backup db and exit.
Usage:
timesheet db [flags]
Flags:
-b, --backup Backup all DB tables in the format used by db --load command
-c, --clean Drop and create all required DB tables
-h, --help help for db
-l, --load string Truncate DB table/tables and load initial data from files in folder ./data. Options:
all - load all tables
rates | consultants | projects | holidays | reported_records - load selected table
Global Flags:
--config string config file (default is ./timesheet.yaml)