cmd

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const LANGUAGE_VARIABLE = "LANGUAGE"
View Source
const TWO_SPACES = "  "

Variables

View Source
var ErrNoLanguageDetected = errors.New("no supported languages were detected")

ErrNoLanguageDetected is raised when `draft create` does not detect source code for linguist to classify, or if there are no packs available for the detected languages.

View Source
var VERSION = "v0.0.7"

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetAzSubscriptionId

func GetAzSubscriptionId(subIds []string) string

Types

type CreateConfig added in v0.0.26

type CreateConfig struct {
	DeployType        string       `yaml:"deployType"`
	LanguageType      string       `yaml:"languageType"`
	DeployVariables   []UserInputs `yaml:"deployVariables"`
	LanguageVariables []UserInputs `yaml:"languageVariables"`
}

type Format added in v0.0.26

type Format string
const (
	JSON Format = "json"
)

type UserInputs added in v0.0.26

type UserInputs struct {
	Name  string `yaml:"name"`
	Value string `yaml:"value"`
}

Jump to

Keyboard shortcuts

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