CLI returns a CLI root command to build release packages.
getTargets is a function that gets run in the Exec function of commands that
need to know the target list. Its execution is deferred in this way to allow
customization of command FlagSets with flags that influence the target list.