mirror of
https://github.com/writefreely/writefreely
synced 2025-02-26 11:47:15 +00:00
go fmt & update per feedback
This commit is contained in:
parent
b0f0de3dde
commit
b6044120ef
6 changed files with 24 additions and 24 deletions
|
@ -34,21 +34,19 @@ var (
|
|||
}
|
||||
|
||||
cmdConfigInteractive cli.Command = cli.Command{
|
||||
Name: "interactive",
|
||||
Aliases: []string{"i"},
|
||||
Name: "start",
|
||||
Usage: "Interactive configuration process",
|
||||
Action: interactiveConfigAction,
|
||||
Flags: []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
Name: "sections",
|
||||
Value: "server db app",
|
||||
Usage: "Which sections of the configuration to go through (requires --config)\n" +
|
||||
"valid values are any combination of 'server', 'db' and 'app' \n" +
|
||||
"example: writefreely --config --sections \"db app\"",
|
||||
Usage: "Which sections of the configuration to go through\n" +
|
||||
"valid values of sections flag are any combination of 'server', 'db' and 'app' \n" +
|
||||
"example: writefreely config start --sections \"db app\"",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
)
|
||||
|
||||
func genConfigAction(c *cli.Context) error {
|
||||
|
|
|
@ -31,7 +31,6 @@ var (
|
|||
Usage: "Generate encryption and authentication keys",
|
||||
Action: genKeysAction,
|
||||
}
|
||||
|
||||
)
|
||||
|
||||
func genKeysAction(c *cli.Context) error {
|
||||
|
|
|
@ -23,6 +23,9 @@ import (
|
|||
)
|
||||
|
||||
func main() {
|
||||
cli.VersionPrinter = func(c *cli.Context) {
|
||||
fmt.Printf("%s\n", c.App.Version)
|
||||
}
|
||||
app := &cli.App{
|
||||
Name: "WriteFreely",
|
||||
Usage: "A beautifully pared-down blogging platform",
|
||||
|
|
|
@ -29,9 +29,9 @@ var (
|
|||
}
|
||||
|
||||
cmdAddUser cli.Command = cli.Command{
|
||||
Name: "add",
|
||||
Name: "create",
|
||||
Usage: "Add new user",
|
||||
Aliases: []string{"a"},
|
||||
Aliases: []string{"a", "add"},
|
||||
Flags: []cli.Flag{
|
||||
&cli.BoolFlag{
|
||||
Name: "admin",
|
||||
|
|
Loading…
Add table
Reference in a new issue