Add custom formatting to rbt status
Review Request #9153 — Created Aug. 28, 2017 and submitted
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
andrbt post -r
.
Posted and update to this change using said completion.
Description | From | Last Updated |
---|---|---|
W391 blank line at end of file |
reviewbot | |
Period at the end. That said, I don't know that we need docs for this inner function. Maybe we could … |
david | |
Instead of setting this as a variable and then printing, how about just print(format % info, end=end)? |
david | |
F841 local variable 'end' is assigned to but never used |
reviewbot |
- Testing Done:
-
~ Used this with a fish completion for
rbt land -r
andrbt post -r
.~ Used this with a fish completion for
rbt land -r
andrbt post -r
.+ Posted and update to this change using said completion. - Commit:
-
8a67be5d5dc946dc5e3bd5c8f0aa91038b5909f5d61b401d2ba152fc9f186cd5483efe672dbf1b3e
- Diff:
-
Revision 2 (+79 -20)
Checks run (2 succeeded)
- Change Summary:
-
Addressed David's issues
- Commit:
-
d61b401d2ba152fc9f186cd5483efe672dbf1b3e22e6aec30c4fb912dc0d3d02b3ff8c3a0708870d
- Diff:
-
Revision 3 (+68 -20)
- Commit:
-
22e6aec30c4fb912dc0d3d02b3ff8c3a0708870d0d8826903c49435f46df9760a18076a4f61adfac
- Diff:
-
Revision 4 (+68 -20)