Documentation
¶
Overview ¶
This file contains common functions that are shared in the lab package
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CommandPrefix string
)
View Source
var RootCmd = &cobra.Command{ Use: "lab", Short: "lab: A GitLab Command Line Interface Utility", Long: ``, Run: func(cmd *cobra.Command, args []string) { if ok, err := cmd.Flags().GetBool("version"); err == nil && ok { versionCmd.Run(cmd, args) return } helpCmd.Run(cmd, args) }, }
RootCmd represents the base command when called without any subcommands
View Source
var Version string
Version is set with linker flags during build.
Functions ¶
func Execute ¶
func Execute(initSkipped bool)
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func LabPersistentPreRun ¶ added in v0.21.0
Types ¶
Source Files
¶
- browse_common.go
- ci.go
- ci_artifacts.go
- ci_lint.go
- ci_run.go
- ci_status.go
- ci_trace.go
- ci_view.go
- clone.go
- completion.go
- create_common.go
- edit_common.go
- fork.go
- issue.go
- issue_browse.go
- issue_close.go
- issue_create.go
- issue_edit.go
- issue_list.go
- issue_move.go
- issue_note.go
- issue_reopen.go
- issue_show.go
- issue_subscribe.go
- issue_unsubscribe.go
- label.go
- label_create.go
- label_delete.go
- label_list.go
- merge_request.go
- milestone.go
- milestone_create.go
- milestone_delete.go
- milestone_list.go
- mr.go
- mr_approve.go
- mr_browse.go
- mr_checkout.go
- mr_close.go
- mr_create.go
- mr_delete.go
- mr_discussion.go
- mr_edit.go
- mr_list.go
- mr_merge.go
- mr_note.go
- mr_rebase.go
- mr_reopen.go
- mr_show.go
- mr_subscribe.go
- mr_thumb.go
- mr_unapprove.go
- mr_unsubscribe.go
- note_common.go
- project.go
- project_browse.go
- project_create.go
- project_list.go
- root.go
- show_common.go
- snippet.go
- snippet_browse.go
- snippet_create.go
- snippet_delete.go
- snippet_list.go
- todo.go
- todo_done.go
- todo_issue.go
- todo_list.go
- todo_mr.go
- util.go
- util_linux.go
Click to show internal directories.
Click to hide internal directories.