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

Issue #582: Simplify the options required in httpcli #600

Merged

Conversation

CherfaElyes
Copy link
Contributor

  • Simplified httpcli options by adding two parameters positionalMethod and positionalUrl which allow to create CLI requests without using --method and --url.
  • Handled all the possible cases when the user specifies both positional parameters and options.
  • Tested on MetricsHub.

Tests

Use cases

image

1

image

2

image

3

image

4

image

5

image

6

image

7

image

8

image

9

image

10

image

11

image

* Simplified httpcli options by adding two parameters `positionalMethod` and `positionalUrl` which allow to create CLI requests without using `--method` and `--url`.
* Handled all the possible cases when the user specifies both positional parameters and options.
* Tested on MetricsHub.
@CherfaElyes CherfaElyes added this to the 1.0.02 milestone Feb 18, 2025
@CherfaElyes CherfaElyes self-assigned this Feb 18, 2025
@CherfaElyes CherfaElyes linked an issue Feb 18, 2025 that may be closed by this pull request
Copy link
Member

@bertysentry bertysentry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

* Remplacer le label de `positionalMethod` par `method`.
* Optimiser la méthode `resolveMethod()`.
* Tester sur metricshub.
@NassimBtk NassimBtk merged commit 1ac4321 into main Feb 18, 2025
2 checks passed
@NassimBtk NassimBtk deleted the feature/issue-582-simplify-the-options-required-in-httpcli branch February 18, 2025 13:42
@NassimBtk NassimBtk removed this from the 1.0.02 milestone Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify the options required in httpcli
3 participants