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.
@@ -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)