cmd

package
v0.0.0-...-67e6f00 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: MIT Imports: 28 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskComponentName

func AskComponentName(defaultName string) string

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 Execute

func Execute()

func HasFlagsSet

func HasFlagsSet(cmd *cobra.Command) bool

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

func SelectDevfileAlizer(cmd *cobra.Command) (indexSchema.Schema, string, string)

returns devfile, devfileRegistry, componentName

func Spinner

func Spinner(msg string, timeoutSeconds int)

Types

type ContainerConfiguration

type ContainerConfiguration struct {
	Ports []string
	Envs  map[string]string
}

type DevfileConfiguration

type DevfileConfiguration map[string]ContainerConfiguration

key is container name

Jump to

Keyboard shortcuts

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