Skip to content

Add trim option to command chains #153

Closed

Description

@LucasPickering

Add a field trim to the command chain source, which trims whitespace from the ends of the output string. It's pretty common to have shell commands that include a useless trailing newline, in which case you have to do something like command: [sh, -c, "<cmd> | tr -d '\n'"]

Worth considering: instead of just a boolean, should just be an enum? none, start, end, both?

Implementation

Activity

  1. added
    qolImprovements that make usage smoother, without introducing new functionality
    on Apr 16, 2024
  2. Sammo98 commented on Apr 29, 2024

    @Sammo98
    Contributor

    @LucasPickering I'd be keen to pick this one up as well, unless anyone else had plans to?

  3. added a commit that references this issue on May 8, 2024
    14122fd
  4. added a commit that references this issue on May 8, 2024
    1496044
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomersqolImprovements that make usage smoother, without introducing new functionality

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions