Manage Phabricator tasks from the comfort of your terminal
Project description
phable
Manage Phabricator tasks from the comfort of your terminal.
phable is a CLI allowing you to manage your Phorge/Phabricator tasks.
It tries to be very simple and not go overboard with features. You can:
- create a new task
- display a task details
- move a task to a column on its current board
- assign a task to a user
- add a comment to a task
Installation
$ pip install phable-cli
Usage
$ phable --help
Usage: phable [OPTIONS] COMMAND [ARGS]...
Manage Phabricator tasks from the comfort of your terminal
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
assign Assign one or multiple task ids to a username
comment Add a comment to a task
create Create a new task
move Move one or several task on their current project board
show Show task details
subscribe Subscribe to one or multiple task ids
Setup
For phable to work, you need to define the following environment variables:
PHABRICATOR_URL: URL to your phabricator instance. Ex:PHABRICATOR_URL=https://phabricator.wikimedia.orgPHABRICATOR_TOKEN: Generate a token from ${PHABRICATOR_URL}/settings/user/${YOUR_USERNAME}/page/apitokens/PHABRICATOR_DEFAULT_PROJECT_PHID: id for the Phabricator project to be used by default when creating tasks.
Note: to get PHABRICATOR_DEFAULT_PROJECT_PHID, define the first 2 environment variables, and run the following command, where T123456 is a task id belonging to your project.
$ phable show T123456 --format=json | jq -r '.attachments.projects.projectPHIDs[]'
Tips and tricks
If you're using iTerm2, you can turn the task IDs into clickable links, by going to iTerm2 > Settings > Profiles > Advanced > Smart Selection > Edit > [+]:
- Title: Phabricator Task Id
- Action: Open URL
- Parameter: https://phabricator.wikimedia.org/\0 (Adjust your Phabricator URL)
Then click on the new rule Notes field, and set it to Phabricator, and set the Regular expression field to T\d{6} (adjust the number of digits to what a task ID looks like in your instance. The latest created task has ID 385678 right now, so \d{6} gives us some leeway).
One that is done, holding Command when hovering on a task ID should turn it into a link.
Project details
Release history Release notifications | RSS feed
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 phable_cli-0.1.8.tar.gz.
File metadata
- Download URL: phable_cli-0.1.8.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.13.2 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b09bb868eff43ba12d11ed00f037a8eeafba28fbf1aac1c724ec55353baa017
|
|
| MD5 |
7b1ff63809613aa65ca9a466f110e777
|
|
| BLAKE2b-256 |
7d4b6f043912f05defb6dcd19ab46f93c3c4b612e04152065503b1538289fb91
|
File details
Details for the file phable_cli-0.1.8-py3-none-any.whl.
File metadata
- Download URL: phable_cli-0.1.8-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.13.2 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5dcad15518241f254ca7be9fbb7bc0d020b7f332a2ff80541270e72e14489158
|
|
| MD5 |
2c0ae223243d42476f6b1f6d1f925059
|
|
| BLAKE2b-256 |
2c2d85e89a3b5893851c0a0a586c93d0e5b3fc2d0b2e7892dcb5477f55e55bfc
|