Project

hbtrack

0.0
No commit activity in last 3 years
No release in over 3 years
Habit Tracker CLI
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
~> 10.0
~> 3.6

Runtime

~> 5.4
 Project Readme

Hbtrack

Gem Version Build Status Code Climate Test Coverage

hbtrack is a simple command lines tool to keep track of your daily habits.

Installation

gem install hbtrack

Usage

Usage: hbtrack <command> [<habit_name>] [options]

Commands:
     add: Add habit(s)
     remove: Remove habit(s)
     list: List habit(s)
     show: Show habit
     done: Mark habit(s) as done
     undone: Mark habit(s) as undone
     import: Import data from files

Options:
     -h, --help   Show help messages of the command

For more details, hbtrack <command> --help

Data

For version >= 0.0.7

The data are stored in sqlite3 database, which is located at ~/.habit.db. So if you have updated to the latest version, you can import your data from .habit by using the commnd hbtrack import 'YOUR_HOME_DIRECTORY/.habit'

For version prior to 0.0.7

The data is stored in your home directory, in file named .habit. In Unix/Unix-like system, you can directly edit the file by:

vim ~/.habit

All the data is stored in the form of:

workout
2017,6: 111111100000110100110000000001
2017,7: 11111111111111111111

The first line represent the name of the habit. The second rows onward represent the progress of the habit for each month. More details:

  • 2017,6 represent your progress during June 2017.
  • 1 is used to represent done.
  • 0 is used to represent undone.
  • Black space is used to represent not recorded/dayoff.
  • Each habit is seperated by a newline. For example:
workout
2017,7: 11111111111111111111

read
2017,7: 11111111111110011111

Bugs/Features

The project is still under development.

If there are any bugs/features request, feel free to create a new issues.