Allow reading from stdin (similar to local `mate`)

This change provides same functionality like local `mate` tool for reading from stdin, either when stdin is not a TTY or `-` input file is specified.