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 ¶
SetCreateFlags sets flags supported by create command.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.