filebrowser/cmd
Henrique Dias 0a0cb8046f
feat: consistent flags and environment variables (#5549)
- In the root command, 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.
- All configuration options (unless I missed something) 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`
2025-11-17 08:45:43 +01:00
..
cmd.go
cmd_test.go feat: consistent flags and environment variables (#5549) 2025-11-17 08:45:43 +01:00
cmds.go
cmds_add.go
cmds_ls.go feat: consistent flags and environment variables (#5549) 2025-11-17 08:45:43 +01:00
cmds_rm.go
config.go feat: consistent flags and environment variables (#5549) 2025-11-17 08:45:43 +01:00
config_cat.go
config_export.go
config_import.go feat: consistent flags and environment variables (#5549) 2025-11-17 08:45:43 +01:00
config_init.go feat: consistent flags and environment variables (#5549) 2025-11-17 08:45:43 +01:00
config_set.go feat: consistent flags and environment variables (#5549) 2025-11-17 08:45:43 +01:00
docs.go docs: add CLI usage and integrate generation in release 2025-11-16 10:14:59 +01:00
hash.go
root.go feat: consistent flags and environment variables (#5549) 2025-11-17 08:45:43 +01:00
rule_rm.go
rules.go feat: consistent flags and environment variables (#5549) 2025-11-17 08:45:43 +01:00
rules_add.go feat: consistent flags and environment variables (#5549) 2025-11-17 08:45:43 +01:00
rules_ls.go
users.go feat: consistent flags and environment variables (#5549) 2025-11-17 08:45:43 +01:00
users_add.go feat: consistent flags and environment variables (#5549) 2025-11-17 08:45:43 +01:00
users_export.go
users_find.go
users_import.go feat: consistent flags and environment variables (#5549) 2025-11-17 08:45:43 +01:00
users_rm.go
users_update.go feat: consistent flags and environment variables (#5549) 2025-11-17 08:45:43 +01:00
utils.go feat: consistent flags and environment variables (#5549) 2025-11-17 08:45:43 +01:00
version.go