diffkit

1.1.0 • Public • Published

diffkit-cli

commands

  • diffkit init : create a new diffkit configuration

  • diffkit quest : add a new quest. Quests are goals for your code.

  • diffkit count : see the current values for all quests.

  • diffkit cinch : Change the baselines to strictest passable valuable for the code.

  • diffkit check : Same as count, but it exits with a code of 1 if the counts aren't good enough for the baselines.

extended diffkit count usage:

  • use diffkit --check to have the process fail when a count is below a baseline
  • use DIFFKIT_API_KEY=[your api key] diffkit --record to record counts to diffkit.com.

using an alernative configuration file

Specify it with the --config flag. For a config named filename.json, diffkit [command] --config=filename.json

example searches

  • count all javascript files: git ls-files "*.js" | wc -l
  • count all instances of the string TODO: git grep TODO | wc -l

Development

The development README is here.

Package Sidebar

Install

npm i diffkit

Weekly Downloads

1

Version

1.1.0

License

mit

Unpacked Size

56.8 kB

Total Files

8

Last publish

Collaborators

  • cainus