Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "glc", Short: "gitlab cli", Long: "gitlab Command Line Application", PersistentPreRun: func(cmd *cobra.Command, args []string) { config = loadConfig(configFile, cmdRequireClient(cmd.Use)) if gitlabHost != "" { config.Host = gitlabHost } if cmdRequireClient(cmd.Use) { client = gitlab.NewGitlab(config.Host, config.ApiPath, config.Token) } if noColor { color.NoColor = true } if isInteractive { loader = spinner.New(spinner.CharSets[14], 60*time.Millisecond) } else { loader = new(FakeLoader) } if outputFormat == "" { if config != nil && config.OutputFormat != "" { outputFormat = config.OutputFormat } else { outputFormat = "text" } } if !silent { writers = append(writers, os.Stdout) } if outputDestination != "" { fileWriter, err := os.Create(outputDestination) if err != nil { fmt.Println(err) return } writers = append(writers, fileWriter) } output = io.MultiWriter(writers...) }, }
Functions ¶
Types ¶
type Alias ¶
type Config ¶
type FakeLoader ¶
type FakeLoader struct{}
func (*FakeLoader) Start ¶
func (fl *FakeLoader) Start()
func (*FakeLoader) Stop ¶
func (fl *FakeLoader) Stop()
Source Files ¶
- add_alias_cmd.go
- add_cmd.go
- add_group_cmd.go
- add_group_epic_note_cmd.go
- add_group_var_cmd.go
- add_project_badge_cmd.go
- add_project_branch_cmd.go
- add_project_cmd.go
- add_project_environment_cmd.go
- add_project_hook_cmd.go
- add_project_issue_note_cmd.go
- add_project_merge_request_note_cmd.go
- add_project_protected_branch_cmd.go
- add_project_snippet_note_cmd.go
- add_project_star_cmd.go
- add_project_var_cmd.go
- ci_info_cmd.go
- completion_cmd.go
- config.go
- doc.go
- doc_cmd.go
- get_cmd.go
- get_current_user_cmd.go
- get_group_cmd.go
- get_group_var_cmd.go
- get_namespace_cmd.go
- get_project_badge_cmd.go
- get_project_branch_cmd.go
- get_project_cmd.go
- get_project_hook_cmd.go
- get_project_job_cancel_cmd.go
- get_project_job_cmd.go
- get_project_job_retry_cmd.go
- get_project_job_trace_cmd.go
- get_project_merge_request_cmd.go
- get_project_merge_request_note_cmd.go
- get_project_pipeline_cmd.go
- get_project_var_cmd.go
- get_runner_cmd.go
- get_user_cmd.go
- init_cmd.go
- list_aliases_cmd.go
- list_cmd.go
- list_group_epic_notes_cmd.go
- list_group_merge_requests_cmd.go
- list_group_variables_cmd.go
- list_groups_cmd.go
- list_merge_requests_cmd.go
- list_namespaces_cmd.go
- list_project_badges_cmd.go
- list_project_branches_cmd.go
- list_project_commits.go
- list_project_environments_cmd.go
- list_project_hooks_cmd.go
- list_project_issue_notes_cmd.go
- list_project_jobs_cmd.go
- list_project_members_cmd.go
- list_project_merge_request_commits_cmd.go
- list_project_merge_request_notes_cmd.go
- list_project_merge_requests_cmd.go
- list_project_pipeline_jobs_cmd.go
- list_project_pipelines_cmd.go
- list_project_protected_branches_cmd.go
- list_project_snippet_notes_cmd.go
- list_project_variables_cmd.go
- list_projects_cmd.go
- list_runners_cmd.go
- list_ssh_keys_cmd.go
- list_user_ssh_keys_cmd.go
- list_users_cmd.go
- output.go
- output_config.go
- prompt.go
- prompt_vars.go
- related.go
- resources.go
- rm_alias_cmd.go
- rm_cmd.go
- rm_group_cmd.go
- rm_group_epic_note_cmd.go
- rm_group_var_cmd.go
- rm_project_badge_cmd.go
- rm_project_branch_cmd.go
- rm_project_cmd.go
- rm_project_environment_cmd.go
- rm_project_hook_cmd.go
- rm_project_issue_note_cmd.go
- rm_project_merge_request_note_cmd.go
- rm_project_merged_branches_cmd.go
- rm_project_protected_branch_cmd.go
- rm_project_snippet_note_cmd.go
- rm_project_star_cmd.go
- rm_project_var_cmd.go
- root_cmd.go
- version_cmd.go
Click to show internal directories.
Click to hide internal directories.