hand

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 9 Imported by: 0

README

hand (ハンド)

1 日の作業記録に

目次

インストール

# $GOPATH/bin にインストールされる
$ go get -u github.com/t-star08/hand

使い方

# ヘルプを表示
$ hand help

# ./.hand (設定ファイル) を作る
$ hand init

# 作業内容を記録
# その日ではじめて記録する場合
$ hand keep

# 2 回目以降
# その時刻までにした作業を記録する
$ hand keep <作業名>

# 記録状態を確認する
$ hand status

# その日の各作業の作業時間を確認する
# 当日
$ hand report

# 日を指定
# 日付のフォーマット: 2022/01/28 or 2022-01-28
$ hand report <日付>

# 作業を挿入する
$ hand insert <作業名> <時刻>

# 作業を削除する
# ログ id は "$ hand status" で確認できる
$ hand remove <ログ id>

# 作業を修正する
$ hand modify <ログ id> <作業名> <時刻>

# 作業を記録した日付一覧を確認する
$ hand list

.hand について

内容

.hand/hand.json が設定ファイル

$ cat .hand/hand.json
{
  "path": "./log"
}

「作業記録を置いておくディレクトリ」を path の値で指定する (絶対パスがいいかも)

コマンド実行時

コマンドが実行されたディレクトリから上に探索していき(カレントディレクトリも含む)、最も近い .hand を採用する

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL