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

Provide example using CLI Shorthand with API short name #243

Open
aaronkjones opened this issue Mar 26, 2024 · 1 comment
Open

Provide example using CLI Shorthand with API short name #243

aaronkjones opened this issue Mar 26, 2024 · 1 comment

Comments

@aaronkjones
Copy link

Description

I am unable to get CLI Shorthand to work when using an API short name.

For example, given the API short name example.

restish PUT example create-repo org: myorg1, repo: myrepo1, description: a nice one

Expected result

Request payload that looks like

{"org":"myorg1","repo":"myrepo1","description":"a nice one"}

Actual result

{"create-repo org":"myorg1","repo":"myrepo1","description":"a nice one"}

Environment

  • Ubuntu 22.04.4 LTS
  • zsh 5.8.1 (x86_64-ubuntu-linux-gnu)
  • restish version 0.20.0
@aaronkjones
Copy link
Author

I did find that using the j executable, piped to restish, serves my purpose.

j 'org: myorg1, repo: myrepo1, description: a nice one' | restish example create-repo

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

No branches or pull requests

1 participant