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 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.go
- add_alias.go
- add_group.go
- add_group_var.go
- add_project.go
- add_project_badge.go
- add_project_branch.go
- add_project_environment.go
- add_project_hook.go
- add_project_protected_branch.go
- add_project_star.go
- add_project_var.go
- completion.go
- config.go
- get.go
- get_current_user.go
- get_group.go
- get_group_var.go
- get_namespace.go
- get_project.go
- get_project_badge.go
- get_project_branch.go
- get_project_hook.go
- get_project_job.go
- get_project_job_cancel.go
- get_project_job_retry.go
- get_project_job_trace.go
- get_project_pipeline.go
- get_project_var.go
- get_runner.go
- get_user.go
- init.go
- ls.go
- ls_aliases.go
- ls_group_merge_requests.go
- ls_group_variables.go
- ls_groups.go
- ls_merge_requests.go
- ls_namespaces.go
- ls_project_badges.go
- ls_project_branches.go
- ls_project_environments.go
- ls_project_hooks.go
- ls_project_jobs.go
- ls_project_members.go
- ls_project_merge_requests.go
- ls_project_pipeline_jobs.go
- ls_project_pipelines.go
- ls_project_protected_branches.go
- ls_project_variables.go
- ls_projects.go
- ls_runners.go
- ls_ssh_keys.go
- ls_user_ssh_keys.go
- ls_users.go
- output.go
- output_config.go
- prompt.go
- prompt_vars.go
- related.go
- resources.go
- rm.go
- rm_alias.go
- rm_group.go
- rm_group_var.go
- rm_project.go
- rm_project_badge.go
- rm_project_branch.go
- rm_project_environment.go
- rm_project_hook.go
- rm_project_merged_branches.go
- rm_project_protected_branch.go
- rm_project_star.go
- rm_project_var.go
- root.go
- version.go
Click to show internal directories.
Click to hide internal directories.