internal

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package internal provides shared CLI utilities for consistent output and interaction.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(msg string)

Error prints an error message with red prefix

func FindProjectRoot

func FindProjectRoot(startDir string) (string, bool)

FindProjectRoot walks up from startDir to find a typego.modules.json

func Info

func Info(msg string)

Info prints an informational message with blue prefix

func ReadModulesConfig

func ReadModulesConfig(cwd string) (*ecosystem.ModuleConfig, error)

ReadModulesConfig reads and parses the typego.modules.json file

func Step

func Step(emoji, msg string)

Step prints a step indicator (emoji + message)

func Success

func Success(msg string)

Success prints a success message with green checkmark

func Verbose

func Verbose(msg string)

Verbose prints only if verbose mode is enabled

func Warn

func Warn(msg string)

Warn prints a warning message with yellow prefix

func WriteModulesConfig

func WriteModulesConfig(cwd string, cfg *ecosystem.ModuleConfig) error

WriteModulesConfig writes the config back to typego.modules.json

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL