13 releases

0.1.13 Dec 3, 2022
0.1.12 Dec 3, 2022
0.1.11 Nov 2, 2022
0.1.10 Oct 30, 2022

#2040 in Command line utilities

MIT license

255KB
106 lines

Contains (ELF exe, 320KB) bin/ghc, (DOS exe, 195KB) bin/ghc.exe

Cli for efficient development in china

Crates.io Rust license

ghc 0.1.13
Anonymous <dnrops@anonymous.com>
Cli for efficient development in china
Example:
ghc .js .toml => in current dir find all *.js *.toml and if contain https://github.com repleace to https://ghproxy.com/https://github.com
ghc config => in current dir find all config files and if contain https://github.com repleace to https://ghproxy.com/https://github.com

USAGE:
        OPTION          REQUIRED        ABOUT
ghc     -a --all        false           Find all files that contain https://github.com repleace to https://ghproxy.
ghc     -r --recover    false           recover the files that repleaced to original
ghc     -h --help                       Prints help information

Example

# in current dir find all Cargo.toml and if cointain https://github.com repleace https://github.com to https://ghproxy.com/https://github.com
ghc Cargo.toml 

install

cargo install ghc

download bin

#linux
wget https://gitlab.com/andrew_ryan/ghc/-/raw/master/bin/ghc
#windows
wget https://gitlab.com/andrew_ryan/ghc/-/raw/master/bin/ghc.exe

Dependencies

~0.7–7MB
~47K SLoC