splunk-cli 0.0.3__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.
Files changed (47) hide show
  1. splunk_cli-0.1.2/.github/actionlint.yaml +2 -0
  2. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/.github/workflows/ci.yml +7 -0
  3. splunk_cli-0.1.2/.github/workflows/live.yml +30 -0
  4. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/.github/workflows/release.yml +7 -5
  5. splunk_cli-0.1.2/CHANGELOG.md +75 -0
  6. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/Cargo.lock +473 -23
  7. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/Cargo.toml +3 -2
  8. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/Makefile +12 -2
  9. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/PKG-INFO +123 -16
  10. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/README.md +121 -14
  11. splunk_cli-0.1.2/docs/compatibility.md +74 -0
  12. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/docs/releases.md +8 -1
  13. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/pyproject.toml +1 -1
  14. splunk_cli-0.1.2/rust-toolchain.toml +4 -0
  15. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/scripts/test-live.sh +5 -1
  16. splunk_cli-0.1.2/scripts/test-tui-pty.py +207 -0
  17. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/src/auth.rs +597 -55
  18. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/src/browser.rs +120 -51
  19. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/src/cli.rs +145 -1
  20. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/src/client.rs +67 -7
  21. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/src/config.rs +114 -4
  22. splunk_cli-0.1.2/src/continuation.rs +72 -0
  23. splunk_cli-0.1.2/src/export.rs +332 -0
  24. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/src/interrupt.rs +4 -1
  25. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/src/lib.rs +3 -0
  26. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/src/main.rs +8 -4
  27. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/src/output.rs +59 -10
  28. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/src/schema.rs +66 -10
  29. splunk_cli-0.1.2/src/tui/demo.rs +67 -0
  30. splunk_cli-0.1.2/src/tui/mod.rs +887 -0
  31. splunk_cli-0.1.2/src/tui/view.rs +697 -0
  32. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/src/workflows.rs +140 -21
  33. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/tests/cli.rs +1068 -4
  34. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/tests/live/Dockerfile +1 -1
  35. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/tests/live/README.md +15 -3
  36. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/tests/live/check.py +54 -0
  37. splunk_cli-0.0.3/CHANGELOG.md +0 -42
  38. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/.dockerignore +0 -0
  39. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/.gitignore +0 -0
  40. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/LICENSE +0 -0
  41. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/prek.toml +0 -0
  42. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/schemas/clispec-v0.3.json +0 -0
  43. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/scripts/score-clispec.py +0 -0
  44. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/src/error.rs +0 -0
  45. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/tests/conformance.rs +0 -0
  46. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/tests/live/entrypoint.sh +0 -0
  47. {splunk_cli-0.0.3 → splunk_cli-0.1.2}/vership.toml +0 -0
@@ -0,0 +1,2 @@
1
+ self-hosted-runner:
2
+ labels: [splunk-live]
@@ -16,6 +16,7 @@ jobs:
16
16
  - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
17
17
  - uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
18
18
  with:
19
+ toolchain: 1.100.0
19
20
  components: rustfmt, clippy
20
21
  - run: make lint
21
22
  test:
@@ -27,8 +28,12 @@ jobs:
27
28
  steps:
28
29
  - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
29
30
  - uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
31
+ with:
32
+ toolchain: 1.100.0
30
33
  - run: cargo test --locked
31
34
  msrv:
35
+ env:
36
+ RUSTUP_TOOLCHAIN: "1.90.0"
32
37
  runs-on: ubuntu-latest
33
38
  steps:
34
39
  - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
@@ -39,6 +44,8 @@ jobs:
39
44
  steps:
40
45
  - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
41
46
  - uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
47
+ with:
48
+ toolchain: 1.100.0
42
49
  - run: cargo install --git https://github.com/rvben/clispec-cli --rev 78a7b645354f1049fc74a0807de2972dcb5e3db5 --locked clispec
