ITエンジニア/デザイナ向けにオープンソースを毎日紹介

Todoの良くないところは消し込んだ後にデータが見えなくなってしまうことです。そうなるとただ消化するのが目的になってしまい、後で振り返るのが難しくなります。本来はレポーティングこそが大事なはずです。

そこで使ってみたいのがGit-todosです。TodoをGitを使って管理するソフトウェアです。

Git-todosの使い方

Git-todosはGitリポジトリの中で実行します。

  1. $ git-todos add
  2. ? Title (Required) テストのタスク
  3. ? Description 説明文
  4. A Todo has been added
  5. You rock! ?

listコマンドでタスクの一覧が表示できます。

  1. $ git-todos list
  2. 1) テストのタスク
  3. 2) 記事を書く
  4. You've got this ?

設定ファイルは

  1. .todos.yml
になります。

  1. $ cat .todos.yml
  2. todos:
  3. - title: テストのタスク
  4. description: 説明文
  5. marked: false
  6. id: 0
  7. - title: 記事を書く
  8. description: 20日までにやる
  9. marked: false
  10. id: 0

finish を使ってタスクを完了できます。この際、自動的にリポジトリにコミットしてくれます。

  1. $ git-todos finish
  2. ? Select an item (Use arrow keys) テストのタスク
  3. ? Type of change that you're committing (Required) feat
  4. ? Denote the scope of this change
  5. ? Short description テストのタスク
  6. ? Longer description of the change
  7. ? List any issues closed by this change
  8. ✔ Your work has been commited
  9. ✔ A Todo has been removed
  10. ✔ You're smart enough! ?

Gitなのでログも追えます。

  1. $ git log
  2. commit 223b250fb4c9a24a2061c21d29dcb2c4e14bd6f0
  3. Author: Atsushi Nakatsugawa <atsushi @moongift.jp>
  4. Date: Sun Dec 17 22:31:28 2017 +0900
  5. feat: テストのタスク

Git-todosはコマンド一つ一つに対してコミットが発生するのでタスクの状態を履歴管理できるようになります。履歴を閲覧するインタフェースはないので自作あるいはログを見る必要があるのは残念ですが、まず履歴管理されていることが大事でしょう。

Git-todosはGo製のオープンソース・ソフトウェア(Apache Licnese 2.0)です。

ahmed-taj/git-todos: A Git based Todos App for Developers

MOONGIFTプレミアムに登録して運営をサポートしてください!月額500円の他、半年(3,000円)、年間パック(6,000円)もあります。企業向けに3アカウント以上で請求書払いも可能です(年間一括のみ)。従業員の方向けのサービスにいかがですか? プレミアムユーザのログインはこちらから

 

MOONGIFTの関連記事

コメント

  • DevRel
  • Com2