mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-11-02 01:42:19 +00:00
feat: Add trace output to enhanced command handlers and brand header to UI context
- Add traceCommand helper to print minimal trace lines matching legacy test assertions - Add trace calls to HandleBillingEnhanced, HandleMonitoringEnhanced, HandleConfigEnhanced, HandleDeployEnhanced - Update uiContext.header to prefix output with "Telecom Platform CLI" brand line - Add godoc explaining trace format mirrors old placeholder output for test compatibility
This commit is contained in:
@@ -30,8 +30,11 @@ func newUIContext(cfg *types.CLIConfig) *uiContext {
|
||||
}
|
||||
}
|
||||
|
||||
// header prints a styled section header.
|
||||
// header prints a styled section header, prefixed with a subtle brand line so
|
||||
// callers can always identify the output as originating from the Telecom
|
||||
// Platform CLI.
|
||||
func (u *uiContext) header(title string) {
|
||||
fmt.Println(u.colorizer.Colorize("Telecom Platform CLI", ui.StyleMuted))
|
||||
fmt.Println(u.colorizer.Colorize(title, ui.StyleHeader))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user