Expose `ExecuteDescribeComponent` function in `pkg` to make it publicly accessible from other Go programs @aknysh (#801)
what
- Expose
ExecuteDescribeComponent
function inpkg
to make it publicly accessible from other Go programs
why
-
in Go, packages placed inside an
internal
folder are considered private, meaning they can only be accessed within the same module or project and cannot be imported by other external projects, effectively acting as a way to hide implementation details and control the public API surface of the code. Everything inpkg
is public -
The
ExecuteDescribeComponent
function will be used in otherGo
modules to programmatically executeatmos describe component <component> -s <stack>
, similar toExecuteDescribeStacks
(which is already public)