From bd9eb18a76d35f641cc974fb3f5ea556aacb5bce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Santos?= Date: Thu, 13 Oct 2022 00:22:12 +0100 Subject: [PATCH 1/5] Fix submit command usage --- cmd/submit.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/submit.go b/cmd/submit.go index aaf3a93c1..ad4704cb7 100644 --- a/cmd/submit.go +++ b/cmd/submit.go @@ -19,12 +19,14 @@ import ( // submitCmd lets people upload a solution to the website. var submitCmd = &cobra.Command{ - Use: "submit FILE1 [FILE2 ...]", + Use: "submit [FILE1 ...]", Aliases: []string{"s"}, Short: "Submit your solution to an exercise.", Long: `Submit your solution to an Exercism exercise. Call the command with the list of files you want to submit. + If you omit the list of files, the CLI will attempt to submit + automatically the appropriate solution files for the exercise. `, RunE: func(cmd *cobra.Command, args []string) error { cfg := config.NewConfig() From 875cf2ec1a0f7585700e5c65f3d40e78c3660072 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Thu, 2 May 2024 09:30:16 +0200 Subject: [PATCH 2/5] Update cmd/submit.go Co-authored-by: Victor Goff --- cmd/submit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/submit.go b/cmd/submit.go index ad4704cb7..bc020c556 100644 --- a/cmd/submit.go +++ b/cmd/submit.go @@ -26,7 +26,7 @@ var submitCmd = &cobra.Command{ Call the command with the list of files you want to submit. If you omit the list of files, the CLI will attempt to submit - automatically the appropriate solution files for the exercise. + the appropriate solution files for the exercise. `, RunE: func(cmd *cobra.Command, args []string) error { cfg := config.NewConfig() From 5e863901424a79288a46fb3555db191bda44c94c Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Tue, 7 May 2024 09:59:12 +0200 Subject: [PATCH 3/5] Update cmd/submit.go --- cmd/submit.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/submit.go b/cmd/submit.go index bc020c556..0952cc0fa 100644 --- a/cmd/submit.go +++ b/cmd/submit.go @@ -25,8 +25,8 @@ var submitCmd = &cobra.Command{ Long: `Submit your solution to an Exercism exercise. Call the command with the list of files you want to submit. - If you omit the list of files, the CLI will attempt to submit - the appropriate solution files for the exercise. + If you omit the list of files, the CLI will submit the + default solution files for the exercise. `, RunE: func(cmd *cobra.Command, args []string) error { cfg := config.NewConfig() From 0d788520e1394e084c6cd2f065ad899fe476839b Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Tue, 7 May 2024 10:00:43 +0200 Subject: [PATCH 4/5] Update cmd/submit.go --- cmd/submit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/submit.go b/cmd/submit.go index 0952cc0fa..676aa4d0a 100644 --- a/cmd/submit.go +++ b/cmd/submit.go @@ -19,7 +19,7 @@ import ( // submitCmd lets people upload a solution to the website. var submitCmd = &cobra.Command{ - Use: "submit [FILE1 ...]", + Use: "submit [ ...]", Aliases: []string{"s"}, Short: "Submit your solution to an exercise.", Long: `Submit your solution to an Exercism exercise. From c64076716c2cd21a16caeb7f0fdb6d2bda1ac294 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Tue, 7 May 2024 10:01:32 +0200 Subject: [PATCH 5/5] Another format --- cmd/submit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/submit.go b/cmd/submit.go index 676aa4d0a..eb00aa1f4 100644 --- a/cmd/submit.go +++ b/cmd/submit.go @@ -19,7 +19,7 @@ import ( // submitCmd lets people upload a solution to the website. var submitCmd = &cobra.Command{ - Use: "submit [ ...]", + Use: "submit [ ...]", Aliases: []string{"s"}, Short: "Submit your solution to an exercise.", Long: `Submit your solution to an Exercism exercise.