Skip to content

Commit

Permalink
0.6.0 (#165)
Browse files Browse the repository at this point in the history
Fixes #139
  • Loading branch information
joshuacc authored Nov 22, 2022
1 parent 6f55afe commit 1591741
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
12 changes: 10 additions & 2 deletions src/cmd/install-long.md
Original file line number Diff line number Diff line change
@@ -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 `<packageName>@<version>` or as just
`<packageName>`.

For example, `ahkpm install github.com/user/[email protected]` 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.
Expand All @@ -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.
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.
2 changes: 1 addition & 1 deletion src/cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var installLong string
var installExample string

var installCmd = &cobra.Command{
Use: "install [<packageName>@<version>]...",
Use: "install [<dependency>]...",
Short: "Installs specified package(s). If none, reinstalls all packages in ahkpm.json.",
Long: installLong,
Example: installExample,
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 1591741

Please sign in to comment.