create

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	FlagName        = "name"
	FlagDescription = "description"
	FlagTeam        = "team"
	FlagUser        = "user"
)

Variables

This section is empty.

Functions

func NewCmdCreate

func NewCmdCreate(f factory.Factory) *cobra.Command

func PromptMissing added in v0.5.0

func PromptMissing(opts *CreateOptions) error

Types

type CreateFlags added in v0.5.0

type CreateFlags struct {
	Name        *flag.Flag[string]
	Description *flag.Flag[string]
	Teams       *flag.Flag[[]string]
	Users       *flag.Flag[[]string]
}

func NewCreateFlags added in v0.5.0

func NewCreateFlags() *CreateFlags

type CreateOptions added in v0.5.0

type CreateOptions struct {
	*cmd.Dependencies
	*CreateFlags
	GetAllSpacesCallback shared.GetAllSpacesCallback
	GetAllTeamsCallback  shared.GetAllTeamsCallback
	GetAllUsersCallback  shared.GetAllUsersCallback
}

func NewCreateOptions added in v0.5.0

func NewCreateOptions(f factory.Factory, flags *CreateFlags, c *cobra.Command) *CreateOptions

Jump to

Keyboard shortcuts

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