feat: use cobra to provide subcommands, move sources to lib (#506)
- 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`.
This commit is contained in:
1 parent
b1eb90767d
commit
69a3f853bd
35 files changed
+535
-840
No files matched your search
+1
-2
@@ -17,8 +17,7 @@ stages:
|
||||
- release
|
||||
cache:
|
||||
directories:
|
||||
- vendor
|
||||
- rice-box.go
|
||||
- lib/rice-box.go
|
||||
jobs:
|
||||
include:
|
||||
- stage: lint
|
||||
|
||||
Reference in new issue
Block a user