current-cli 0.1.62__tar.gz → 0.1.63__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.5
2
2
  Name: current-cli
3
- Version: 0.1.62
3
+ Version: 0.1.63
4
4
  Summary: Command line interface for the Current API, generated from its OpenAPI schema at runtime
5
5
  Author-email: Orin <your-email@example.com>
6
6
  License-Expression: MIT
@@ -7,6 +7,7 @@ is stale. Regenerate with: uv run python -m current_cli.docs > llms.txt
7
7
  from __future__ import annotations
8
8
 
9
9
  from collections.abc import Iterator
10
+ from inspect import cleandoc
10
11
 
11
12
  import click
12
13
 
@@ -70,7 +71,7 @@ def render_docs(root: click.Group) -> str:
70
71
  lines = [f"### {usage}"]
71
72
  if command.help:
72
73
  lines.append("")
73
- lines.append(command.help.strip())
74
+ lines.append(cleandoc(command.help))
74
75
  if options:
75
76
  lines.append("")
76
77
  lines.append("Options:")
@@ -2344,6 +2344,20 @@ paths:
2344
2344
  schema:
2345
2345
  type: string
2346
2346
  description: Keep only projects whose name contains this text, ignoring case
2347
+ - in: query
2348
+ name: readiness
2349
+ schema:
2350
+ type: string
2351
+ enum:
2352
+ - all
2353
+ - blocked
2354
+ - complete
2355
+ - incomplete
2356
+ - not_assessed
2357
+ - ready
2358
+ - unverified
2359
+ description: Filter evidence readiness independently of the existing status
2360
+ filter.
2347
2361
  - in: query
2348
2362
  name: status
2349
2363
  schema:
@@ -5452,6 +5466,16 @@ components:
5452
5466
  - client_secret
5453
5467
  - login_host
5454
5468
  - workspace
5469
+ CloseoutCompletionEnum:
5470
+ enum:
5471
+ - complete
5472
+ - incomplete
5473
+ - unverified
5474
+ type: string
5475
+ description: |-
5476
+ * `complete` - complete
5477
+ * `incomplete` - incomplete
5478
+ * `unverified` - unverified
5455
5479
  CloseoutQueueItem:
5456
5480
  type: object
5457
5481
  description: One project on a closeout queue page.
@@ -5525,6 +5549,19 @@ components:
5525
5549
  outcome:
5526
5550
  type: string
5527
5551
  nullable: true
5552
+ property_handoff:
5553
+ nullable: true
5554
+ oneOf:
5555
+ - $ref: '#/components/schemas/PropertyHandoffEnum'
5556
+ - $ref: '#/components/schemas/NullEnum'
5557
+ closeout_completion:
5558
+ nullable: true
5559
+ oneOf:
5560
+ - $ref: '#/components/schemas/CloseoutCompletionEnum'
5561
+ - $ref: '#/components/schemas/NullEnum'
5562
+ policy_id:
5563
+ type: string
5564
+ nullable: true
5528
5565
  open_outcome:
5529
5566
  type: string
5530
5567
  nullable: true
@@ -6985,6 +7022,9 @@ components:
6985
7022
  required:
6986
7023
  - paths
6987
7024
  - project
7025
+ NullEnum:
7026
+ enum:
7027
+ - null
6988
7028
  Observation:
6989
7029
  type: object
6990
7030
  description: |-
@@ -7718,6 +7758,16 @@ components:
7718
7758
  required:
7719
7759
  - path
7720
7760
  - url
7761
+ PropertyHandoffEnum:
7762
+ enum:
7763
+ - ready
7764
+ - blocked
7765
+ - unverified
7766
+ type: string
7767
+ description: |-
7768
+ * `ready` - ready
7769
+ * `blocked` - blocked
7770
+ * `unverified` - unverified
7721
7771
  Proposal:
7722
7772
  type: object
7723
7773
  properties:
@@ -580,7 +580,7 @@ Options:
580
580
  ### current login <email>
581
581
 
582
582
  Sign in with a magic link (and an authenticator code when the account
583
- requires two-factor authentication) and store the auth token.
583
+ requires two-factor authentication) and store the auth token.
584
584
 
585
585
  ### current logout
586
586
 
@@ -694,6 +694,7 @@ Options:
694
694
  - `--limit` - Max projects per page (default 50, max 200)
695
695
  - `--offset` - Number of projects to skip (default 0)
696
696
  - `--q` - Keep only projects whose name contains this text, ignoring case
697
+ - `--readiness` - Filter evidence readiness independently of the existing status filter.
697
698
  - `--status` - Which reviewed projects to keep: 'pending' (default) for the ones asking something of a person, 'clear' for the rest, 'all' for both. A project with no closeout review is absent at every status.
698
699
  - `--workspace` - Workspace UUID
699
700
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.62"
3
+ version = "0.1.63"
4
4
  description = "Command line interface for the Current API, generated from its OpenAPI schema at runtime"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -32,3 +32,16 @@ def test_docs_command_prints_reference(cli, runner):
32
32
  assert result.exit_code == 0, result.output
33
33
  assert "# Current CLI reference" in result.output
34
34
  assert "### current projects list" in result.output
35
+
36
+
37
+ def test_docstring_indentation_is_stable_across_python_versions():
38
+ import click
39
+
40
+ from current_cli.docs import render_docs
41
+
42
+ def reference(help_text):
43
+ group = click.Group("current")
44
+ group.add_command(click.Command("example", help=help_text))
45
+ return render_docs(group)
46
+
47
+ assert reference("First line.\n Continuation.") == reference("First line.\nContinuation.")
File without changes
File without changes