phable-cli 0.1.1__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: phable-cli
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Manage Phabricator tasks from the comfort of your terminal
5
5
  License: MIT
6
6
  Author: Balthazar Rouberol
@@ -59,7 +59,7 @@ Commands:
59
59
  For `phable` to work, you need to define the following environment variables:
60
60
 
61
61
  - `PHABRICATOR_URL`: URL to your phabricator instance. Ex: `PHABRICATOR_URL=https://phabricator.wikimedia.org`
62
- - `PHABRICATOR_API_TOKEN`: Generate a token from ${PHABRICATOR_URL}/settings/user/${YOUR_USERNAME}/page/apitokens/
62
+ - `PHABRICATOR_TOKEN`: Generate a token from ${PHABRICATOR_URL}/settings/user/${YOUR_USERNAME}/page/apitokens/
63
63
  - `PHABRICATOR_DEFAULT_PROJECT_PHID`: id for the Phabricator project to be used by default when creating tasks.
64
64
 
65
65
  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.
@@ -40,7 +40,7 @@ Commands:
40
40
  For `phable` to work, you need to define the following environment variables:
41
41
 
42
42
  - `PHABRICATOR_URL`: URL to your phabricator instance. Ex: `PHABRICATOR_URL=https://phabricator.wikimedia.org`
43
- - `PHABRICATOR_API_TOKEN`: Generate a token from ${PHABRICATOR_URL}/settings/user/${YOUR_USERNAME}/page/apitokens/
43
+ - `PHABRICATOR_TOKEN`: Generate a token from ${PHABRICATOR_URL}/settings/user/${YOUR_USERNAME}/page/apitokens/
44
44
  - `PHABRICATOR_DEFAULT_PROJECT_PHID`: id for the Phabricator project to be used by default when creating tasks.
45
45
 
46
46
  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.
@@ -10,6 +10,7 @@ VARIADIC = -1 # Used for click variadic arguments
10
10
 
11
11
 
12
12
  @click.group()
13
+ @click.version_option()
13
14
  def cli():
14
15
  """Manage Phabricator tasks from the comfort of your terminal"""
15
16
  pass
@@ -111,7 +111,7 @@ class PhabricatorClient:
111
111
 
112
112
  def mark_task_as_resolved(self, task_id: int) -> dict[str, Any]:
113
113
  """Set the status of the argument task to Resolved"""
114
- return self.create_or_edit_task(task_id=task_id, params={"status": "Resolved"})
114
+ return self.create_or_edit_task(task_id=task_id, params={"status": "resolved"})
115
115
 
116
116
  @cache
117
117
  def show_user(self, phid: str) -> dict[str, Any] | None:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "phable-cli"
3
- version = "0.1.1"
3
+ version = "0.1.2"
4
4
  description = "Manage Phabricator tasks from the comfort of your terminal"
5
5
  authors = ["Balthazar Rouberol <br@imap.cc>"]
6
6
  license = "MIT"
File without changes