Skip to content

Latest commit

 

History

History
62 lines (40 loc) · 1 KB

README.md

File metadata and controls

62 lines (40 loc) · 1 KB

mirrorctl

Manage mirror urls for many repositories.

Supporting Repositories

  • Bundler (Ruby)
  • Pipenv (Python)
  • Pypi (Python)

Supporting Locations

If you set an invalid location code, it will be set to default repository urls.

  • Korea (kr, korea)

Getting Started

Install

Using Homebrew

brew tap hellodhlyn/mirrorctl
brew install mirrorctl

Manual Installation

Download a binary from the releases page.

tar -xzf mirrorctl_XXX.tar.gz
cp mirrorctl /usr/bin

Usage

Add a script below on your shell startup file like ~/.bash_profile, ~/.zshrc, or ~/.profile.

# Set your own location code instead of <location>.
eval "$(mirrorctl export --location <location>)"

Development

Prerequisites

  • Go 1.14 (or greater)
  • Pkger

Build

# Build binary
pkger -include /mirrorlist
go build -o dist/mirrorctl

# Run command
./dist/mirrorctl --help