Skip to content

results output suggestion #4

Open
@gilcot

Description

@gilcot

Hello,

While in phpipam shell like, It's better to display the get 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 it vi, some other to less -S, some may prefer pg -f or just more -f witch is always the-facto fallback when the environnement variable is empty

While 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 like cut and so.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions