docs(config): add check_update and display_hyperlinks

This commit is contained in:
Jay McCure 2023-09-06 16:59:41 +00:00 committed by Amy Qualls
parent 0649189077
commit 8f75fe3174
No known key found for this signature in database
3 changed files with 10 additions and 4 deletions

View File

@ -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 {

View File

@ -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

View File

@ -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
```