init

package
v0.0.0-...-fd0ea70 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SAMPLESURL = "https://github.com/aziontech/azion-samples.git"
	APIURL     = "https://api.azion.com/v4/utils/project_samples"
)

Variables

This section is empty.

Functions

func NewCmd

func NewCmd(f *cmdutil.Factory) *cobra.Command

func NewInitCmd

func NewInitCmd(f *cmdutil.Factory) *initCmd

Types

type ExtraInput

type ExtraInput struct {
	Key      string `json:"key"`
	Text     string `json:"text"`
	IsSecret bool   `json:"is_secret"`
}

ExtraInput represents a single input for the extras block For type "env", each input contains a key and a user-facing prompt text

type Extras

type Extras struct {
	Type   string       `json:"type"`
	Inputs []ExtraInput `json:"inputs"`
}

Extras represents optional additional information sent by the templates API Currently supports type "env" with a list of inputs to be collected from the user

type Item

type Item struct {
	Name                    string  `json:"name"`
	Message                 string  `json:"message"`
	Preset                  string  `json:"preset"`
	Path                    string  `json:"path"`
	Link                    string  `json:"link,omitempty"`
	RequiresAdditionalBuild *bool   `json:"requires_additional_build,omitempty"`
	Extras                  *Extras `json:"extras,omitempty"`
}

type Template

type Template struct {
	Name  string `json:"name"`
	Items []Item `json:"items"`
}

Jump to

Keyboard shortcuts

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