RedirectableCmd

A pending echo awaiting a redirect target.

Usage

Source

RedirectableCmd()

Returned by RunBuilder.echo. Apply >> to append to a file or > to truncate it, with the path on the right. The echoed text is quoted for you.

Parameter Attributes

builder: RunBuilder
text: str

Example

r.echo(“pillow>=11”) >> “/root/overrides.txt” # append r.echo(“numpy<3”) > “/etc/pip/constraint.txt” # truncate