commands

package
v0.5.87-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

commands/select.go

Index

Constants

This section is empty.

Variables

View Source
var (
	StartMode   bool
	StartModule string
	Port        int32
	Production  bool
	Debug       bool
)
View Source
var (
	Exit = false
)
View Source
var (
	RenderStatic bool
)
View Source
var RootCmd = &cobra.Command{
	Use:   "hyperbricks",
	Short: "Hyperbricks CLI",
	Long:  `Hyperbricks is a powerful headless cms for managing hypermedia.`,
}
View Source
var (
	Version bool = false
)

Functions

func Execute

func Execute() error

Execute runs the root command

func GetModule

func GetModule() string

func NewGoodbyeCommand

func NewGoodbyeCommand() *cobra.Command

NewGoodbyeCommand creates the "goodbye" subcommand

func NewHelloCommand

func NewHelloCommand() *cobra.Command

NewHelloCommand creates the "hello" subcommand

func NewInitCommand

func NewInitCommand() *cobra.Command

NewGoodbyeCommand creates the "goodbye" subcommand

func NewMakeStaticCommand

func NewMakeStaticCommand() *cobra.Command

func NewSelectCommand

func NewSelectCommand() *cobra.Command

NewSelectCommand creates the "select" subcommand

func NewStartCommand

func NewStartCommand() *cobra.Command

NewStartCommand creates the "start" subcommand

func PluginBuildCommand

func PluginBuildCommand() *cobra.Command

Build or rebuild a plugin from source (syntax: <name>@<version>)

func PluginCommand

func PluginCommand() *cobra.Command

Root "plugin" command

func PluginInstallCommand

func PluginInstallCommand() *cobra.Command

Installs a plugin (syntax: <name>[@<version>])

func PluginListCommand

func PluginListCommand() *cobra.Command

func PluginRemoveCommand

func PluginRemoveCommand() *cobra.Command

Remove a locally installed plugin

func PluginUpdateCommand

func PluginUpdateCommand() *cobra.Command

Update a plugin to latest compatible version (placeholder)

func RegisterSubcommands

func RegisterSubcommands()

RegisterSubcommands adds all subcommands to the root command

func VersionCommand

func VersionCommand() *cobra.Command

Types

type Config

type Config struct {
	Port int32 `json:"port"`
}

type PluginMeta

type PluginMeta struct {
	Plugin                string   `json:"plugin"`
	Version               string   `json:"version"`
	Source                string   `json:"source"`
	CompatibleHyperbricks []string `json:"compatible_hyperbricks"`
	Description           string   `json:"description"`
}

PluginMeta describes one plugin version's manifest.

Jump to

Keyboard shortcuts

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