Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tennashi/got
Tool for managing commands written in Go.
https://github.com/tennashi/got
Last synced: 22 days ago
JSON representation
Tool for managing commands written in Go.
- Host: GitHub
- URL: https://github.com/tennashi/got
- Owner: tennashi
- License: mit
- Created: 2019-01-14T14:18:07.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-30T12:17:31.000Z (11 months ago)
- Last Synced: 2024-06-20T00:32:28.648Z (6 months ago)
- Language: Go
- Homepage:
- Size: 64.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# got
Tool for managing commands written in Go.## Require
* `go >= 1.16`
* using `go install` command to install a specific version## Install
```bash
$ go get http://github.com/tennashi/got/cmd/got
```## Usage
```
NAME:
got - package manager for commands written in GoUSAGE:
got [global options] command [command options] [arguments...]COMMANDS:
install install the specified package
upgrade upgrade installed packages
list list installed packages
enable enable the specified executable
disable disable the specified executable
show show the specified package
pin pin the version of specified package
unpin unpin the version of specified package
remove remove the specified package
help, h Shows a list of commands or help for one commandGLOBAL OPTIONS:
--config value, -c value config file [$GOT_CONFIG_FILE]
--debug debug mode (default: false) [$GOT_DEBUG]
--help, -h show help (default: false)
```### Install the command written in Go
```
$ got install github.com/tennashi/got # == go install github.com/tennashi/got/...@latest
$ got install tennashi/got # == go install github.com/tennashi/got/...@latest
```### Upgrade installed commands
```
$ got upgrade
```### List installed commands
```
$ got list
```## Configuration
Priority is given in the following order.* `--config`/`-c` command line option
* `$GOT_CONFIG_FILE`
* `$XDG_CONFIG_HOME/got/config.toml`
* default(Linux): `$HOME/.config/got/config.toml````toml
install_all = true
bin_dir = "$GOBIN" # if $GOBIN is not defined, "$GOPATH/bin" is used
data_dir = "$XDG_DATA_HOME/got" # default: "$HOME/.local/share/got
```* `install_all`: Specifies whether to install all main packages under the specified module path
* `bin_dir`: Directory to create symlinks for executables
* `data_dir`: Directory of data to manage the installed modules and the executable files