Skip to content

Read from stdin #92

@swarna1101

Description

@swarna1101

Transforms the CLI into a true Unix tool, enabling shell scripting. Users can pipe logs, files, or any command output directly into publish.

Details: Detect when --message is not provided and read from os.Stdin. Support both --message and stdin (stdin takes precedence if both provided). This enables: tail -f logs.txt | mump2p publish --topic=logs, cat data.json | mump2p publish --topic=data --grpc, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions