cmd

package
v0.0.2-alpha Latest Latest
Warning

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

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

Documentation

Overview

Package cmd wires the spin cobra command tree. Subcommand files (new.go, list.go, ...) attach themselves to rootCmd via init(). RootCmd() returns the fully-populated tree for main and tests.

Index

Constants

This section is empty.

Variables

View Source
var ErrCancelled = errors.New("cancelled -- no project was created")

ErrCancelled is returned when the user cancels an interactive prompt. The CLI exits with code 130 (SIGINT convention).

Functions

func RootCmd

func RootCmd() *cobra.Command

RootCmd returns the spin cobra root command with all subcommands attached.

Types

This section is empty.

Jump to

Keyboard shortcuts

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