Documentation
¶
Overview ¶
Package internal provides shared CLI utilities for consistent output and interaction.
Index ¶
- func Error(msg string)
- func FindProjectRoot(startDir string) (string, bool)
- func Info(msg string)
- func ReadModulesConfig(cwd string) (*ecosystem.ModuleConfig, error)
- func Step(emoji, msg string)
- func Success(msg string)
- func Verbose(msg string)
- func Warn(msg string)
- func WriteModulesConfig(cwd string, cfg *ecosystem.ModuleConfig) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindProjectRoot ¶
FindProjectRoot walks up from startDir to find a typego.modules.json
func ReadModulesConfig ¶
func ReadModulesConfig(cwd string) (*ecosystem.ModuleConfig, error)
ReadModulesConfig reads and parses the typego.modules.json file
func WriteModulesConfig ¶
func WriteModulesConfig(cwd string, cfg *ecosystem.ModuleConfig) error
WriteModulesConfig writes the config back to typego.modules.json
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.