init

package
v0.0.0-...-059d9f2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 32 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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