Day Oneへコマンドラインからエントリーを追加できるDay One CLI
iOSとMacで人気の日記アプリDayOneですが、Mac向けにコマンドラインからエントリーを追加できるツールが提供されていたんですね。
Day One Tools — DAY ONE / SUPPORTからDay One CLIのパッケージをダウンロードしてインストールすると、
$ echo 'Hello World' | dayone new
のようにしてDay Oneへエントリーを追加できるようになります。
ファイルからエントリーを追加したい場合は、こんな感じで。
$ dayone new < /tmp/hoge
スターをつけたり写真を添付したり作成日付を指定したりもできるようです。
Usage: dayone [-d=] [-s=true|false] [-p=]
[-j=] [-h]
Options:
-d, --date= Creation date of the entry.
-s, --starred=true|false Starred value.
-p, --photo-file= File path to a photo to attach to entry.
-j, --journal-file= Location of Day One Journal file.
-h, --help Show this information.
Commands:
new Adds a new entry using text from stdin
Examples:
dayone new
Waits for you type something and then creates a new entry in the default journal
echo "Hello World" | dayone new
Creates a new entry containing the specified text
dayone new < ~/Desktop/note.txt
Creates a new entry containing the contents of the file note.txt
twitterのつぶやきなど、アクティビティをDayOneへ集約したいような場合に使えそうですね。Day OneはなにげにMarkdownもサポートしているので整形もできそうだし、いいかも。
Day One
カテゴリ: ライフスタイル
価格: ¥1,000