Skip to content
Myr

Change links from http:// to https:// (#1695)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Andreas Deininger · committed by GitHub · parent e1ded5c · Browse files · 6 files+13 added−13 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

6 files+13 added−13 removed

  • other:+13 added−13 removed

6 files+13 added−13 removed

modified:doc/md_docs.md+1 added-1 removed
modified:doc/rest_docs.md+1 added-1 removed
83 unmodified lines
84 //...85}86```8788The `filePrepender` will prepend the return value given the full filepath to the rendered ReST file. A common use case is to add front matter to use the generated documentation with [Hugo](http://gohugo.io/):88The `filePrepender` will prepend the return value given the full filepath to the rendered ReST file. A common use case is to add front matter to use the generated documentation with [Hugo](https://gohugo.io/):8990```go91const fmTemplate = `---92date: %s
22 unmodified lines
modified:doc/yaml_docs.md+1 added-1 removed
80 unmodified lines
81 //...82}83```8485The `filePrepender` will prepend the return value given the full filepath to the rendered Yaml file. A common use case is to add front matter to use the generated documentation with [Hugo](http://gohugo.io/):85The `filePrepender` will prepend the return value given the full filepath to the rendered Yaml file. A common use case is to add front matter to use the generated documentation with [Hugo](https://gohugo.io/):8687```go88const fmTemplate = `---89date: %s
23 unmodified lines
modified:projects_using_cobra.md+5 added-5 removed
modified:README.md+2 added-2 removed
1![cobra logo](https://cloud.githubusercontent.com/assets/173412/10886352/ad566232-814f-11e5-9cd0-aa101788c117.png)23Cobra is a library for creating powerful modern CLI applications.45Cobra is used in many Go projects such as [Kubernetes](http://kubernetes.io/),5Cobra is used in many Go projects such as [Kubernetes](https://kubernetes.io/),6[Hugo](https://gohugo.io), and [Github CLI](https://github.com/cli/cli) to7name a few. [This list](./projects_using_cobra.md) contains a more extensive list of projects using Cobra.89[![](https://img.shields.io/github/workflow/status/spf13/cobra/Test?longCache=tru&label=Test&logo=github%20actions&logoColor=fff)](https://github.com/spf13/cobra/actions?query=workflow%3ATest)
17 unmodified lines
27* Automatically generated shell autocomplete for your application (bash, zsh, fish, powershell)28* Automatically generated man pages for your application29* Command aliases so you can change things without breaking them30* The flexibility to define your own help, usage, etc.31* Optional seamless integration with [viper](http://github.com/spf13/viper) for 12-factor apps31* Optional seamless integration with [viper](https://github.com/spf13/viper) for 12-factor apps3233# Concepts3435Cobra is built on a structure of commands, arguments & flags.
76 unmodified lines
modified:user_guide.md+3 added-3 removed
49 unmodified lines
50 Use: "hugo",51 Short: "Hugo is a very fast static site generator",52 Long: `A Fast and Flexible Static Site Generator built with53 love by spf13 and friends in Go.54 Complete documentation is available at http://hugo.spf13.com`,54 Complete documentation is available at https://gohugo.io/documentation/`,55 Run: func(cmd *cobra.Command, args []string) {56 // Do Stuff Here57 },58}
369 unmodified lines
428 rootCmd.Execute()429}430```431432For a more complete example of a larger application, please checkout [Hugo](http://gohugo.io/).432For a more complete example of a larger application, please checkout [Hugo](https://gohugo.io/).433434## Help Command435436Cobra automatically adds a help command to your application when you have subcommands.
189 unmodified lines
626627Run 'hugo --help' for usage.628```629630Suggestions are automatic based on every subcommand registered and use an implementation of [Levenshtein distance](http://en.wikipedia.org/wiki/Levenshtein_distance). Every registered command that matches a minimum distance of 2 (ignoring case) will be displayed as a suggestion.630Suggestions are automatic based on every subcommand registered and use an implementation of [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance). Every registered command that matches a minimum distance of 2 (ignoring case) will be displayed as a suggestion.631632If you need to disable suggestions or tweak the string distance in your command, use:633634```go
28 unmodified lines