An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Motoko (Major Motoko Kusanagi)

[![release](https://img.shields.io/github/tag/ldez/motoko.svg)](https://github.com/ldez/motoko/releases)
[![Build Status](https://github.com/ldez/motoko/workflows/Main/badge.svg?branch=master)](https://github.com/ldez/motoko/actions)
[![Go Report Card](https://goreportcard.com/badge/github.com/ldez/motoko)](https://goreportcard.com/report/github.com/ldez/motoko)

[![Sponsor me](https://img.shields.io/badge/Sponsor%20me-%E2%9D%A4%EF%B8%8F-pink.svg)](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
```