From c644aa5d5f19dfe187b185898c03713f5782a3bb Mon Sep 17 00:00:00 2001 From: fangyuan Date: Wed, 12 Jun 2019 23:31:34 +0800 Subject: [PATCH] fix typos in codes --- pkg/cli/job/delete.go | 3 ++- pkg/cli/job/resume.go | 3 ++- pkg/cli/job/suspend.go | 2 +- pkg/cli/job/view.go | 2 +- pkg/cli/queue/get.go | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pkg/cli/job/delete.go b/pkg/cli/job/delete.go index e6f697b500..05789818ec 100644 --- a/pkg/cli/job/delete.go +++ b/pkg/cli/job/delete.go @@ -18,6 +18,7 @@ package job import ( "fmt" + "github.com/spf13/cobra" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -48,7 +49,7 @@ func DeleteJob() error { } if deleteJobFlags.JobName == "" { - err := fmt.Errorf("job name is mandaorty to delete a particular job") + err := fmt.Errorf("job name is mandatory to delete a particular job") return err } diff --git a/pkg/cli/job/resume.go b/pkg/cli/job/resume.go index d73c1d6dcd..8779bd70e1 100644 --- a/pkg/cli/job/resume.go +++ b/pkg/cli/job/resume.go @@ -17,6 +17,7 @@ package job import ( "fmt" + "github.com/spf13/cobra" "volcano.sh/volcano/pkg/apis/batch/v1alpha1" @@ -44,7 +45,7 @@ func ResumeJob() error { return err } if resumeJobFlags.JobName == "" { - err := fmt.Errorf("job name is mandaorty to resume a particular job") + err := fmt.Errorf("job name is mandatory to resume a particular job") return err } diff --git a/pkg/cli/job/suspend.go b/pkg/cli/job/suspend.go index 504cdd2381..fb0ebf7fd6 100644 --- a/pkg/cli/job/suspend.go +++ b/pkg/cli/job/suspend.go @@ -45,7 +45,7 @@ func SuspendJob() error { } if suspendJobFlags.JobName == "" { - err := fmt.Errorf("job name is mandaorty to suspend a particular job") + err := fmt.Errorf("job name is mandatory to suspend a particular job") return err } diff --git a/pkg/cli/job/view.go b/pkg/cli/job/view.go index 65c11a37d5..a4d9209fc4 100644 --- a/pkg/cli/job/view.go +++ b/pkg/cli/job/view.go @@ -36,7 +36,7 @@ func ViewJob() error { return err } if viewJobFlags.JobName == "" { - err := fmt.Errorf("job name (specified by --name or -n) is mandaorty to view a particular job") + err := fmt.Errorf("job name (specified by --name or -n) is mandatory to view a particular job") return err } diff --git a/pkg/cli/queue/get.go b/pkg/cli/queue/get.go index bc5a256bcf..4b3c946e42 100644 --- a/pkg/cli/queue/get.go +++ b/pkg/cli/queue/get.go @@ -52,7 +52,7 @@ func GetQueue() error { } if getQueueFlags.Name == "" { - err := fmt.Errorf("name is mandaorty to get the particular queue details") + err := fmt.Errorf("name is mandatory to get the particular queue details") return err }