Add schema to config
This commit is contained in:
parent
87737b0118
commit
29ded9426b
3 changed files with 61 additions and 4 deletions
44
config.toml
44
config.toml
|
@ -1,44 +0,0 @@
|
|||
# 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
|
||||
|
||||
# The language of the application.
|
||||
# Currently supported languages are "en", "fi"
|
||||
language = "en"
|
||||
|
||||
# Time format used to display timestamps (started, stopped etc.)
|
||||
# Refer to the dayjs documentation on how to set this https://day.js.org/docs/en/display/format
|
||||
# For example, the finnish format would be "MM.DD.YYYY [kello] HH.mm"
|
||||
timestampFormat = "YYYY-MM-DD HH:mm"
|
||||
|
||||
# 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