Help us shape the future of Go! Take the 2026 Go Developer Survey

themes

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package themes provides the defined CLI theme commands for Vela.

Usage:

import "github.com/go-vela/cli/command/themes"

Index

Constants

This section is empty.

Variables

View Source
var CommandView = &cli.Command{
	Name:        "themes",
	Description: "Use this command to view available color themes.",
	Usage:       "View available color themes for syntax highlighting",
	Action:      view,
	Flags: []cli.Flag{
		&cli.StringFlag{
			Sources: cli.EnvVars("VELA_OUTPUT", "THEME_OUTPUT"),
			Name:    internal.FlagOutput,
			Aliases: []string{"op"},
			Usage:   "format the output in json, spew or yaml",
		},
	},
	CustomHelpTemplate: fmt.Sprintf(`%s
EXAMPLES:
  1. View available color themes.
    $ {{.FullName}}
  2. View available color themes with JSON output.
    $ {{.FullName}} --output json
  3. View available color themes with YAML output.
    $ {{.FullName}} --output yaml

DOCUMENTATION:

  https://go-vela.github.io/docs/reference/cli/themes/view/
`, cli.CommandHelpTemplate),
}

CommandView defines the command for viewing available color themes.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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