cmdcommon

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package cmdcommon contains methods common to multiple commands.

Index

Constants

View Source
const (
	// ActionSubmit is a submit action.
	ActionSubmit = "Submit"
	// ActionCancel is a cancel action.
	ActionCancel = "Cancel"
	// ActionMetadata is an add metadata action.
	ActionMetadata = "Add metadata"
)

Variables

This section is empty.

Functions

func GetMetadata

func GetMetadata() []*survey.Question

GetMetadata gathers a list of metadata users wants to add.

func GetMetadataQuestions

func GetMetadataQuestions(cat []string) []*survey.Question

GetMetadataQuestions prepares metadata question to input from user.

func GetNextAction

func GetNextAction() *survey.Question

GetNextAction provide user an option to select next action.

func SetCreateFlags

func SetCreateFlags(cmd *cobra.Command, prefix string)

SetCreateFlags sets flags supported by create command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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