mirror of https://gitlab.com/gitlab-org/cli.git
docs(config): add check_update and display_hyperlinks
This commit is contained in:
parent
0649189077
commit
8f75fe3174
|
@ -24,10 +24,12 @@ Current respected settings:
|
|||
- token: Your GitLab access token, defaults to environment variables
|
||||
- host: if unset, defaults to %[1]shttps://gitlab.com%[1]s
|
||||
- browser: if unset, defaults to environment variables
|
||||
- editor: if unset, defaults to environment variables.
|
||||
- visual: alternative for editor. if unset, defaults to environment variables.
|
||||
- editor: if unset, defaults to environment variables
|
||||
- visual: alternative for editor. If unset, defaults to environment variables
|
||||
- glamour_style: Your desired Markdown renderer style. Options are dark, light, notty. Custom styles are allowed using [glamour](https://github.com/charmbracelet/glamour#styles)
|
||||
- glab_pager: Your desired pager command to use (e.g. less -R)
|
||||
- check_update: if true, notifies of any available updates to glab. Defaults to true
|
||||
- display_hyperlinks: if true, and using a TTY, outputs hyperlinks for issues and MR lists. Defaults to false
|
||||
`, "`"),
|
||||
Aliases: []string{"conf"},
|
||||
}
|
||||
|
@ -95,6 +97,7 @@ Specifying the --hostname flag also saves in the global config file
|
|||
Example: `
|
||||
glab config set editor vim
|
||||
glab config set token xxxxx -h gitlab.com
|
||||
glab config set check_update false --global
|
||||
`,
|
||||
Args: cobra.ExactArgs(2),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
|
|
|
@ -22,10 +22,12 @@ Current respected settings:
|
|||
- token: Your GitLab access token, defaults to environment variables
|
||||
- host: if unset, defaults to `https://gitlab.com`
|
||||
- browser: if unset, defaults to environment variables
|
||||
- editor: if unset, defaults to environment variables.
|
||||
- visual: alternative for editor. if unset, defaults to environment variables.
|
||||
- editor: if unset, defaults to environment variables
|
||||
- visual: alternative for editor. If unset, defaults to environment variables
|
||||
- glamour_style: Your desired Markdown renderer style. Options are dark, light, notty. Custom styles are allowed using [glamour](https://github.com/charmbracelet/glamour#styles)
|
||||
- glab_pager: Your desired pager command to use (e.g. less -R)
|
||||
- check_update: if true, notifies of any available updates to glab. Defaults to true
|
||||
- display_hyperlinks: if true, and using a TTY, outputs hyperlinks for issues and MR lists. Defaults to false
|
||||
|
||||
## Aliases
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ glab config set <key> <value> [flags]
|
|||
|
||||
glab config set editor vim
|
||||
glab config set token xxxxx -h gitlab.com
|
||||
glab config set check_update false --global
|
||||
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue