Command-line ticket tracker

by winson, about 1 year ago.

當你有很多小功能需要修修補補的時候,是不是該找個地方寫下來?

寫在記事本上?太遜了吧。用Jira?太麻煩了吧。

如果你喜歡在命令列底下辦事的話,來來來,先把Tracker這顆寶石裝起來吧。

請輸入以下指令安裝:

sudo gem install -y Tracker
Tracker本身附帶SQLite3資料庫,所以問題的追蹤本身不會是問題。

先切換到你的Rails project目錄,把小資料庫建立起來:

cd ~/projects/myrails/
trac bootstrap

> New database './.tracker_db' was created
輸入待處理問題的語法跟Subversion差不多,像這樣:
trac create -m "500 error occurs after new migration." 

> Created new ticket #1
再來建一個:
trac create -m "CSS bug in IE6, white-space issue." 

> Created new ticket #2
列出問題清單只要:
trac list

> #1:    500 error occurs after new migration.
> #2:    CSS bug in IE6, white-space issue.
增加修改註記呢?
trac add 2 -m "I notified the client that issue will be solved in IE7. Or I put <p> around it." 

> New comment was added to ticket #2
秀一下第2項的細節看看:
trac show 2

> Ticket:     #2
> Messages: - 16 Jun 17:19
> * - CSS bug in IE6, white-space issue.
> 1 - I notified the client that issue will be solved in IE7. Or I put <p> around it.
關閉問題只要這樣:
trac close 2

> Closed ticket #2

比較推薦單人單機使用這顆小寶石,如果要多人使用,請開terminal連線至同一台主機,這樣一來既不用安裝任何軟體,也不需要特別設定,真是輕鬆愉快啊。

順帶一提,如果你是命令列狂人的話,千萬不能錯過這個: Todo.txt – Task tracking for command line lovers,我都用它來記錄幾時該交水電、瓦斯費、月底要刷油漆以及下週衣服要送洗哩。


  • Posted in Gems, Ruby, on Sunday, June 17, 2007, at 12:56 AM.