Skip to content

Add support for reading whole input as a string in text subcommand #412

@buty4649

Description

@buty4649

textモードで入力を一括で読み込むオプションをつけたい。-s(--slurp)ではレコードはArrayになるが、Stringとして扱いたい。
ユースケースとしてはto_base64したいときに、joinするのを避けない感じ

# 今のバージョンではjoinしないといけない
$ rf -s 'join("\n").to_base64

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