Skip to content

Commit

Permalink
Rename config calendars.default-calendar -> .default-calendars
Browse files Browse the repository at this point in the history
Plural is more natural since it's a list (vs. the cli arg that's
singular because it can be repeated).
  • Loading branch information
dbarnett committed Sep 12, 2024
1 parent 2e4cb75 commit 8bf8a10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/config-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "object",
"description": "Settings about the set of calendars gcalcli operates on",
"properties": {
"default-calendar": {
"default-calendars": {
"type": "array",
"items": { "type": "string" },
"description": "Calendar(s) to use as default for certain commands when no explicit target calendar is otherwise specified"
Expand Down
2 changes: 1 addition & 1 deletion gcalcli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def main():
with config_filepath.open('rb') as config_file:
config = tomllib.load(config_file)
opts_from_config.defaultCalendar = config.get('calendars', {}).get(
'default-calendar', []
'default-calendars', []
)

if parsed_args.config_folder:
Expand Down

0 comments on commit 8bf8a10

Please sign in to comment.