feat: add file input flag #12
Reference in New Issue
Block a user
Delete Branch "feat/file-input-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 supported inline string expressions and stdin input.
This PR adds support for reading lambda expressions from files using the
-fflag.This makes it easier to work with larger programs stored in files.
Changes:
FileSourcetype tointernal/config/source.gofor reading from file paths.-fflag to CLI argument parser with validation to prevent conflicting inputs.run,profile,explain) to use-fflag instead of stdin redirection.Decisions
The
-fflag takes precedence over positional arguments.If both are specified, an error is returned to avoid ambiguity.
Benefits
grep -f,awk -f).Checklist
<type>/<description>).