-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Implement the exec subcommand for running arbitrary commands with structured logging.
Requirements
- Execute command via
execve(no shell) using--separator - Capture stdout/stderr and print with timestamps
- Optional JSON log output via
--json - Forward the child process exit code
- Support
--workdirfor setting the working directory of the child process - Intended for use with custom images, add a section to usage.md about how to build an image with this as base with a set of commands that can be executed this way, it could be openssl to seed the container with a private key.
- Add an additional docker file and image that builds jq and yq into the image. Call it initium-jyq. Update release.yml
Acceptance Criteria
-
internal/cmd/exec.gowith full implementation -
internal/cmd/exec_test.gowith tests for: success, failure exit codes,--parsing, stdout/stderr capture, JSON logging - Registered in
cmd/initium/main.go -
docs/usage.mdupdated with exec section -
CHANGELOG.mdupdated - All tests pass
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request