Update README.md

I think it meant to be `Echo` here instead of `Print` since the command is called `cmdEcho`.
This commit is contained in:
XuZvvHYmZfYdWJNRunkJ 2019-09-03 00:11:39 -07:00 committed by GitHub
parent b80588d523
commit b1dca3f9a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -462,7 +462,7 @@ For many years people have printed back to the screen.`,
Echo works a lot like print, except it has a child command.`, Echo works a lot like print, except it has a child command.`,
Args: cobra.MinimumNArgs(1), Args: cobra.MinimumNArgs(1),
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
fmt.Println("Print: " + strings.Join(args, " ")) fmt.Println("Echo: " + strings.Join(args, " "))
}, },
} }