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

[Request]: hab dump add verbosity level that suppresses complex alias info #54

Open
MHendricks opened this issue Jun 20, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@MHendricks
Copy link
Member

Description

Move the current level 3 verbosity -vvv output to level 4 verbosity. It is useful, but takes up a lot of vertical screen space. Often we don't need to know about the env var part of complex aliases.

$ hab dump app/usd/py/39 -vvv
Dump of FlatConfig('app/usd/py/39')
-------------------------------------------------------------------
name:  39
uri:  app/usd/py/39
aliases:  blurdev:  cmd:  C:/blur/lib/py39qt5152/20213/python/Scripts/blurdev.exe
                             environment:  PATH:  {PATH!e}
                                                           C:/usd/usd-py39/22.03.1/usd/bin
                                                           C:/usd/usd-py39/22.03.1/usd/lib
                                           PXR_USD_WINDOWS_DLL_PATH:  C:/usd/usd-py39/22.03.1/usd/bin
                                                                      C:/usd/usd-py39/22.03.1/usd/lib
                                           PYTHONPATH:  C:/usd/usd-py39/22.03.1/usd/lib/python
                                                        c:/blur/lib/py39qt5152/20213/python/Lib/site-packages
          blurdevw:  cmd:  C:/blur/lib/py39qt5152/20213/python/Scripts/blurdevw.exe
                     environment:  PATH:  {PATH!e}
                                                   C:/usd/usd-py39/22.03.1/usd/bin
                                                   C:/usd/usd-py39/22.03.1/usd/lib
                                   PXR_USD_WINDOWS_DLL_PATH:  C:/usd/usd-py39/22.03.1/usd/bin
                                                              C:/usd/usd-py39/22.03.1/usd/lib
                                   PYTHONPATH:  C:/usd/usd-py39/22.03.1/usd/lib/python
                                                c:/blur/lib/py39qt5152/20213/python/Lib/site-packages
...

This goes on for quite a few aliases, making the dump output hard to parse.

Solution

One way to solve this is to put a * next to the alias name if its a complex alias with text suppressed. This will still show the cmd, but won't show the other info.

$ hab dump app/usd/py/39 -vvv
Dump of FlatConfig('app/usd/py/39')
-------------------------------------------------------------------
name:  39
uri:  app/usd/py/39
aliases:  blurdev*:  cmd:  C:/blur/lib/py39qt5152/20213/python/Scripts/blurdev.exe
          blurdevw*:  cmd:  C:/blur/lib/py39qt5152/20213/python/Scripts/blurdevw.exe
...

Using hab dump app/usd/py/39 -vvvv would return the current output for -vvv.

Additional Context

No response

@MHendricks MHendricks added the enhancement New feature or request label Jun 20, 2023
@MHendricks
Copy link
Member Author

It also would be nice to add some filter features so you can target specific aliases, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant