Permalink
Browse files

docs fix (#209)

* upgrade from ponzu-dev or fork (#198)

* docs and readme updated to remove an excessive struct field (#106) (#208)
  • Loading branch information...
nilslice committed Dec 12, 2017
1 parent e43cda2 commit 1124d6ae8bc11367a1b483f0dc64a0d2b8e11847
Showing with 10 additions and 2 deletions.
  1. +0 −1 README.md
  2. +10 −0 cmd/ponzu/upgrade.go
  3. +0 −1 docs/src/CLI/General-Usage.md
View
@@ -107,7 +107,6 @@ type Review struct {
Title string `json:"title"`
Body string `json:"body"`
Rating int `json:"rating"`
Tags []string `json:"tags"`
}
```
View
@@ -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)
}
@@ -46,7 +46,6 @@ type Review struct {
Title string `json:"title"`
Body string `json:"body"`
Rating int `json:"rating"`
Tags []string `json:"tags"`
}
```

0 comments on commit 1124d6a

Please sign in to comment.