Documentation ¶
Index ¶
- Constants
- Variables
- func Execute()
- func PromptAppName(az providers.AzClientInterface, defaultAppName string) (string, error)
- func PromptGitHubRepoWithOwner(gh providers.GhClient) (string, error)
- func PromptResourceGroup(az providers.AzClientInterface, subscriptionID string) (armresources.ResourceGroup, error)
- func ValidateAppName(name string) error
- type CreateConfig
- type Format
- type UserInputs
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 PromptResourceGroup ¶ added in v0.17.0
func PromptResourceGroup(az providers.AzClientInterface, subscriptionID string) (armresources.ResourceGroup, error)
func ValidateAppName ¶ added in v0.17.0
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 UserInputs ¶ added in v0.0.26
Click to show internal directories.
Click to hide internal directories.