Project

kmkr

0.0
No commit activity in last 3 years
No release in over 3 years
kmkr is a CLI to create files prefixed by date (e.g. 20151031.md). It supports creating files with any file extension, date format and a suffix. This is useful for people that create a lot of files prefixed by dates and got tired of manually doing that themselves.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.8
~> 1.6
~> 0.10
~> 10.4
~> 4.2
~> 3

Runtime

~> 1.9
 Project Readme

kmkr

kmkr is a CLI to create files prefixed by date (e.g. 20151031.md). It supports creating files with any file extension, date format and a suffix.

Why

Because I create notes files everyday with a date prefix and I got tired of manually typing the date myself.

Installation

$ gem install kmkr

Usage

Specify the extension of the file as an argument.

$ kmkr <extension>

Examples

# Create an .md file with today's date (e.g. 31-10-2015.md)
$ kmkr md

# Create a .rb file with a different date format (e.g. 20151031.rb)
$ kmkr rb -f %Y%m%d

# Create a .rb file with a suffix (e.g. 31-10-2015_that_thing.rb)
$ kmkr rb -s _that_thing

Options

-f, --date-format

Use a different date format for the filename prefixes. The format directives used are the ones for Ruby's strftime method.

-d, --directory

Set the location where the file should be saved.

-s, --suffix

Add a suffix to the filename

You can always get more details using kmkr -h.

License

MIT (c) Mário Nzualo