Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added "@file.txt" style inclusion of files for CLI args #452

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

jsoverson
Copy link
Contributor

@jsoverson jsoverson commented Oct 17, 2023

This PR adds the ability to include raw files as values to CLI arguments with the curl-like syntax @file-to-include.txt, e.g.:

$ wick invoke candle_ml/yolo:0.0.2 detect [email protected] -- [email protected]

The data is processed the same way as if it were parsed as a CLI argument value with the one exception being: if the destination type is bytes, then the file is read as bytes and encoded to wick-style base64 bytes.

@jsoverson jsoverson merged commit 0cdd79d into main Oct 17, 2023
5 checks passed
@jsoverson jsoverson deleted the cli-at-include branch October 17, 2023 17:37
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.

2 participants