43
50
  - run: make conformance
44
51
  all-checks-passed:
@@ -0,0 +1,30 @@
1
+ name: Live Splunk compatibility
2
+ on:
3
+ schedule:
4
+ - cron: '17 4 * * 1'
5
+ workflow_dispatch:
6
+ workflow_call:
7
+ permissions:
8
+ contents: read
9
+ jobs:
10
+ live:
11
+ # Only integrated source can exercise the licensed server images.
12
+ if: >-
13
+ github.repository == 'rvben/splunk-cli' &&
14
+ github.event_name != 'pull_request' &&
15
+ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
16
+ runs-on: ubuntu-24.04
17
+ timeout-minutes: 45
18
+ steps:
19
+ - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
20
+ with:
21
+ fetch-depth: 0
22
+ persist-credentials: false
23
+ - name: Require integrated source
24
+ run: |
25
+ git fetch origin main
26
+ git merge-base --is-ancestor HEAD origin/main
27
+ - name: Run both pinned Splunk versions
28
+ env:
29
+ SPLUNK_ACCEPT_LICENSE: 'yes'
30
+ run: make test-live-matrix
@@ -14,6 +14,9 @@ concurrency:
14
14
  group: release-${{ github.ref }}
15
15
  cancel-in-progress: false
16
16
  jobs:
17
+ live:
18
+ name: Live compatibility gate
19
+ uses: ./.github/workflows/live.yml
17
20
  verify:
18
21
  name: Verify release
19
22
  runs-on: ubuntu-24.04
@@ -21,6 +24,7 @@ jobs:
21
24
  - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
22
25
  - uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
23
26
  with:
27
+ toolchain: 1.100.0
24
28
  components: rustfmt, clippy
25
29
  - run: make check
26
30
  - name: Verify tag matches package version
@@ -47,13 +51,12 @@ jobs:
47
51
  - os: ubuntu-24.04-arm
48
52
  target: aarch64-unknown-linux-gnu
49
53
  manylinux: '2_28'
50
- - os: macos-14
54
+ - os: macos-26
51
55
  target: aarch64-apple-darwin
52
56
  manylinux: auto
53
- - os: macos-14
57
+ - os: macos-26-intel
54
58
  target: x86_64-apple-darwin
55
59
  manylinux: auto
56
- cross: true
57
60
  - os: windows-latest
58
61
  target: x86_64-pc-windows-msvc
59
62
  manylinux: auto
@@ -71,7 +74,6 @@ jobs:
71
74
  - name: Validate wheel metadata
