Documentation ¶
Index ¶
- Variables
- func GetProjectKeys(context context.Context, cmd *cobra.Command, args []string, toComplete string) (keys []string, err error)
- func GetReviewerUserIDs(context context.Context, cmd *cobra.Command, project string) (ids []string, err error)
- func GetWorkspaceAndProject(cmd *cobra.Command, profile *profile.Profile) (workspace, project string, err error)
- type Reviewer
- type Reviewers
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cobra.Command{ Use: "reviewer", Short: "Manage reviewers", Run: func(cmd *cobra.Command, args []string) { fmt.Println("Reviewer requires a subcommand:") for _, command := range cmd.Commands() { fmt.Println(command.Name()) } }, }
Command represents this folder's command
Functions ¶
func GetProjectKeys ¶ added in v0.5.0
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 Reviewer ¶
type Reviewer struct { Type string `json:"type" mapstructure:"type"` ReviewerType string `json:"reviewer_type" mapstructure:"reviewer_type"` User user.User `json:"user" mapstructure:"user"` }
Click to show internal directories.
Click to hide internal directories.