Skip to content

Commit

Permalink
Update command wording
Browse files Browse the repository at this point in the history
  • Loading branch information
BoYang committed May 17, 2022
1 parent 5534979 commit 125540a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions sparkcli/cmd/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (

var deleteCmd = &cobra.Command{
Use: "delete <submissionId>",
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")
Expand Down
2 changes: 1 addition & 1 deletion sparkcli/cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion sparkcli/cmd/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var FollowLogs bool

var logCommand = &cobra.Command{
Use: "log <submissionId>",
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 {
Expand Down
4 changes: 2 additions & 2 deletions sparkcli/cmd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (

var statusCmd = &cobra.Command{
Use: "status <submissionId>",
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")
Expand Down
2 changes: 1 addition & 1 deletion sparkcli/cmd/submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var SparkConf []string
var submitCmd = &cobra.Command{
Use: "submit <application file> <application argument> <application argument>",
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")
Expand Down
2 changes: 1 addition & 1 deletion sparkcli/cmd/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
var uploadCmd = &cobra.Command{
Use: "upload <local file path>",
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")
Expand Down

0 comments on commit 125540a

Please sign in to comment.