Open michaelortmann opened 1 month ago
Very nice addition!
info commands is all C implemented functions and you filter them by excluding the ones with ":" in their name to hide the implicit bind functions *raw:gotjoin
etc.?
If that's true, the "official" way would be to hide the ones starting with *
.
info procs would be all Tcl implemented functions, not sure if we want to include that or not.
At first i had it filtered for *
, but then i saw remaining :
in function names. so, i switched to that, which excludes a superset compared to the set of functions starting with *
for it didnt occur to me, that :
is an allowed char in a function name for python top be able to call it. so i was fast filtering for :
here. maybe too fast? if those funcs are callable, we could switch back to *
in beginning, yeah.
regarding whichn functions exactly to include/excude: this PR aimed to be very simple. few lines of code enabling a new feature. you are free to take it from here and go the extra mile :)
Found by: (thommey or vanosg, asthere was a TODO comment i picked up) Patch by: michaelortmann Fixes:
One-line summary: Add dir(eggdrop.tcl)
Additional description (if needed):
Test cases demonstrating functionality (if applicable): Before:
After: