-
Notifications
You must be signed in to change notification settings - Fork 69
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
allow setting maximum column width (feature req) #253
Comments
I agree it's not optimal but not something I have an easy fix for. The tabulate library used to print don't have width/formatting built-in. Might need to move to something different to accommodate. Ideas welcome! |
Actually, a hacky fix could be to do an abrupt line cut similar to your cut example and expose as a flag option. |
Probably should be a separate issue but would be nice to maybe use an env var to save some default settings like |
Or a hack that fixes everything without patching the source? :)
|
:) do open seperste issue for sorting. That one is fairly trivial to do. Support for environment variables and a config file I want too. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
- If specified --columns-width or HASS_COL_WIDTH env var truncates column values - Uses default const.COLUMNS_WIDTH_STR - Fixes home-assistant-ecosystem#253
- If specified --columns-width or HASS_COL_WIDTH env var truncates column values - Uses default const.COLUMNS_WIDTH_STR - Fixes home-assistant-ecosystem#253
- If specified --columns-width or HASS_COL_WIDTH env var truncates column values - Uses default const.COLUMNS_WIDTH_STR - Fixes home-assistant-ecosystem#253
- If specified --columns-width or HASS_COL_WIDTH env var truncates column values - Uses default const.COLUMNS_WIDTH_STR - Fixes home-assistant-ecosystem#253
It would be nice to disable the wrapping of the output when using commands such as
hass-cli state list
. An option like "max-width" or something similar would be nice. I tried a bunch of the "table-format" options but couldn't find anything to limit the width of the columns and prevent wrapping.The main reason for this is the 'state list' output is hard to read with the wrapping.
I suppose I could do something like :
hass-cli state list | cut -c -170
, but that's too much typing :)The text was updated successfully, but these errors were encountered: