Skip to content

Commit

Permalink
鈾伙笍 refactor: rename NewMainOptions => NewOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotxx committed Feb 25, 2022
1 parent 63e87af commit 47b84ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/mdfmt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ type Options struct {
Verbose bool
}

// NewEncryptOptions returns a new EncryptOptions instance
func NewMainOptions() *Options {
// NewOptions returns a new Options instance
func NewOptions() *Options {
return &Options{}
}

func configureCLI() *cobra.Command {
o := NewMainOptions()
o := NewOptions()
rootCmd := &cobra.Command{
Use: "mdfmt [flags] [path ...]",
Short: cmdShort,
Expand Down

0 comments on commit 47b84ad

Please sign in to comment.