Skip to content

Read from stdin #92

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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