-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to ignore line and print as is #4
Comments
Hi Lukas... I'll try to look into this issue and understand what you need. Thank you in advance for your contribution ☺ |
Hi @LukasWillin, Do you think you could update your fork and make a PR? Sorry for the delay but i was caught up with a lot of things. 😃 |
Also, could you include a separate file in the |
Hi Luca Sry for the late response! I will do so this afternoon. |
Ty! 😄 |
…nterpreting it as column
@LukeSavefrogs |
Thank you! I'll take a look 😄 |
I stopped here by chance.
Then only lines which does not match the pattern BTW, I also have a |
I'll add this project to the list of similar projects. Thank you for sharing 🎉 |
…ojects See kaz-utashiro's comment on issue #4
…--ignore-line-prefix option
…refix (+ tests)
Hey Luca
So I required a Solution to be able to print tables with same column widths but interspersed with user messages or titles because I am using the
column
command to build some of the CLI interfaces to display system status etc.I already have a working implementation but I am not sure if you even want to support this in the scope of this project Because well... it's quite a niche use case I would assume.
So I would like to discuss it first and clarify the use case.
What it would achieve
Parameter
Function supports an additional parameter which accepts a prefix-string
-i | --ignore-line-prefix
.Example: Given argument
-i '\i'
prefixed lines with\i
will be ignored and not treated as columns and printed as is.Per Line from stdin
-i
do not use it to align columns and skip it.-i
print only the sub-string starting from ignore-line-prefix's lengthA table could be something like the following where sections are separated by titles or messages but columns for all sections are aligned the same.
Let me know what you think and if I should open a PR for you to review.
Cheers :)
Lukas
The text was updated successfully, but these errors were encountered: