current-cli 0.1.0__py3-none-any.whl
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.
- current_cli/__init__.py +1 -0
- current_cli/build.py +86 -0
- current_cli/config.py +54 -0
- current_cli/docs.py +83 -0
- current_cli/http.py +72 -0
- current_cli/main.py +159 -0
- current_cli/schema.py +116 -0
- current_cli/schema.yml +3457 -0
- current_cli-0.1.0.dist-info/METADATA +61 -0
- current_cli-0.1.0.dist-info/RECORD +12 -0
- current_cli-0.1.0.dist-info/WHEEL +4 -0
- current_cli-0.1.0.dist-info/entry_points.txt +2 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: current-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Command line interface for the Current API, generated from its OpenAPI schema at runtime
|
|
5
|
+
Author-email: Orin <your-email@example.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Requires-Dist: click>=8.1
|
|
9
|
+
Requires-Dist: httpx>=0.27
|
|
10
|
+
Requires-Dist: pyyaml>=6.0
|
|
11
|
+
Requires-Dist: rich>=13.0
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
|
|
14
|
+
# current-cli
|
|
15
|
+
|
|
16
|
+
Command line interface for the Current API. Commands are generated at runtime
|
|
17
|
+
from the bundled OpenAPI schema, so every API operation is available without
|
|
18
|
+
per-endpoint code.
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pip install current-cli
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Or from a repo checkout:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
cd cli && uv sync
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Usage
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
current config set base_url https://your-api.example.com
|
|
36
|
+
current login you@example.com
|
|
37
|
+
current config set default_workspace <workspace-uuid>
|
|
38
|
+
|
|
39
|
+
current projects list
|
|
40
|
+
current projects retrieve <id>
|
|
41
|
+
current tasks create --data '{"name": "Order beams", "workspace": "..."}'
|
|
42
|
+
current workspaces members list <workspace_id>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Run `current --help` (or `--help` on any subcommand) to see everything the
|
|
46
|
+
API exposes. `current docs` prints a markdown reference of every command;
|
|
47
|
+
the committed copy lives at [llms.txt](llms.txt) — hand it to an LLM that
|
|
48
|
+
needs to drive the CLI.
|
|
49
|
+
|
|
50
|
+
## Development
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
cd cli
|
|
54
|
+
uv sync
|
|
55
|
+
uv run pytest
|
|
56
|
+
uv run ruff check . && uv run ruff format --check .
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
The bundled schema (`current_cli/schema.yml`) is a copy of `api/schema.yml`,
|
|
60
|
+
kept in sync by `api/scripts/generate.sh`. Point the CLI at a different schema
|
|
61
|
+
with `--schema <path-or-url>` or `CURRENT_SCHEMA`.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
current_cli/__init__.py,sha256=0XEXYwRkLsgu6mJdKb9fWgk49_ZKRepq0dWnIzHk7Wc,85
|
|
2
|
+
current_cli/build.py,sha256=Kc2fytVm0nsioJ09Jb86fmwJpJq6TZnUj_WDs21dkRA,3082
|
|
3
|
+
current_cli/config.py,sha256=qR3LHMxQ473u7b7mk4YVh_HXCsD72cJbBoOvC9HCyoU,1193
|
|
4
|
+
current_cli/docs.py,sha256=CeC7PdIglEDHPJWn8CSc2HrowCpW9EPNRy3e-a633zA,2941
|
|
5
|
+
current_cli/http.py,sha256=yTKiQXsvRxo8Ct3-342pORCDApOiGsvMKnsjEBXr5uQ,1999
|
|
6
|
+
current_cli/main.py,sha256=vVSAQWeGv2oaX57BX4MdyC_VJIBSeTQQBS9FkKmP4-o,4855
|
|
7
|
+
current_cli/schema.py,sha256=od5mA9XanbFiAkMJGXPRRMVzT9cUA8fxDwEhXpXVrpc,3935
|
|
8
|
+
current_cli/schema.yml,sha256=V3KM_DLzn-wNtgyCyGLpjS9_w6YAFI8L4MJ2LF6VA7Y,89710
|
|
9
|
+
current_cli-0.1.0.dist-info/METADATA,sha256=AbXexn7Hxzi82gjJICrp8MKR8xICc8igCWedih4_hNM,1594
|
|
10
|
+
current_cli-0.1.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
|
|
11
|
+
current_cli-0.1.0.dist-info/entry_points.txt,sha256=BVHibOoO6chEavjJ20aJ6G5LQw5io36Ubc6uz7pEr5M,50
|
|
12
|
+
current_cli-0.1.0.dist-info/RECORD,,
|