Skip to content

Commit 69a3f85

Browse files
author
1138-4EB
committed
feat: use cobra to provide subcommands, move sources to lib (filebrowser#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`. - filebrowser#497 and filebrowser#504 are merged. - Deprecated flags are added. See filebrowser#497 (comment). - [`viper.BindPFlags`](https://godoc.org/github.com/spf13/viper#BindPFlags) is used in order to reduce the verbosity in `serve.go`.
1 parent b1eb907 commit 69a3f85

35 files changed

+535
-840
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ stages:
1717
- release
1818
cache:
1919
directories:
20-
- vendor
21-
- rice-box.go
20+
- lib/rice-box.go
2221
jobs:
2322
include:
2423
- stage: lint

Docker.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
"port": 80,
33
"address": "",
44
"database": "/database.db",
5-
"scope": "/srv",
6-
"allowCommands": true,
7-
"allowEdit": true,
8-
"allowNew": true,
9-
"commands": []
5+
"defaults": {
6+
"scope": "/srv",
7+
"allowCommands": true,
8+
"allowEdit": true,
9+
"allowNew": true,
10+
"commands": []
11+
}
1012
}

0 commit comments

Comments
 (0)