wcurl: add --save option set and .wcurlrc to store #82
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add
--saveoption set for reusable curl configurationsThis PR adds a new feature set to save and reuse curl option combinations,
making it easier to work with frequently used curl configurations. Users can
save complex option sets with memorable names instead of remembering
lengthy command-line arguments. The feature also supports parameter
expansion, allowing saved configurations to accept dynamic values like
URLs and filenames at runtime.
New Options
--save-call=NAME:OPTIONS- Save curl options to~/.wcurlrcwith amemorable name
-r, --run-save=NAME- Run a saved curl configuration--list-save- List all saved configurations--rm-save=NAME- Remove a saved configurationKey Features
Parameter Expansion:
Basic Usage:
List Saved Configurations:
Remove Saved Configuration
Security
mktempTesting
Documentation
This feature allows for complex option combinations to be reused, and addresses
the need for users who frequently use the same curl option combinations,
reducing command-line typing and potential errors while maintaining wcurl's
simplicity.