Why Internal/Hidden Functions? #7403
-
The source code for dbatools is available for anyone to download and use, but not all functions are exported. What is the point of having internal/hidden functions in the case where source code is available to everyone? BACKGROUND: I have a project where Find-DbaLoginInGroup got me like 95% of the way there but I needed it to do one more thing, so I thought I would just copy the function code into my own function, add my customization, and as long as I had dbatools installed, it would work. (I did add a suggestion for this specific feature here: #7402) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
if you import the psm1 file you get pretty much everything. That being said, all code gets used... "hidden" pieces are usually reused withing the public functions, which are the only ones with tested/approved/granted "entry-points"/"interfaces" dbatools exposes. |
Beta Was this translation helpful? Give feedback.
-
Parameters or functionality of internal commands could change without notice. |
Beta Was this translation helpful? Give feedback.
Parameters or functionality of internal commands could change without notice.
But there are indeed some internal function I would like to have exported so that I can use them myself.