Original proejct: https://github.com/pbkit/pbkit
Note: This project is very very early stage !!!
- Install go: https://go.dev/doc/install
go install -v github.com/hojongs/pbkit-go/cli/pollapo-go@latest
git clone https://github.com/hojongs/pbkit-go.git
cd pbkit-go
# Ensure your working directory is the root of the project
go install ./cli/pollapo-go
Here it is the example usage of pollapo-go install
mkdir pollapo-test && cd pollapo-test
cat <<EOF > pollapo.yml
deps:
- pbkit/interface-lol-champion-server@be26d9a
EOF
pollapo-go i # pollapo-go install --config pollapo.yml --out-dir .pollapo
Now, you can see the installed dependencies in the .pollapo/
Run this command once to download zsh_autocomplete, and add a line to your .zshrc
mkdir -p $HOME/.config/pollapo-go
curl https://raw.githubusercontent.com/urfave/cli/master/autocomplete/zsh_autocomplete > $HOME/.config/pollapo-go/zsh_autocomplete
echo 'PROG=pollapo-go' >> $HOME/.zshrc
echo '_CLI_ZSH_AUTOCOMPLETE_HACK=1' >> $HOME/.zshrc
echo '. $HOME/.config/pollapo-go/zsh_autocomplete' >> $HOME/.zshrc
For more detail
- Bash: https://github.com/urfave/cli/blob/master/docs/v2/manual.md#distribution-and-persistent-autocompletion
- Zsh: https://github.com/urfave/cli/blob/master/docs/v2/manual.md#zsh-support
mockgen -source ./cli/pollapo-go/myzip/zip_downloader.go -destination ./cli/pollapo-go/myzip/zip_downloader_mock.go -package myzi
mockgen -source ./cli/pollapo-go/myzip/zip.go -destination ./cli/pollapo-go/myzip/zip_mock.go -package myzip
mockgen -source ./cli/pollapo-go/pollapo/pollapo_config_loader.go -destination ./cli/pollapo-go/pollapo/pollapo_config_loader_mock.go -package pollapo
go test -v ./cli/pollapo-go/cmds