console

package
v0.0.0-...-d211ff5 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(format string, a ...interface{})

usually used as error message

func Highlight

func Highlight(format string, a ...interface{})

highlight informative text in the output so that user can distinguish different steps in the output for example: highlight the command used under the hood see: hotfix create, hotfix review

func IsAnsiSequenceSupported

func IsAnsiSequenceSupported() bool

When the ANSI sequence is supported, the console will display the colors and cursor moves

On Windows, when cdt runs in a powershell console, the ANSI sequences are not supported.

func Reminder

func Reminder(format string, a ...interface{})

usually used as a reminder, a question, or additional information that need the user interact, but not mandatory. for example: ask for user to update

func Success

func Success(format string, a ...interface{})

usually used as success message

func Warn

func Warn(format string, a ...interface{})

usually used as warning message

Types

This section is empty.

Jump to

Keyboard shortcuts

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