72
75
  run: uvx --from twine==6.2.0 twine check --strict dist/*.whl
73
76
  - name: Smoke test installed wheel
74
- if: ${{ !matrix.cross }}
75
77
  shell: bash
76
78
  run: |
77
79
  uv venv .wheel-smoke
@@ -103,7 +105,7 @@ jobs:
103
105
  if-no-files-found: error
104
106
  publish-pypi:
105
107
  name: Publish to PyPI
106
- needs: [wheels, sdist]
108
+ needs: [wheels, sdist, live]
107
109
  if: ${{ github.ref_type == 'tag' && inputs.dry_run != true }}
108
110
  runs-on: ubuntu-24.04
109
111
  steps:
@@ -0,0 +1,75 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.1.2](https://github.com/rvben/splunk-cli/compare/v0.1.1...v0.1.2) - 2026-11-27
10
+
11
+ ### Fixed
12
+
13
+ - restore release checks on supported hosted runners ([1312b28](https://github.com/rvben/splunk-cli/commit/1312b2824fcfcda9bca3aa20a705a866f0647c50))
14
+ - submit hidden credentials when a paste ends with a line feed ([1d7bb38](https://github.com/rvben/splunk-cli/commit/1d7bb381c712f2895795df63b0c50b708626d476))
15
+
16
+ ## [0.1.1](https://github.com/rvben/splunk-cli/compare/v0.1.0...v0.1.1) - 2026-11-27
17
+
18
+ ### Added
19
+
20
+ - add an interactive SPL workspace and guided sign-in ([0f7627e](https://github.com/rvben/splunk-cli/commit/0f7627e2b0c9676c54686f5105c458503139829f))
21
+
22
+ ## [0.1.0](https://github.com/rvben/splunk-cli/compare/v0.0.3...v0.1.0) - 2026-11-04
23
+
24
+ ### Added
25
+
26
+ - Durable, page-bounded CSV/JSONL file exports with checkpoints, verified resume, and a single CSV header.
27
+ - Parse-only `search check` and credential-redacted `jobs logs` for investigation.
28
+ - Explicit `auth migrate`, deterministic saved-store selection, and unverified token-expiry diagnostics.
29
+ - Credential-preserving profile renaming and individual saved-setting resets.
30
+ - Command-specific help examples, actionable empty states, and display-truncation guidance.
31
+ - A documented 0.1.x compatibility policy for commands, JSON, errors, cursors, and checkpoints.
32
+ - Trusted weekly and release-gating live checks on isolated Husker infrastructure, with pinned Splunk versions and restricted-user coverage.
33
+
34
+ ### Fixed
35
+
36
+ - Bind new continuations to their server, namespace, and ordered field selection.
37
+ - Retry transient safe-read HTTP responses within a bounded budget; never replay dispatches.
38
+ - Clean up browser login on cancellation, including Windows CLI termination, enforce a full sign-in deadline, and keep browser debugging off HTTP proxies.
39
+ - Preserve streaming checkpoint recovery details on interruption and refuse incomplete finalized searches.
40
+ - Preserve logged-out state when stale credentials reappear, while allowing later cleanup.
41
+
42
+ ## [0.0.3](https://github.com/rvben/splunk-cli/compare/v0.0.2...v0.0.3) - 2026-11-04
43
+
44
+ ### Added
45
+
46
+ - Guided `init`, read-only `doctor`, and offline credential diagnostics.
47
+ - Persistent profile selection with `profile list`, `use`, and guarded `remove`.
48
+ - Aligned terminal tables, CSV and JSONL exports, and SPL files or piped stdin.
49
+ - Bounded `jobs wait` / `watch` and multi-page `jobs export` of an existing job.
50
+ - **auth**: add browser SSO login and opt-in file credential store ([0b31305](https://github.com/rvben/splunk-cli/commit/0b313053fc510696b90704c40c6ba825bdec6dff))
51
+
52
+ ### Fixed
53
+
54
+ - Surface sanitized, credential-redacted Splunk warnings even with `--quiet`.
55
+ - Exit quietly when a pipeline consumer closes stdout.
56
+ - Redact encoded Basic credentials in API diagnostics and explain permission failures.
57
+ - Preserve config symlinks, improve CA and usage errors, and handle interrupted output.
58
+ - Correct interactive-login documentation and expand command examples.
59
+ - Keep saved-login diagnostics and profile removal consistent across keyring and file stores.
60
+
61
+ ## [0.0.2](https://github.com/rvben/splunk-cli/compare/v0.0.1...v0.0.2) - 2026-11-03
62
+
63
+ ### Added
64
+
65
+ - **auth**: add interactive login with OS credential storage ([3c03442](https://github.com/rvben/splunk-cli/commit/3c03442c1430e39bb94e4c6f9e97113c99a50f34))
66
+
67
+ ## [0.0.1] - 2026-11-03
68
+
69
+ ### Added
70
+
71
+ - add clispec-compliant Splunk CLI and PyPI packaging
72
+
73
+ ### Fixed
74
+
75
+ - **ci**: install the v0.3 scorer from pinned source ([dc3d4ff](https://github.com/rvben/splunk-cli/commit/dc3d4ff2c42a27a0d0f3f4f9280203832805d717))