diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f7bbf6..d722c7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 0.6.0 + +- Added `ahkpm search` command to find packages +- Added `--defaults` flag for `ahkpm init` to allow bypassing prompts +- Added `ahkpm u` as an alias for `ahkpm update` +- Added `ahkpm i` as an alias for `ahkpm install` +- Added `ahkpm include` command to automatically generate `#Include` directive +- `ahkpm install` now supports omitting the version from packages +- `ahkpm update` now supports the `--all` flag + ## 0.5.0 - ahkpm now supports version ranges such as `1.x.x`. diff --git a/src/cmd/install-long.md b/src/cmd/install-long.md index ff4bb51..abc2ecf 100644 --- a/src/cmd/install-long.md +++ b/src/cmd/install-long.md @@ -1,5 +1,11 @@ Installs any packages you specify at the command line +Running `ahkpm install` without specifying a package name will download all +dependencies specified in ahkpm.json into the `ahkpm-modules` folder. + +Packages may be specified as either `@` or as just +``. + For example, `ahkpm install github.com/user/repo@1.0.0` will download version 1.0.0 of the package into the `ahkpm-modules` folder as well as save the package name and version to `ahkpm.json` for future use. @@ -8,5 +14,7 @@ You may also use package name shorthands, such as `gh:user/repo`. For versions you may specify a range such as `1.x.x` or `1.2.x`. -Running `ahkpm install` without specifying a package name will download all -dependencies specified in ahkpm.json into the `ahkpm-modules` folder. \ No newline at end of file +If you do not specify a version, ahkpm will attempt to find the latest valid +semantic version. If no valid semantic version of the package is available, +it will fall back to `branch:main`. If there is no `main` branch, it will +fall back to `branch:master`. There are no further fallbacks. diff --git a/src/cmd/install.go b/src/cmd/install.go index cadebcb..97204ec 100644 --- a/src/cmd/install.go +++ b/src/cmd/install.go @@ -19,7 +19,7 @@ var installLong string var installExample string var installCmd = &cobra.Command{ - Use: "install [@]...", + Use: "install []...", Short: "Installs specified package(s). If none, reinstalls all packages in ahkpm.json.", Long: installLong, Example: installExample, diff --git a/src/cmd/update.go b/src/cmd/update.go index f043056..4f8eba5 100644 --- a/src/cmd/update.go +++ b/src/cmd/update.go @@ -50,6 +50,6 @@ func GetDependencies(set core.DependencySet) []string { } func init() { - updateCmd.Flags().BoolP("all", "a", false, "Updates all dependencies and not recommended unless you have your script in version control") + updateCmd.Flags().BoolP("all", "a", false, "Updates all dependencies") RootCmd.AddCommand(updateCmd) }