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

Initialize new request files from cli #41

Open
kyleect opened this issue Jan 12, 2025 · 0 comments
Open

Initialize new request files from cli #41

kyleect opened this issue Jan 12, 2025 · 0 comments
Labels
enhancement New feature or request scope:clients Reqlang clients

Comments

@kyleect
Copy link
Member

kyleect commented Jan 12, 2025

reqlang create examples/valid/new.reqlang \
    --vars value \
    --envs local, prod \
    --set local value=123 \
    --set prod value=456 \
    --verb POST \
    --target 'https://example.com?env={{@env}}' \
    --header content-type=application/json \
    --body '[1, 2, 3]'

Acceptance Criteria

  • Declare variables using --vars
    • Error on duplicates
  • Declare environments using --envs name1, name2
    • Error on duplicates
    • Error trying to pass default
  • Set environment specific values for variables using --set env_name key=value
    • Error on environment names not defined
  • Set all details of the request
    • --verb
    • --target
    • --header key=value
    • --body value
    • --http version defaults to 1.1
  • Response is out of scope
@kyleect kyleect added enhancement New feature or request scope:clients Reqlang clients labels Jan 12, 2025
@kyleect kyleect changed the title Initialize new request files Initialize new request files from cli Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request scope:clients Reqlang clients
Projects
None yet
Development

No branches or pull requests

1 participant