cmd

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 24 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.

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 (
	Violet    = charmtone.Charple
	Turquoise = lipgloss.Color("86")
	Magenta   = charmtone.Cheeky
)

Common Colors

View Source
var (
	VersionStyle     = lipgloss.NewStyle().Foreground(Turquoise).Bold(true)
	HighStyle        = lipgloss.NewStyle().Foreground(Magenta).Bold(true)
	LogoStyle        = lipgloss.NewStyle().Foreground(Violet)
	DescriptionStyle = lipgloss.NewStyle().Foreground(Magenta)
)

Styles for Messages to stdout/stderr

View Source
var ErrInsufficientPackage = errors.New("both package and version must be specified")
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 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.

func UpdateFileContent added in v0.3.2

func UpdateFileContent(content *[]byte, versions map[string]string)

Update all typst package import statements in a file, with the values provided by a mapping of package names to the latest version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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