Skip to content

fix(cli): support stdin via dash convention in import command#21

Merged
echobt merged 1 commit intomasterfrom
fix/bounty-issue-1574
Jan 26, 2026
Merged

fix(cli): support stdin via dash convention in import command#21
echobt merged 1 commit intomasterfrom
fix/bounty-issue-1574

Conversation

@echobt
Copy link
Contributor

@echobt echobt commented Jan 26, 2026

Summary

Adds support for the standard Unix convention of using "-" (dash) to read from stdin in the cortex import command.

Changes

  • Added check for "-" as source in import command to read from stdin
  • Updated help text to document the stdin option

Testing

  • Build verified with cargo build
  • Compilation check passed with cargo check

Related

Fixes PlatformNetwork/bounty-challenge#1574

Fixes bounty issue #1574

The import command now recognizes the standard Unix convention of using
"-" (dash) as a filename to read from stdin. Previously, using
"cortex import -" would attempt to read from a file literally named
"-" which would fail. Now it properly reads JSON content from stdin.
@echobt echobt force-pushed the fix/bounty-issue-1574 branch from fbd4dbc to b5f4507 Compare January 26, 2026 17:05
@echobt echobt merged commit 73e4dee into master Jan 26, 2026
4 of 12 checks passed
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

Successfully merging this pull request may close these issues.

[BUG] cortex import - doesn't recognize stdin

2 participants