This is a CLI tool for managing a register of data entities in a Paneron repository, that follows the specification outlined here.
Git clone this repository, then install dependencies.
git clone https://github.com/paneron/paneron-cli
cd paneron-cli
bundle install
Open development shell (irb
) with:
bundle exec irb
Open development shell (pry
) with:
bundle exec pry
Run tests with:
bundle exec rspec
# or
bundle exec rake spec
Run lint with:
bundle exec rubocop
Run lint with autocorrect with:
bundle exec rubocop -a
Release to Rubygem (adds a Git tag, pushes to GitHub and releases to Rubygem) with:
bundle exec rake release
If your system is using Nix, run the following to gain access to shell aliases:
nix develop
Open development shell (irb
) with:
irb
# or
console
Open development shell (pry
) with:
pry
Run tests with:
rspec
Run lint with:
lint
# or
rubocop
Run lint with autocorrect with:
lint -a
# or
rubocop -a
Release to Rubygem (adds a Git tag, pushes to GitHub and releases to Rubygem) with:
release
Update Nix flakes with:
update-flakes
When actually creating a new version for release, do the following:
-
Update the
VERSION
in filelib/paneron/cli/version.rb
. -
git add lib/paneron/cli/version.rb git commit -m 'chore: Release vX.Y.Z' # change X.Y.Z to actual version git push # Run rake release bundle exec rake release
See LICENSE
for license information.