Skip to content

pankona/nn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nn

Shows "n 日ぶり n 回目"

Install

$ go get -u github.com/pankona/nn

Usage

NAME:
   nn - show nn

USAGE:
   nn [options] [arguments...]

VERSION:
   0.1

OPTIONS:
   --id value                specify id of nn (default: "default")
   -f value, --format value  specify format of nn (default: "%d 日ぶり %d 回目")
   --help, -h                show help
   --version, -v             print the version

Usage example

Default

$ nn
0 日ぶり 1 回目

$ nn
0 日ぶり 2 回目

Specify ID

count is identified by specified "id"

$ nn -id myapp1
0 日ぶり 1 回目

$ nn -id myapp1
0 日ぶり 2 回目

$ nn -id myapp2
0 日ぶり 1 回目

$ nn -id myapp2
0 日ぶり 2 回目

Change display format

display format can be changed by specifying "-f" or "--format".
it must specify two "%d", like below.

$ nn -f "while in %d days, %d time"
while in 0 days, 4 time

Reset

nn records are stored on &HOME/.config/nn/{id}.txt, just remove it.

License

MIT

About

shows "n 日ぶり n 回目"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages