Nukesor / pueue

:stars: Manage your shell commands.
MIT License
4.67k stars 128 forks source link

fix: handle settings with missing `shared` section #505

Closed rycee closed 4 months ago

rycee commented 4 months ago

Description

This allows configuration files without a shared field, using the default value if missing.

Before:

$ pueued -vv -c /dev/null
Error: Error while reading configuration.

Caused by:
    Error while reading configuration:
    missing field `shared`

After:

$ pueued -vv -c /dev/null
21:12:26 [INFO] Restoring state
21:12:26 [INFO] Using unix socket at: "/run/user/1000/pueue_rycee.socket"

Checklist

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 80.18%. Comparing base (be40e46) to head (c93ab16).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## development #505 +/- ## ============================================ Coverage 80.18% 80.18% ============================================ Files 77 77 Lines 5673 5673 ============================================ Hits 4549 4549 Misses 1124 1124 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Nukesor commented 4 months ago

Thanks!