Skip to content

Why pass params via stdin instead of via cli args ? #118

@noelzubin

Description

@noelzubin

2797316#diff-cd2cce8647efdde8ee95787dde1150aa661e26dbe52f56fa0e5257ec8e82ece2R74

I was wondering why use stdin to pass parameters instead of args itself.
eg: Either

 hackernews.ts browse '{"topic": "rust"}'

or use

hackernews.ts browse --topic "rust"

The second approach also resembles what sunbeam run command expects.
Passing them in the args itself makes them easier to test, or use the commands standalone(without sunbeam).
Are there any advantages/usecase to use stdin to take in params ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions