Documentation ¶
Overview ¶
Copyright © 2021 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func AskComponentName(defaultName string) string
- func AskLangage(devfileRegistry *registry.DevfileIndex) string
- func AskProjectType(language string, devfileRegistry *registry.DevfileIndex) indexSchema.Schema
- func ConfigureDevfile()
- func CreateDevfile()
- func DownloadDevfile(devfile indexSchema.Schema, devfileRegistry string, componentName string, ...)
- func Execute()
- func HasFlagsSet(cmd *cobra.Command) bool
- func IsCurrentDirEmpty() bool
- func PrintConfiguration(config DevfileConfiguration)
- func SelectDevfile(cmd *cobra.Command, askForStarter bool) (indexSchema.Schema, string, string, string)
- func SelectDevfileAlizer(cmd *cobra.Command) (indexSchema.Schema, string, string)
- func Spinner(msg string, timeoutSeconds int)
- type ContainerConfiguration
- type DevfileConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskComponentName ¶
func AskLangage ¶
func AskLangage(devfileRegistry *registry.DevfileIndex) string
func AskProjectType ¶
func AskProjectType(language string, devfileRegistry *registry.DevfileIndex) indexSchema.Schema
func ConfigureDevfile ¶
func ConfigureDevfile()
func CreateDevfile ¶
func CreateDevfile()
func DownloadDevfile ¶
func DownloadDevfile(devfile indexSchema.Schema, devfileRegistry string, componentName string, starterName string)
func HasFlagsSet ¶
HasFlagsSet returns true if any of the flags in the given command is set
func IsCurrentDirEmpty ¶
func IsCurrentDirEmpty() bool
func PrintConfiguration ¶
func PrintConfiguration(config DevfileConfiguration)
func SelectDevfile ¶
func SelectDevfile(cmd *cobra.Command, askForStarter bool) (indexSchema.Schema, string, string, string)
returns devfile, devfileRegistry, componentName, starterName
func SelectDevfileAlizer ¶
returns devfile, devfileRegistry, componentName
Types ¶
type ContainerConfiguration ¶
type DevfileConfiguration ¶
type DevfileConfiguration map[string]ContainerConfiguration
key is container name