https://github.com/ldez/motoko
Motoko: Based on Go modules, update a dependency to a major version.
https://github.com/ldez/motoko
go go-modules golang
Last synced: about 1 year ago
JSON representation
Motoko: Based on Go modules, update a dependency to a major version.
- Host: GitHub
- URL: https://github.com/ldez/motoko
- Owner: ldez
- License: other
- Created: 2019-01-15T21:30:28.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-05-07T05:55:52.000Z (about 1 year ago)
- Last Synced: 2025-05-07T06:03:49.785Z (about 1 year ago)
- Topics: go, go-modules, golang
- Language: Go
- Size: 90.8 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Motoko (Major Motoko Kusanagi)
[](https://github.com/ldez/motoko/releases)
[](https://github.com/ldez/motoko/actions)
[](https://goreportcard.com/report/github.com/ldez/motoko)
[](https://github.com/sponsors/ldez)
Based on Go modules, update a dependency to a major version.
## How to Use
### Main
```bash
Usage of motoko:
motoko []
Commands:
update []
version []
Flags:
--help,-h Display help
```
### Update
```bash
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.
```
### Examples
```bash
# 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
```
## How to Install
### Binaries
* To get the binary just download the latest release for your OS/Arch from [the releases page](https://github.com/ldez/motoko/releases)
* Unzip the archive.
* Add `motoko` in your `PATH`.
Available for: Linux, MacOS, Windows, FreeBSD, OpenBSD.
### From a package manager
- [ArchLinux (AUR)](https://aur.archlinux.org/packages/motoko/):
```bash
yay -S motoko
```
- [Homebrew Taps](https://github.com/ldez/homebrew-tap)
```bash
brew tap ldez/tap
brew update
brew install motoko
```
- [Scoop Bucket](https://github.com/ldez/scoop-bucket)
```bash
scoop bucket add motoko https://github.com/ldez/scoop-bucket.git
scoop install motoko
```
### From sources
```bash
go install github.com/ldez/motoko@latest
# or
go install github.com/ldez/motoko@v0.2.4
```