Documentation
¶
Index ¶
- Variables
- func GetProjectKeys(context context.Context, cmd *cobra.Command, args []string, toComplete string) (keys []string, err error)
- func GetProjectNames(context context.Context, cmd *cobra.Command, args []string, toComplete string) (names []string, err error)
- func GetWorkspace(cmd *cobra.Command, profile *profile.Profile) (workspace string, err error)
- type Project
- type ProjectCreator
- type ProjectReference
- type ProjectUpdator
- type Projects
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cobra.Command{ Use: "project", Short: "Manage projects", Run: func(cmd *cobra.Command, args []string) { fmt.Println("Project requires a subcommand:") for _, command := range cmd.Commands() { fmt.Println(command.Name()) } }, }
Command represents this folder's command
Functions ¶
func GetProjectKeys ¶
func GetProjectKeys(context context.Context, cmd *cobra.Command, args []string, toComplete string) (keys []string, err error)
GetProjectKeys gets the keys of the projects in the workspace given in the command
Types ¶
type Project ¶
type Project struct { Type string `json:"type" mapstructure:"type"` ID common.UUID `json:"uuid" mapstructure:"uuid"` Name string `json:"name" mapstructure:"name"` Description string `json:"description,omitempty" mapstructure:"description"` Key string `json:"key" mapstructure:"key"` Owner user.User `json:"owner" mapstructure:"owner"` Workspace workspace.Workspace `json:"workspace" mapstructure:"workspace"` Links common.Links `json:"links" mapstructure:"links"` IsPrivate bool `json:"is_private" mapstructure:"is_private"` HasPubliclyVisibleRepositories bool `json:"has_publicly_visible_repos" mapstructure:"has_publicly_visible_repos"` CreatedOn time.Time `json:"created_on" mapstructure:"created_on"` UpdatedOn time.Time `json:"updated_on" mapstructure:"updated_on"` }
func (Project) GetHeader ¶ added in v0.4.0
GetHeader gets the header for a table
implements common.Tableable
func (Project) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
type ProjectCreator ¶
type ProjectReference ¶ added in v0.7.0
type ProjectReference struct {
Key string `json:"key" mapstructure:"key"`
}
func NewReference ¶ added in v0.7.0
func NewReference(key string) *ProjectReference
NewReference creates a new ProjectReference
type ProjectUpdator ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.