sediment-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.
- sediment_cli/__init__.py +22 -0
- sediment_cli/attribution.py +3881 -0
- sediment_cli/cli.py +1922 -0
- sediment_cli/client.py +323 -0
- sediment_cli/delivery.py +1334 -0
- sediment_cli/local_postgres.py +337 -0
- sediment_cli/transcript.py +1764 -0
- sediment_cli/ui.py +123 -0
- sediment_cli-0.1.0.dist-info/METADATA +16 -0
- sediment_cli-0.1.0.dist-info/RECORD +13 -0
- sediment_cli-0.1.0.dist-info/WHEEL +4 -0
- sediment_cli-0.1.0.dist-info/entry_points.txt +2 -0
- sediment_cli-0.1.0.dist-info/licenses/LICENSE +661 -0
sediment_cli/__init__.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
2
|
+
"""The sediment CLI — the top-level `cli/` workspace member.
|
|
3
|
+
|
|
4
|
+
Remote verbs speak HTTP through `.client`; operator verbs run where the
|
|
5
|
+
facts live (ADR 0001); `.attribution` is the stdlib-only stamper. The
|
|
6
|
+
version is single-sourced from ``sediment_api`` (the string ``/v1/me``
|
|
7
|
+
and ``/health`` report)."""
|
|
8
|
+
|
|
9
|
+
from sediment_api import __version__ as __version__
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def main(argv: list[str] | None = None) -> int:
|
|
13
|
+
"""Refuse unsupported capture installation before importing POSIX operators."""
|
|
14
|
+
import os
|
|
15
|
+
import sys
|
|
16
|
+
|
|
17
|
+
args = sys.argv[1:] if argv is None else argv
|
|
18
|
+
if os.name == "nt" and args[:1] == ["install"]:
|
|
19
|
+
from .attribution import main as run
|
|
20
|
+
else:
|
|
21
|
+
from .cli import main as run
|
|
22
|
+
return run(args)
|