Skip to content

v0.7.1

Latest
Compare
Choose a tag to compare
@lxxxvi lxxxvi released this 12 Mar 20:33
aa1cd1b

Summary

Release v0.7.x adds new options regarding in- and output streams.

Output

The --output=[stream or filepath] option has been introduced.

Examples

ruboclean --output=/absolute/path.yml
ruboclean --output=relative/path.yml    # relative to current working directory
ruboclean --output=STDOUT               # does not write anything to a file

Input

It's now possible to read from STDIN using the --stdin option:

echo "SomeConfig: True" | ruboclean --stdin

Using STDIN will automatically set the output to STDOUT. You can use the --output flag to override this.

Also, if you use STDIN, your current working directory should be the root directory of your project, so that the
cleanup of unused paths/references (see --preserve-paths) works properly. If your current working directory
is something else, you have to explicitly provide the project's root directory using the input argument.

echo "SomeConfig: True" | ruboclean /path/to/the/project/directory --stdin