Flags and Environment Variables Improvements
- In the root command (filebrowser), all flags are now correctly available as environmental variables, except for --config flag. This was already supposed to be the case, but due to bugs in the implementation it didn't work properly.
- When performing quick setup, all flags should be taken into account.
- All configuration options that are available as flags should now properly update the configuration when using the config init and config set commands.
- Flag names are now consistently in the lowerCamelCase format. All flags that were in a different format have been updated in a backwards compatible way. For a transitionary period of at least 6 months, both will work:
- --dir-mode --> --dirMode
- --hide-login-button --> --hideLoginButton
- --create-user-dir --> --createUserDir
- --minimum-password-length --> --minimumPasswordLength
- --socket-perm --> --socketPerm
- --disable-thumbnails --> --disableThumbnails
- --disable-preview-resize --> --disablePreviewResize
- --disable-exec --> --disableExec
- --disable-type-detection-by-header --> --disableTypeDetectionByHeader
- --img-processors --> --imageProcessors
- --cache-dir --> --cacheDir
- --token-expiration-time --> --tokenExpirationTime
- --baseurl --> --baseURL
If some flag or environment variable is not working as intended, or if some option is not working, please report a bug.
Changelog
- d759ab0 chore(release): 2.48.1
- 00323a8 chore: fix Taskfile commit when change
- 420adea fix: options should only override if set