Include an interactive mode (-i/--interactive) that doesn't exit, and instead gives a prompt to the user to dynamically collapse or minimise hierarchy points. For example:
top
├── mod0
│ ├── mod3
│ │ └── mod4
│ └── mod1
│ └── mod3
│ └── mod4
├── mod1
│ └── mod3
│ └── mod4
└── mod2
└── mod1
└── mod3
└── mod4
> minimise mod3
The minimise mod3 command would result in the following hierarchy
top
├── mod0
│ ├── mod3
│ └── mod1
│ └── mod3
├── mod1
│ └── mod3
└── mod2
└── mod1
└── mod3
>
Could also include expand all and minimise all commands and a whole host of interactive commands to make verilogtree responsive.
This mode would result in the same view as given by less where j/k are used to scroll up and down the console, could maybe even use ncurses if you wanted to go completely over the top.
Include an interactive mode (
-i/--interactive) that doesn't exit, and instead gives a prompt to the user to dynamically collapse or minimise hierarchy points. For example:The
minimise mod3command would result in the following hierarchyCould also include
expand allandminimise allcommands and a whole host of interactive commands to make verilogtree responsive.This mode would result in the same view as given by
lesswhere j/k are used to scroll up and down the console, could maybe even usencursesif you wanted to go completely over the top.