cmd

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 34 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 PromptAppName added in v0.17.0

func PromptAppName(az providers.AzClientInterface, defaultAppName string) (string, error)

func PromptGitHubRepoWithOwner added in v0.17.0

func PromptGitHubRepoWithOwner(gh providers.GhClient) (string, error)

func PromptResourceGroup added in v0.17.0

func PromptResourceGroup(az providers.AzClientInterface, subscriptionID string) (armresources.ResourceGroup, error)

func ValidateAppName added in v0.17.0

func ValidateAppName(name string) error

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