Skip to content

Commit

Permalink
Simplify fmt command
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmachado committed Jan 7, 2020
1 parent 4911418 commit d1b4189
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cmd/fmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@ func NewFmtCmd(iostreams *IOStreams) *cobra.Command {
Short: "Reformat the change log file",
Long: "Reformats changelog input following keepachangelog.com spec",
Run: func(cmd *cobra.Command, args []string) {
format(iostreams)
changelog := parser.Parse(iostreams.In)
changelog.Render(iostreams.Out)
},
}
}

func format(ioStreams *IOStreams) {
changelog := parser.Parse(ioStreams.In)
changelog.Render(ioStreams.Out)
}

0 comments on commit d1b4189

Please sign in to comment.