cli icon indicating copy to clipboard operation
cli copied to clipboard

Add `--wide` flag to `phylum project list`

Open peterjmorgan opened this issue 3 years ago • 1 comments

Overview

Add a --wide command-line flag to phylum project list to make it easier to read long project names.

Consider increasing the default width of the project name column

Associated User Story

-- Es gibt nicht

peterjmorgan avatar Jul 09 '22 23:07 peterjmorgan

I'm not sure if a --wide option is the best solution here. we already have alternative output options which show the full project name (--json), but I'd imagine the goal would be to have something in-between the super nice table and the raw json output.

My main issue with a --wide flag is that it's kinda subjective. Of course we could just take the longest project name as table cell width but that has a very high likelihood of being bigger than the terminal, at which point a table will look terrible.

I think maybe rather than just going for a wider version of the current output, we could have something like --format=oneline in git, say --format=simple where we list project ID and name without any advanced formatting. We could also list just the project name since I doubt people care much about the ID. This could also then provide --format=json as an alias for --json.

cd-work avatar Jul 11 '22 10:07 cd-work