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

[Feature] cli invoke function support parameters #842

Closed
1 of 2 tasks
skyoct opened this issue Mar 2, 2023 · 1 comment
Closed
1 of 2 tasks

[Feature] cli invoke function support parameters #842

skyoct opened this issue Mar 2, 2023 · 1 comment
Labels
cli feature New feature or request

Comments

@skyoct
Copy link
Collaborator

skyoct commented Mar 2, 2023

Search before asking

  • I had searched in the issues and found no similar issues.

Feature Request

cli invoke function support parameters

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@skyoct skyoct added the feature New feature or request label Mar 2, 2023
@genie88
Copy link
Contributor

genie88 commented Mar 10, 2023

I plan to add http method ,query params, body and custom header when invoke functions , example usage may like

Usage: main func exec [options]

exec function

Options:
-l --log print log
-X --method request method, eg -X HEAD/GET/POST/PUT/DELETE
-H --header request headers, eg -H '{"Content-Type": "application/json"}'
-q --query request query params, eg -q "key1=val1&key2=val2"
-d --data request body data, eg -d '{"key1": "val1"}'
-r --requestId print requestId (default: false)
-h, --help display help for command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants