1.0.2 • Published 6 years ago

warda-cli v1.0.2

Weekly downloads
1
License
ISC
Repository
gitlab
Last release
6 years ago

Installation

NPM install

First of all, install warda-cli library:

npm i -g warda-cli

Basic config setup

After installation, you should set basic configuration:

wrd init --baseURL=[BASE_URL] --apiKey=[API_KEY]

Git templates setup

Option 1 (no git template dir atm or global post-commit hook)

If you don't have git template dir yet, or you have one, but don't have post-commit hook in there, just run:

wrd init-hooks -g

During this, there will be created ~/.git-templates folder, where your git-hooks will be stored.

Option 2

If previous option has failed for you, it means you already have git templates dir and you have default post-commit hook, and you'll need manually add following line to its end:

wrd post-commit

After global hook setup

You'll need to run

git init

in all repos, in which you want to use that hook.

Important!

It's not necessary: you may init post-commit hook individually for any repo you want using wrd init-hooks # or ih w/o -g flag.

Login

Using the tool requires you to have an account, so just:

wrd login

and follow the instructions.

API

init-hooks (alias ih)

Adds post-commit hook to the current git repo.

last

This command allows you to send for review previous commit OR staged changes if you have any (you'll be asked what exactly you want to send).

diff <GIT_DIFF_PARAMS>

Sends diff got by running git diff <GIT_DIFF_PARAMS>. Doesn't require init-hooks before.

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago