obt

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 26 Imported by: 0

README

obt

obt is a downloader for the GitHub release page. This tool automatically downloads the latest release file that according to OS and architecture.

Example

$ obt https://github.com/davecheney/httpstat
Install 'httpstat' to '/home/y-yagi/.local/bin/httpstat'.
$ obt -p /usr/local/bin https://github.com/rclone/rclone
Install 'rclone' to '/usr/local/bin/rclone'.
$ obt -b staticcheck https://github.com/dominikh/go-tools
Install 'staticcheck' to '/home/y-yagi/.local/bin/staticcheck'.

Usage

$ obt --help
Usage: obt [OPTIONS] URL

Install binary file from GitHub's release page. Default install path is '/usr/local/bin/'.

OPTIONS:
  -b string
    	binary name(default: repository name)
  -p string
    	install path
  -s string
    	set default install path
  -v	print version number

Default install path

obt uses /usr/local/bin/ to a default install path in case of Linux or macOS. In windows, uses ..

You can change a default install path via -s option.

obt -s /home/y-yagi/.local/bin/
Change default install path to '/home/y-yagi/.local/bin/'

Installation

Download files from GitHub release page.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL