• 
      

    Add custom formatting to rbt status

    Review Request #9153 — Created Aug. 28, 2017 and submitted

    Information

    RBTools
    master
    0d88269...

    Reviewers

    The rbt status command now supports two new flags:

    • --format for specifying a custom output format instead of a
      tabulated format. This is useful for custom script integration with
      the command.
    • -z which makes the custom-formatted lines nul-terminated.

    Used this with a fish completion for rbt land -r and rbt post -r.
    Posted and update to this change using said completion.

    Description From Last Updated

    W391 blank line at end of file

    reviewbotreviewbot

    Period at the end. That said, I don't know that we need docs for this inner function. Maybe we could …

    daviddavid

    Instead of setting this as a variable and then printing, how about just print(format % info, end=end)?

    daviddavid

    F841 local variable 'end' is assigned to but never used

    reviewbotreviewbot
    Checks run (1 failed, 1 succeeded)
    flake8 failed.
    JSHint passed.

    flake8

    brennie
    david
    1. 
        
    2. rbtools/commands/status.py (Diff revision 2)
       
       
      Show all issues

      Period at the end. That said, I don't know that we need docs for this inner function.

      Maybe we could even use a lambda and stick it inline?

    3. rbtools/commands/status.py (Diff revision 2)
       
       
       
      Show all issues

      Instead of setting this as a variable and then printing, how about just print(format % info, end=end)?

    4. 
        
    brennie
    Review request changed
    Change Summary:

    Addressed David's issues

    Commit:
    d61b401d2ba152fc9f186cd5483efe672dbf1b3e
    22e6aec30c4fb912dc0d3d02b3ff8c3a0708870d

    Checks run (1 failed, 1 succeeded)

    flake8 failed.
    JSHint passed.

    flake8

    brennie
    david
    1. Ship It!
    2. 
        
    brennie
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (1a13ed8)