Based on Go modules, update a dependency to a major version.
Usage of motoko:
motoko <command> [<flags>]
Commands:
update [<flags>]
version [<flags>]
Flags:
--help,-h Display help
Usage of update:
-filenames
Only display file names.
-latest
Update to the latest available version.
-lib string
Lib to update. (Required)
-version string
Version to set.
# update to the latest version:
motoko update --lib github.com/ldez/go-git-cmd-wrapper --latest
# update to a specific major version:
motoko update --lib github.com/ldez/go-git-cmd-wrapper --version 6
# update to a specific version:
motoko update --lib github.com/ldez/go-git-cmd-wrapper --version v6.0.0
- To get the binary just download the latest release for your OS/Arch from the releases page
- Unzip the archive.
- Add
motoko
in yourPATH
.
Available for: Linux, MacOS, Windows, FreeBSD, OpenBSD.
yay -S motoko
brew tap ldez/tap
brew update
brew install motoko
scoop bucket add motoko https://github.com/ldez/scoop-bucket.git
scoop install motoko
go install github.com/ldez/motoko@latest
# or
go install github.com/ldez/motoko@v0.2.4