go fmt & update per feedback

pull/261/head
Matti R 5 years ago
parent b0f0de3dde
commit b6044120ef
No known key found for this signature in database
GPG Key ID: 9D8A57ADAA232E95
  1. 10
      cmd/writefreely/config.go
  2. 1
      cmd/writefreely/keys.go
  3. 3
      cmd/writefreely/main.go
  4. 4
      cmd/writefreely/user.go

@ -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…
Cancel
Save