• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

diranged / oz / 21635736188
36%

Build:
DEFAULT BRANCH: main
Ran 03 Feb 2026 03:17PM UTC
Jobs 1
Files 83
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Feb 2026 03:00PM UTC coverage: 36.051% (+1.3%) from 34.78%
21635736188

push

github

web-flow
feat(cli): add JSON/YAML output support to ozctl create commands (#422)

## Summary
Add `-o/--output` flag to ozctl commands for JSON/YAML output support.

**No breaking changes** - defaults preserve existing behavior.

### `create podaccessrequest` / `create execaccessrequest`
| Format | Progress Output | Final Output |
|--------|-----------------|--------------|
| `-o text` (default) | Shows progress | Human-readable success message
|
| `-o json` | Silent | JSON of K8s resource |
| `-o yaml` | Silent | YAML of K8s resource |

### `get`
| Format | Output |
|--------|--------|
| `-o table` (default) | Table format (original behavior) |
| `-o json` | JSON of K8s resource |
| `-o yaml` | YAML of K8s resource |

## Usage
```bash
# Create with default text output (original behavior)
ozctl create podaccessrequest frontend-shell -n monolith

# Create with JSON output (silent, pipeable)
ozctl create podaccessrequest frontend-shell -n monolith -o json | jq .

# Create with YAML output
ozctl create podaccessrequest frontend-shell -n monolith -o yaml

# Get with JSON output
ozctl get podaccessrequest dennis-xjrmj -n monolith -o json

# Get with YAML output
ozctl get podaccessrequest dennis-xjrmj -n monolith -o yaml
```

## Test plan
- [x] Unit tests for `printOutput` function covering all output formats
- [x] Tests for both PodAccessRequest and ExecAccessRequest types
- [ ] Manual testing with a live cluster

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>

17 of 73 new or added lines in 4 files covered. (23.29%)

3 existing lines in 1 file now uncovered.

1039 of 2882 relevant lines covered (36.05%)

1.58 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
0.0
0.0% internal/cmd/ozctl/cmd/verify_template.go
25
15.29
15.29% internal/cmd/ozctl/cmd/create_request.go
26
10.17
10.17% internal/cmd/ozctl/cmd/get.go

Uncovered Existing Lines

Lines Coverage ∆ File
3
15.29
15.29% internal/cmd/ozctl/cmd/create_request.go
Jobs
ID Job ID Ran Files Coverage
1 21635736188.1 03 Feb 2026 03:17PM UTC 83
36.05
GitHub Action Run
Source Files on build 21635736188
  • Tree
  • List 83
  • Changed 7
  • Source Changed 4
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21635736188
  • 532805fe on github
  • Prev Build on main (#19521559924)
  • Next Build on main (#21639549906)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc