cmd

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Overview

Copyright © 2026 Nikolas Pikall <nikolas.pikall@gmail.com>

SPDX-License-Identifier: MIT License See the LICENSE file in the repository root for full license text.

Copyright © 2026 Nikolas Pikall <nikolas.pikall@gmail.com>

SPDX-License-Identifier: MIT License See the LICENSE file in the repository root for full license text.

Copyright © 2026 Nikolas Pikall <nikolas.pikall@gmail.com>

SPDX-License-Identifier: MIT License See the LICENSE file in the repository root for full license text.

Copyright © 2026 Nikolas Pikall <nikolas.pikall@gmail.com>

SPDX-License-Identifier: MIT License See the LICENSE file in the repository root for full license text.

Copyright © 2026 Nikolas Pikall <nikolas.pikall@gmail.com>

SPDX-License-Identifier: MIT License See the LICENSE file in the repository root for full license text.

Copyright © 2026 Nikolas Pikall <nikolas.pikall@gmail.com>

SPDX-License-Identifier: MIT License See the LICENSE file in the repository root for full license text.

Copyright © 2026 Nikolas Pikall <nikolas.pikall@gmail.com>

SPDX-License-Identifier: MIT License See the LICENSE file in the repository root for full license text.

Index

Constants

This section is empty.

Variables

View Source
var (
	Blue    = lipgloss.Color("81")
	Yellow  = lipgloss.Color("3")
	Red     = lipgloss.Color("124")
	White   = lipgloss.Color("231")
	Gray    = lipgloss.Color("245")
	Magenta = lipgloss.Color("72")
	Cyan    = lipgloss.Color("117")
	Violet  = lipgloss.Color("99")
)

Common Colors

View Source
var (
	InfoStyle    = lipgloss.NewStyle().Foreground(Blue).Bold(true)
	WarnStyle    = lipgloss.NewStyle().Foreground(Yellow).Bold(true)
	ErrStyle     = lipgloss.NewStyle().Foreground(Red).Bold(true)
	HighStyle    = lipgloss.NewStyle().Foreground(White).Bold(true)
	DefaultStyle = lipgloss.NewStyle().Foreground(Gray)
	LogoStyle    = lipgloss.NewStyle().Foreground(Violet)
)

Styles for Messages to stdout/stderr

View Source
var ErrMissingArgument = errors.New("argument must be provided, can be one of [major|minor|patch] or a valid semver")
View Source
var ErrNoPackages = errors.New("no packages installed")
View Source
var GoTPMVersion string

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func LogErrf

func LogErrf(format string, v ...any)

Print an error message to stdout with colored prefix 'error:' without exiting

func LogFatalf

func LogFatalf(format string, v ...any)

Print an error message to stdout with colored prefix 'error:' without exiting

func LogInfof

func LogInfof(format string, v ...any)

Print a message to stdout with colored prefix 'info:'

func LogWarnf

func LogWarnf(format string, v ...any)

Print a warning message to stdout with colored prefix 'warning:'

func Must

func Must[T any](t T, err error) T

A given Function must return no error. When an error occurs the program is exited.

Types

This section is empty.

Jump to

Keyboard shortcuts

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