Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRoot ¶
func NewRoot(deps Dependencies) *cobra.Command
NewRoot constructs the complete command tree without package globals.
func NormalizeError ¶
NormalizeError maps domain and HTTP errors to the public CLI exit contract.
Types ¶
type Dependencies ¶
type Dependencies struct {
In io.Reader
Out io.Writer
ErrOut io.Writer
HTTPClient *http.Client
CredentialStore credentialFactory
IsInputTerminal func() bool
OpenURL func(string) error
Now func() time.Time
Getenv func(string) string
}
Dependencies configures the process boundaries used by the command tree.
Click to show internal directories.
Click to hide internal directories.