A CLI task management tool
Project description
later-cli
A CLI task management tool. CLIでタスクを管理するシンプルなプログラムです。
- 日本語の使い方はこちら をご覧ください。
Installation
Requires Python 3.10 or later. (実行にはPython 3.10以降が必要です。)
Install from PyPI
You can install later-cli using pip:
pip install later-cli
Then you can run the later command in your terminal.
Install from GitHub Repository
パッケージマネージャーである uv を使用してセットアップを行います。以下のコマンドを実行するだけで自動的に仮想環境(.venv)が構築され、依存関係の同期が完了します。以下はuvをインストールするためのコマンドです。
# Install uv
pip install uv
# OR
# brew install uv
# cargo install --git https://github.com/astral-sh/uv uv
And then, clone the repository and set up the environment:
# Clone the repository
git clone https://github.com/kujirahand/later-cli.git
cd later-cli
# Install dependencies and set up the environment
uv sync
macOS/Linuxの場合
本リポジトリをcloneした後、パスにスクリプトのディレクトリを追加します。すると、later args... の形でどこからでも利用できます。
ラッパースクリプト later は、.venv が存在すれば自動的に uv run を経由して実行されます。
~/.zshrc や ~/.bashrc に以下の設定を追加すると便利です。
LATER_CLI_PATH="/path/to/later-cli" # later-cliのパスに置き換える
PATH="$LATER_CLI_PATH:$PATH"
# 起動時に期限の来たタスクをチェックする
later check
Windowsの場合
WindowsのPowerShellを使う場合、ユーザーフォルダにある ~\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 というファイル($PROFILE の値)をテキストエディタで開いて、下記のような内容を追加します。なお、ファイルやフォルダがない場合は作成して追加する必要があります。
cd /path/to/later-cli # later-cliのパスに置き換える
uv run later.py check
How to Use later-cli
Please type later --help to see the available commands and options.
Usage:
later.py <command> [<args>...]
Commands:
add Add a new task. Example: later.py add "3d" "Submit report"
a Alias for add (shorter command)
list Show all tasks
ls Alias for list (shorter command)
show Alias for list
delete Delete a task by number. Example: later.py delete 1
del Alias for delete (shorter command)
clear Remove overdue tasks
check Show due tasks
cal Show weekly schedule in calendar format
info Show the data file path
version Show version information
language Set display language (en / ja)
done Mark a task as done. Example: later.py done 1
todo Mark a task as todo. Example: later.py todo 1
--file FILE Use FILE as the task JSON file
--help Show this help message
Examples:
later.py add "3d" "レポート提出" # add task due in 3 days
later.py add "10h" "打ち合わせ" # add task due in 10 hours
later.py add "今日" "今日のタスク" # 本日の午前8時のタスクを追加
later.py add "明日" "明日のタスク" # 明日の午前8時のタスクを追加
later.py add "明日20時" "明日20時" # 明日20時のタスクを追加
later.py add "明後日" "明後日のタスク" # 明後日の午前8時のタスクを追加
later.py add "来週" "来週のタスク" # 来週の月曜日の午前8時のタスクを追加
later.py add "来週月曜" "レポート提出" # 来週の月曜日の午前8時のタスクを追加
later.py add "水曜日" "ゴミ出し" # 次の水曜日の午前8時のタスクを追加
later.py add "来月第二月曜" "月次報告" # 来月の第2月曜日の午前8時のタスクを追加
later.py add "明日10時" "レポート提出" # 明日の午前10時00分のタスクを追加
later.py add "15:30" "打ち合わせ" # 今日の15時30分(過ぎていれば明日)のタスクを追加
later.py add "5/25" "テスト用タスク" # (今年の) 5月25日(過去なら来年)の朝8時のタスクを追加
later.py add "12月3日 15:30" "月次報告" # 12月3日の15時30分のタスクを追加
later.py add "2026-05-25" "テスト用タスク" # 2026年5月25日の朝8時のタスクを追加
later.py show # 全タスク一覧を表示
later.py delete 1 # 番号1のタスクを削除
later.py clear # 期限切れタスクを削除
later.py check # 期限切れタスクを表示
later.py cal # 週間予定をカレンダー形式で表示
later.py info # データの保存場所を表示
later.py version # バージョン情報を表示
later.py language ja # 表示言語を日本語(ja)に設定
later.py done 1 # 番号1のタスクを完了にマーク
later.py todo 1 # 番号1のタスクを未完了にマーク
later.py --file /tmp/tasks.json add now "テスト" # 指定したファイルにタスクを追加
開発者向け (just)
本プロジェクトではタスクランナーとして just を導入しています。開発時のテストやコード品質の管理(Lint/Format)に利用できます。インストール方法は justのGitHubリポジトリ をご参照ください。
justのコマンド一覧
プロジェクトのルートディレクトリで以下のコマンドを実行できます。
justまたはjust --list: 利用可能なコマンドの一覧を表示します。just install: 依存関係パッケージ(pytest, black, ruff 等)をインストールします。just test:pytestを使用してテストを実行します。just lint:ruffを使用してコードの静的解析(Linter)を実行します。just format:blackおよびruffを使用してコードを自動整形(Formatter)します。
詳しい使い方
以下のマイナビ様の連載で、プログラムの使い方や、プログラムの詳しい解説を掲載しています。
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file later_cli-0.2.1.tar.gz.
File metadata
- Download URL: later_cli-0.2.1.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9786e390d8c2e76151aecacfe9fba61ea366029556083de0e1503c3d005776ec
|
|
| MD5 |
bdeb62bebe6ee0379fb1cdac031cc539
|
|
| BLAKE2b-256 |
22a1aa2f84aeebc19f94e26fb573665883815aa2ea55c050783cbc4f9daca69a
|
File details
Details for the file later_cli-0.2.1-py3-none-any.whl.
File metadata
- Download URL: later_cli-0.2.1-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c74e3eed278a01f69b2dde8d8a9abe4a52badaab738f6cf26f0585fb44997ae4
|
|
| MD5 |
15c48e9c0f294487ecc4d907f87f3147
|
|
| BLAKE2b-256 |
c6e485bc9ad00b300351d976d80220b6981c40543bcc780f94edd15610c792c4
|