Skip to content

Commit

Permalink
Change "UNLICENSED" to "NO LICENSE" for ahkpm init (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacc authored Dec 2, 2022
1 parent 70d4c1b commit e7838f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ var initCmd = &cobra.Command{
}

func init() {
initCmd.Flags().BoolP("defaults", "d", false, "Create a an ahkpm.json file with default values. No prompts.")
initCmd.Flags().BoolP("defaults", "d", false, "Create an ahkpm.json file with default values. No prompts.")
RootCmd.AddCommand(initCmd)
}
4 changes: 2 additions & 2 deletions src/core/initializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ func (i Initializer) InitInteractively() {
)

licenseList := data.GetSpdxLicenseIds()
licenseList = append(licenseList, "UNLICENSED")
licenseList = append(licenseList, "NO LICENSE")
manifest.License = showPrompt(
"What license is the package released under? (MIT, Apache, etc.)\n"+
"See https://spdx.org/licenses/ for a list of valid license IDs.\n"+
"If you do not wish to license the package, enter \"UNLICENSED\".",
"If you do not wish to license the package, enter \"NO LICENSE\".",
buildValidatorFromList(licenseList),
prompt.OptionInitialBufferText(manifest.License),
)
Expand Down

0 comments on commit e7838f7

Please sign in to comment.