-
Notifications
You must be signed in to change notification settings - Fork 0
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
results output suggestion #4
Comments
I like this idea a lot. I'm not sure how I'd implement this in a portable cross-platform way (or if it's even possible), but the idea intruiges me. Let me mull it over for a bit. |
Hello, Thanks for the input.
Regards. |
Hello again, What I think I'm going to do for the display of data is to have my program check: If it sees that it's being output to a tty like stdout, output stays as-is. |
thoughts? |
Hello, You made a very good suggestion: people do like having nice formating (like now) and often have a wider screen/terminal (mine is sixty columns, what make some long lines mess.) It's a good agreement if you that's possible (I didn't know it's possible to detect if the output is being piped or being redirected) Thanks. |
Hello,
While in
phpipam
shell like, It's better to display theget
command results via the system pager... (see similare discussion with use of Popen or pydoc with fallback to print etc.) It's usefull when there are many results (often 2 or 3 pages) but also for people that don't want folding.For system page, it's better to use the environment variable
$PAGER
(some one may set itvi
, some other toless -S
, some may preferpg -f
or justmore -f
witch is always the-facto fallback when the environnement variable is emptyWhile using a direct call, e.g.
phpipam -u <user> -p <pass> get all <keyword>
, It's better not have column aligned outputs but fields separed by tabulation (or another separator if defined in configuration file) This makes it easy to pipe to filters likecut
and so.Thanks.
The text was updated successfully, but these errors were encountered: