Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

feat: --body supports reading from STDIN #23

Merged
merged 7 commits into from
Jan 26, 2024
Merged

feat: --body supports reading from STDIN #23

merged 7 commits into from
Jan 26, 2024

Conversation

cristiand391
Copy link
Owner

What does this PR do?

  • bump deps
  • make org api not follow redirects by default (use --include flag to see the Location header)
  • org api --body - will read the body from stdin

If you do `flag.allowStdin: true` then oclif will read from stdin for
you if the value is `-`, so there's no way to know if the flag value
came from stdin or the user specified a file path (here we need to read
the file).

I don't like having another specific flag just to read from stdin so I
made this a string flag and handle reading from stdin/file in
`flag.parse`.
@cristiand391 cristiand391 changed the title chore: bump deps feat: --body supports reading from STDIN Jan 26, 2024
@cristiand391 cristiand391 merged commit 06ef90d into main Jan 26, 2024
7 checks passed
@cristiand391 cristiand391 deleted the cd/bump-deps branch January 26, 2024 00:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant