Skip to content

Allow input from stdin #19

@johnbillion

Description

@johnbillion

It's not possible to pipe a string of PHP directly into wp eval. This doesn't work:

echo 'echo phpversion();' | wp eval

You need to use xargs which means working with quote marks is difficult.

echo 'echo phpversion();' | xargs -I {}  wp eval {}

It would be great if wp eval accepted input from stdin.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions