Add configuration file support
This commit is contained in:
parent
d141fe1d36
commit
ab51b4c11d
7 changed files with 204 additions and 51 deletions
29
config.toml
Normal file
29
config.toml
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Work Time Calculator configuration file
|
||||
# This is the default configuration.
|
||||
# You can only partially override the config,
|
||||
# any missing values will use the defaults described here.
|
||||
# You can place your configuration file in $XDG_CONFIG_HOME/wtc/config.toml,
|
||||
# usually ~/.config/wtc/config.toml
|
||||
|
||||
# This section is for default values for inputs
|
||||
[defaults]
|
||||
# Leave empty if you don't have an unpaid lunch break
|
||||
# or if you normally log your lunch break hours
|
||||
lunchBreakDuration = "00:30"
|
||||
# Your work day duration
|
||||
workDayDuration = "07:30"
|
||||
# The time you start working
|
||||
startTime = "08:00"
|
||||
# The time you stop working. Can either be "now" or a time
|
||||
stopTime = "now"
|
||||
|
||||
# This section can be used to disable prompts for each
|
||||
# of the questions. The default value will be used automatically
|
||||
# if the setting is set to false
|
||||
[askInput]
|
||||
workDayDuration = true
|
||||
startTime = true
|
||||
stopTime = true
|
||||
logged = true
|
||||
# It is assumed that you didn't have lunch if this is false
|
||||
hadLunch = true
|
Loading…
Add table
Add a link
Reference in a new issue