From 125540ae8c8e34abf8d4f3c590a799f3984a68bc Mon Sep 17 00:00:00 2001 From: BoYang Date: Tue, 17 May 2022 13:26:26 -0700 Subject: [PATCH] Update command wording --- sparkcli/cmd/delete.go | 4 ++-- sparkcli/cmd/list.go | 2 +- sparkcli/cmd/log.go | 2 +- sparkcli/cmd/status.go | 4 ++-- sparkcli/cmd/submit.go | 2 +- sparkcli/cmd/upload.go | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sparkcli/cmd/delete.go b/sparkcli/cmd/delete.go index eac1a7f3b..1a9b9cb6e 100644 --- a/sparkcli/cmd/delete.go +++ b/sparkcli/cmd/delete.go @@ -26,8 +26,8 @@ import ( var deleteCmd = &cobra.Command{ Use: "delete ", - Short: "Delete a SparkApplication", - Long: `Delete a SparkApplication with a given submission id`, + Short: "Delete the application submission", + Long: ``, Run: func(cmd *cobra.Command, args []string) { if len(args) < 1 { fmt.Fprintln(os.Stderr, "must specify a submission id") diff --git a/sparkcli/cmd/list.go b/sparkcli/cmd/list.go index 6e56dbe04..038c2d766 100644 --- a/sparkcli/cmd/list.go +++ b/sparkcli/cmd/list.go @@ -27,7 +27,7 @@ var Limit int64 var listCmd = &cobra.Command{ Use: "list", Short: "List application submissions", - Long: `List application submissions`, + Long: ``, Run: func(cmd *cobra.Command, args []string) { client := NewBasicAuthClient(ServerUrl, User, Password) diff --git a/sparkcli/cmd/log.go b/sparkcli/cmd/log.go index 622ecc776..e604ddbf7 100644 --- a/sparkcli/cmd/log.go +++ b/sparkcli/cmd/log.go @@ -27,7 +27,7 @@ var FollowLogs bool var logCommand = &cobra.Command{ Use: "log ", - Short: "log is a sub-command that fetches logs of a Spark application.", + Short: "Fetch logs of the application by submission id", Long: ``, Run: func(cmd *cobra.Command, args []string) { if len(args) < 1 { diff --git a/sparkcli/cmd/status.go b/sparkcli/cmd/status.go index c5a3264f2..ffb227bb6 100644 --- a/sparkcli/cmd/status.go +++ b/sparkcli/cmd/status.go @@ -26,8 +26,8 @@ import ( var statusCmd = &cobra.Command{ Use: "status ", - Short: "Check status of a SparkApplication", - Long: `Check status of a SparkApplication with a given submission id`, + Short: "Get status of an application submission", + Long: ``, Run: func(cmd *cobra.Command, args []string) { if len(args) < 1 { fmt.Fprintln(os.Stderr, "must specify a submission id") diff --git a/sparkcli/cmd/submit.go b/sparkcli/cmd/submit.go index 32235e342..fcf12b25a 100644 --- a/sparkcli/cmd/submit.go +++ b/sparkcli/cmd/submit.go @@ -46,7 +46,7 @@ var SparkConf []string var submitCmd = &cobra.Command{ Use: "submit ", Short: "Submit a Spark application", - Long: `Submit a Spark application to the API gateway.`, + Long: ``, Run: func(cmd *cobra.Command, args []string) { if len(args) < 1 { fmt.Fprintln(os.Stderr, "must specify an application file") diff --git a/sparkcli/cmd/upload.go b/sparkcli/cmd/upload.go index 56886a9f5..29194c2a9 100644 --- a/sparkcli/cmd/upload.go +++ b/sparkcli/cmd/upload.go @@ -26,7 +26,7 @@ import ( var uploadCmd = &cobra.Command{ Use: "upload ", Short: "Upload a file", - Long: `Upload to the API gateway, which will save the file to S3 and return a S3 url`, + Long: `Upload to the API gateway, which will save the file to S3 and return an S3 url`, Run: func(cmd *cobra.Command, args []string) { if len(args) < 1 { fmt.Fprintln(os.Stderr, "must specify a local file to upload")