mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-01-23 10:45:24 +00:00
- Use cobra in order to provide subcommands `serve` and `db`. - Subdir `cmd` is removed. - Subdir `cli` is created, which is a standard cobra structure. - Sources related to the core are moved to subdir `lib`. - #497 and #504 are merged. - Deprecated flags are added. See https://github.com/filebrowser/filebrowser/pull/497#discussion_r209428120. - [`viper.BindPFlags`](https://godoc.org/github.com/spf13/viper#BindPFlags) is used in order to reduce the verbosity in `serve.go`.
12 lines
197 B
JSON
12 lines
197 B
JSON
{
|
|
"port": 80,
|
|
"address": "",
|
|
"database": "/database.db",
|
|
"defaults": {
|
|
"scope": "/srv",
|
|
"allowCommands": true,
|
|
"allowEdit": true,
|
|
"allowNew": true,
|
|
"commands": []
|
|
}
|
|
}
|