Merge pull request #978 from hangyan/fix-typos

Fix typos in comments
This commit is contained in:
Charlie Drage 2018-04-03 12:29:39 -04:00 committed by GitHub
commit bfe8971890
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ var RootCmd = &cobra.Command{
Use: "kompose", Use: "kompose",
Short: "A tool helping Docker Compose users move to Kubernetes", Short: "A tool helping Docker Compose users move to Kubernetes",
Long: `Kompose is a tool to help users who are familiar with docker-compose move to Kubernetes.`, Long: `Kompose is a tool to help users who are familiar with docker-compose move to Kubernetes.`,
// PersitentPreRun will be "inherited" by all children and ran before *every* command unless // PersistentPreRun will be "inherited" by all children and ran before *every* command unless
// the child has overridden the functionality. This functionality was implemented to check / modify // the child has overridden the functionality. This functionality was implemented to check / modify
// all global flag calls regardless of app call. // all global flag calls regardless of app call.
PersistentPreRun: func(cmd *cobra.Command, args []string) { PersistentPreRun: func(cmd *cobra.Command, args []string) {

View File

@ -110,7 +110,7 @@ func checkUnsupportedKey(composeProject *project.Project) []string {
continue continue
} }
} }
//get yaml tag name instad of variable name //get yaml tag name instead of variable name
yamlTagName := strings.Split(f.Tag("yaml"), ",")[0] yamlTagName := strings.Split(f.Tag("yaml"), ",")[0]
if f.Name() == "Networks" { if f.Name() == "Networks" {
// networks always contains one default element, even it isn't declared in compose v2. // networks always contains one default element, even it isn't declared in compose v2.