Skip to content
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

Support --columns 0 which disables column limiting #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ajakk
Copy link

@ajakk ajakk commented May 21, 2020

Setting the columns to "unlimited" can be necessary when piping the output of bugz:

pybugz $ ./lbugz search pybugz
 * Info: Using [Gentoo] (https://bugs.gentoo.org/xmlrpc.cgi)
 * Info: Searching for bugs meeting the following criteria:
 * Info:    status               = ['CONFIRMED', 'IN_PROGRESS', 'UNCONFIRMED']
 * Info:    summary              = ['pybugz']
479422 williamh             www-client/pybugz needs templates for new bugs
604826 williamh             www-client/pybugz - bugz search -C Stabilization -C Keywording: UnicodeEncodeError: 'ascii' codec can't encode character '\u2008' in position 55: ordinal not in range(128)
 * Info: 2 bug(s) found.
pybugz $ ./lbugz search pybugz | cat -
 * Info: Using [Gentoo] (https://bugs.gentoo.org/xmlrpc.cgi)
 * Info: Searching for bugs meeting the following criteria:
 * Info:    status               = ['CONFIRMED', 'IN_PROGRESS', 'UNCONFIRMED']
 * Info:    summary              = ['pybugz']
479422 williamh             www-client/pybugz needs templates for new bugs
604826 williamh             www-client/pybugz - bugz search -C Stabilization -C
 * Info: 2 bug(s) found.
pybugz $ ./lbugz --columns 0 search pybugz | cat -
 * Info: Using [Gentoo] (https://bugs.gentoo.org/xmlrpc.cgi)
 * Info: Searching for bugs meeting the following criteria:
 * Info:    status               = ['CONFIRMED', 'IN_PROGRESS', 'UNCONFIRMED']
 * Info:    summary              = ['pybugz']
479422 williamh             www-client/pybugz needs templates for new bugs
604826 williamh             www-client/pybugz - bugz search -C Stabilization -C Keywording: UnicodeEncodeError: 'ascii' codec can't encode character '\u2008' in position 55: ordinal not in range(128)
 * Info: 2 bug(s) found.

The lack of this feature appears when piping bugz output, which produces
unexpected results even without specifying a column limit.

Signed-off-by: John Helmert III <jchelmertt3@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant