mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
Add missing 'and' in comment
This commit is contained in:
parent
99b5d838ca
commit
31694f19ad
2 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@ to quickly create a Cobra application.` + "`" + `,
|
||||||
// Run: func(cmd *cobra.Command, args []string) { },
|
// Run: func(cmd *cobra.Command, args []string) { },
|
||||||
}
|
}
|
||||||
|
|
||||||
// Execute adds all child commands to the root command sets flags appropriately.
|
// Execute adds all child commands to the root command and sets flags appropriately.
|
||||||
// This is called by main.main(). It only needs to happen once to the rootCmd.
|
// This is called by main.main(). It only needs to happen once to the rootCmd.
|
||||||
func Execute() {
|
func Execute() {
|
||||||
if err := RootCmd.Execute(); err != nil {
|
if err := RootCmd.Execute(); err != nil {
|
||||||
|
|
2
cobra/cmd/testdata/root.go.golden
vendored
2
cobra/cmd/testdata/root.go.golden
vendored
|
@ -39,7 +39,7 @@ to quickly create a Cobra application.`,
|
||||||
// Run: func(cmd *cobra.Command, args []string) { },
|
// Run: func(cmd *cobra.Command, args []string) { },
|
||||||
}
|
}
|
||||||
|
|
||||||
// Execute adds all child commands to the root command sets flags appropriately.
|
// Execute adds all child commands to the root command and sets flags appropriately.
|
||||||
// This is called by main.main(). It only needs to happen once to the rootCmd.
|
// This is called by main.main(). It only needs to happen once to the rootCmd.
|
||||||
func Execute() {
|
func Execute() {
|
||||||
if err := RootCmd.Execute(); err != nil {
|
if err := RootCmd.Execute(); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue