No commit activity in last 3 years
No release in over 3 years
Increment numbers persistently. Stores the numbers in a textfile ~/.increment
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 0.16.0
 Project Readme

About

Increments numbers and stores them in $HOME/.increment

Usage

Simple incrementing

$ increment
#=> 1
$ increment
#=> 2
$ exit
#=> log out, log off, power off or such.
$ increment
#=> 4

Named incrementing

$ increment -n invoice
# => 1
$ increment --name invoice
# => 2

(pre)set, write, a number

$ increment --write 1337
# => 1337
$ increment
# => 1338
$ increment -w 1337
# 1337
$ increment -w 42 -n invoice
# => 42

Or read out (dry-run) without incrementing

$ increment --dry-run
# => 1338

List all named numbers

$ increment --list
  (unnamed) : 1338
  invoice   : 42

Author

Bèr berkes Kessels

Requirements

A POSIX complient system (AKA: will probably not work properly on windows)

TODOs

Make more racecondition-safe with locking.