Skip to content

Improve log --export to write CSV files#29

Merged
tom-nash merged 1 commit into
mainfrom
tom-nash/log-export-path
Apr 8, 2026
Merged

Improve log --export to write CSV files#29
tom-nash merged 1 commit into
mainfrom
tom-nash/log-export-path

Conversation

@tom-nash
Copy link
Copy Markdown
Member

@tom-nash tom-nash commented Apr 8, 2026

This changes cordon log --export to take a file path and write CSV output directly to that file instead of requiring --export csv and shell redirection. It updates the flag help text, removes format validation tied to csv, and adds export-path handling with ~/ home-directory expansion plus clear path-related errors. It also adds tests for path resolution, CSV file writing, and ~/ export behavior in cli/cmd/log_test.go. Verified with go test ./cli/cmd.

@tom-nash tom-nash merged commit 5f39547 into main Apr 8, 2026
4 checks passed
@tom-nash tom-nash self-assigned this Apr 8, 2026
@tom-nash tom-nash deleted the tom-nash/log-export-path branch April 10, 2026 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant