cmd

package
v0.0.0-...-4eef74f Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Default environments.
	DefaultEnvironments = []string{"production", "development", "testing"}

	// Supported languages
	SupportedLanguages = []string{
		application.TypeScriptControllerLanguage,
		application.GoControllerLanguage,
		application.DotNetControllerLanguage,
	}
)
View Source
var Environment string

Shared flags

View Source
var RootCmd = &cobra.Command{
	Use:   "stevie",
	Short: "Stevie helps you build serverless applications",
	Long: `Stevie helps build serverless applications by letting you
focus on your business logic instead of the cloud services needed to run it.`,
}

Functions

func AddAPIRouteToConfig

func AddAPIRouteToConfig(configPath, name, route, pathToHandlerFiles string, corsEnabled bool) error

AddAPIRouteToConfig adds an API Route to the base config.

func CreateAPIDeployment

func CreateAPIDeployment(environment string) (auto.Stack, error)

func Execute

func Execute()

Types

type ApplicationConfig

type ApplicationConfig struct {
	Name         string
	DashCaseName string
	Description  string
	Routes       []auto_pulumi.APIRoute
}

Represents the values for the base config file.

func CreateApplicationConfig

func CreateApplicationConfig(configPath, name, description string, environments []string) (ApplicationConfig, error)

CreateApplicationConfig creates the application config.

func ReadBaseConfig

func ReadBaseConfig(configPath string) (ApplicationConfig, error)

ReadBaseConfig reads out the base config.

func (*ApplicationConfig) WriteOutBaseConfigFile

func (c *ApplicationConfig) WriteOutBaseConfigFile(configPath string) error

WriteOutBaseConfigFile writes out the base config file.

func (*ApplicationConfig) WriteOutBaseEnvironmentConfigFile

func (c *ApplicationConfig) WriteOutBaseEnvironmentConfigFile(configPath, env string) error

WriteOutBaseEnvironmentConfigFile writes out the base config file for a given environment.

type EnvironmentConfigFile

type EnvironmentConfigFile struct {
	Name        string
	Environment string
}

Represents the values for an environment config file.

Jump to

Keyboard shortcuts

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