Skip to content

Commit

Permalink
Merge pull request #44 from k1LoW/change-no-viz-option-to-without-er
Browse files Browse the repository at this point in the history
Change option `--no-viz` to `--without-er`
  • Loading branch information
k1LoW authored Jul 28, 2018
2 parents a983670 + e6961a8 commit a813622
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ import (
"github.com/spf13/cobra"
)

// noViz
var noViz bool
// withoutER
var withoutER bool

// docCmd represents the doc command
var docCmd = &cobra.Command{
Expand Down Expand Up @@ -75,7 +75,7 @@ var docCmd = &cobra.Command{
}
}

if !noViz {
if !withoutER {
_, err = exec.Command("which", "dot").Output()
if err == nil {
err := withDot(s, outputPath, force)
Expand Down Expand Up @@ -177,7 +177,7 @@ func init() {
rootCmd.AddCommand(docCmd)
docCmd.Flags().BoolVarP(&force, "force", "f", false, "force")
docCmd.Flags().BoolVarP(&sort, "sort", "", false, "sort")
docCmd.Flags().BoolVarP(&noViz, "no-viz", "", false, "don't use Graphviz 'dot' command")
docCmd.Flags().BoolVarP(&withoutER, "without-er", "", false, "no generate ER diagrams")
docCmd.Flags().BoolVarP(&adjust, "adjust-table", "j", false, "adjust column width of table")
docCmd.Flags().StringVarP(&additionalDataPath, "add", "a", "", "additional schema data path")
}

0 comments on commit a813622

Please sign in to comment.