diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-12-12 13:30:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-12 13:30:12 -0700 |
commit | 1124d6ae8bc11367a1b483f0dc64a0d2b8e11847 (patch) | |
tree | 6f64abf4a74e589a347a80f2b78c70b7a0003152 | |
parent | e43cda203b2b3eadab6bea1891e83fe232555fb5 (diff) |
docs fix (#209)
* upgrade from ponzu-dev or fork (#198)
* docs and readme updated to remove an excessive struct field (#106) (#208)
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | cmd/ponzu/upgrade.go | 10 | ||||
-rw-r--r-- | docs/src/CLI/General-Usage.md | 1 |
3 files changed, 10 insertions, 2 deletions
@@ -107,7 +107,6 @@ type Review struct { Title string `json:"title"` Body string `json:"body"` Rating int `json:"rating"` - Tags []string `json:"tags"` } ``` diff --git a/cmd/ponzu/upgrade.go b/cmd/ponzu/upgrade.go index 29b605e..b956530 100644 --- a/cmd/ponzu/upgrade.go +++ b/cmd/ponzu/upgrade.go @@ -122,6 +122,14 @@ func upgradePonzuProjectDir(path string) error { } } + // development upgrade? + if dev { + if fork != "" { + fmt.Println("Upgrading from " + fork) + } else { + fmt.Println("Upgrading from 'ponzu-dev' branch") + } + } err = createProjectInDir(path) if err != nil { fmt.Println("") @@ -167,5 +175,7 @@ func upgradePonzuProjectDir(path string) error { } func init() { + upgradeCmd.Flags().StringVar(&fork, "fork", "", "modify repo source for Ponzu core development") + upgradeCmd.Flags().BoolVar(&dev, "dev", false, "modify environment for Ponzu core development") RegisterCmdlineCommand(upgradeCmd) } diff --git a/docs/src/CLI/General-Usage.md b/docs/src/CLI/General-Usage.md index 993ff18..2928a53 100644 --- a/docs/src/CLI/General-Usage.md +++ b/docs/src/CLI/General-Usage.md @@ -46,7 +46,6 @@ type Review struct { Title string `json:"title"` Body string `json:"body"` Rating int `json:"rating"` - Tags []string `json:"tags"` } ``` |