feat: add output flag #13
Reference in New Issue
Block a user
Delete Branch "feat/output-flag"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The lambda CLI previously only wrote output to stdout using shell redirection.
This PR adds support for writing results to files using the
-oflag.This is implemented using a new
Destinationinterface that mirrors the existingSourcepattern.Changes:
Destinationinterface withStdoutDestinationandFileDestinationimplementations.-oflag to CLI argument parser for output file specification.Configto useDestinationinstead of direct output handling.Destination.Write()for result output.run,profile,explain) to use-oflag instead of shell redirection.Decisions
The
-oflag defaults to stdout when not specified or when set to-.This maintains backward compatibility while providing explicit file output capability.
Benefits
Sourceinterface for input.Checklist
<type>/<description>).