interactive

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FinalConfirm

func FinalConfirm(importPath, projectName, projectKind, noRoot string) bool

FinalConfirm check if you can create a project with the above contents

func ImportPath

func ImportPath() (string, error)

ImportPath return project import path from user input.

func IsCLI

func IsCLI(no string) bool

IsCLI return whether the number specifies the creation of the cli project

func IsLibrary

func IsLibrary(no string) bool

IsLibrary return whether the number specifies the creation of the library project

func IsNoRoot

func IsNoRoot(no string) bool

IsNoRoot return whether create project root directory

func IsSimpleApp

func IsSimpleApp(no string) bool

IsSimpleApp return whether the number specifies the creation of the simple project

func ProjectKind

func ProjectKind() (string, error)

ProjectKind return project kind from user input.

func ProjectRootDir

func ProjectRootDir(projectName string) (string, error)

ProjectRootDir returns where to create the project(project path)

Types

This section is empty.

Jump to

Keyboard shortcuts

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