wcurl: add --save option set and .wcurlrc to store#82
Closed
wcurl: add --save option set and .wcurlrc to store#82
Conversation
Collaborator
|
Thank you for the PR. I don't think we should add config handling to wcurl as a shell script due to its complexity, this should be reserved for a compiled version of wcurl (iff we decide the we should have this feature). Today you can already make use of curl's config files by using the option Does this cover your use case? |
Author
Yes. Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.