Skip to content

Latest commit

 

History

History
110 lines (69 loc) · 1.88 KB

getting-started.md

File metadata and controls

110 lines (69 loc) · 1.88 KB

pollapo

Protobuf dependency management tool.

How to install

Using Homebrew

brew tap pbkit/tap
brew install pbkit

Windows

You should add pollapo installed location to PATH environment variable manually.

Using pre-built binary

You can find pre-built binary in release assets.

Download it and copy it to somewhere in PATH.

Using installer

You can find msi installer in release assets.

Using winget

winget install Riiid.pollapo

Linux

Using pre-built binary

You can find pre-built binary in release assets.

Download it and copy it to somewhere in PATH.

Install from source

Prerequisites

# Clone pbkit repo
git clone [email protected]:pbkit/pbkit.git

# Install pollapo command
deno install -n pollapo -A --unstable pbkit/cli/pollapo/entrypoint.ts

Run by Deno run

# from GitHub source of main branch
deno run -A --unstable https://raw.githubusercontent.com/pbkit/pbkit/main/cli/pollapo/entrypoint.ts install

# from local source
deno run -A --unstable $PBKIT_REPO_ROOT/cli/pollapo/entrypoint.ts install

Usage

Login

Pollapo downloads repositories using the GitHub api.
Sign in with GitHub account to get authentication information.

pollapo login

Install dependencies

Run the command as below in where you want to install the dependencies:

# Add dependencies
pollapo add riiid/interface-common-model riiid/interface-inside-model

# Install dependencies
pollapo install # Check the created `.pollapo` directory

Auto completion

Bash

source <(pollapo completions bash)

Fish

source (pollapo completions fish | psub)

Zsh

source <(pollapo completions zsh)