Skip to content

Commit

Permalink
rename genconfig to generate
Browse files Browse the repository at this point in the history
  • Loading branch information
tashima42 committed Jan 15, 2024
1 parent 0dd33f4 commit d268be2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/release/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var genConfigSubCmd = &cobra.Command{
Short: "generate config",
Long: `generates a new config in the default location if it doesn't exists`,
RunE: func(cmd *cobra.Command, args []string) error {
if err := config.GenConfig(); err != nil {
if err := config.Generate(); err != nil {
return err
}
logrus.Info("config generated")
Expand Down
2 changes: 1 addition & 1 deletion cmd/release/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func OpenOnEditor() error {
return cmd.Run()
}

func GenConfig() error {
func Generate() error {
var configExists = true
configPath, err := DefaultConfigPath()
if err != nil {
Expand Down

0 comments on commit d268be2

Please sign in to comment.