create

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package create provides the component create command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	Name        string
	Class       string
	Description string
	Version     string
	Source      string
}

Metadata holds the auto-detected metadata for a component definition.

type Spec

type Spec struct {
	Path string
	// contains filtered or unexported fields
}

Spec is the command specification for the package publish command.

func (*Spec) Exec

func (s *Spec) Exec(_ context.Context, cli commands.CLI) error

Exec executes the create-component command.

func (*Spec) Name

func (s *Spec) Name() string

Name returns the name of the command.

func (*Spec) Requirements

func (s *Spec) Requirements(context.Context, commands.CLI) any

Requirements returns the requirements of the command.

type Variable

type Variable struct {
	Name        string
	Type        hclwrite.Tokens
	Description hclwrite.Tokens
	Default     hclwrite.Tokens
}

Variable represents a Terraform variable extracted from a module.

Jump to

Keyboard shortcuts

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