From f2ee85a948667cf7bf7275e2211ee48bab963cdd Mon Sep 17 00:00:00 2001 From: Glenn Jackman Date: Thu, 2 May 2024 03:28:44 -0400 Subject: [PATCH 1/4] troubleshoot command should not recommend creating a github issue (#1122) Co-authored-by: Erik Schierboom --- cmd/troubleshoot.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/troubleshoot.go b/cmd/troubleshoot.go index 5fd134d3c..8e5572794 100644 --- a/cmd/troubleshoot.go +++ b/cmd/troubleshoot.go @@ -26,7 +26,7 @@ var troubleshootCmd = &cobra.Command{ Long: `Provides output to help with troubleshooting. If you're running into trouble, copy and paste the output from the troubleshoot -command into a GitHub issue so we can help figure out what's going on. +command into a topic on the Exercism forum so we can help figure out what's going on. `, RunE: func(cmd *cobra.Command, args []string) error { cli.TimeoutInSeconds = cli.TimeoutInSeconds * 2 @@ -255,8 +255,8 @@ API Reachability * {{ .Latency }} {{ end }} -If you are having trouble please file a GitHub issue at -https://github.com/exercism/exercism.io/issues and include +If you are having trouble, please create a new topic in the Exercism forum +at https://forum.exercism.org/c/support/cli/10 and include this information. {{ if not .Censor }} Don't share your API key. Keep that private. From 33ce248e28d29ed1bac7704448c57d505f0541f4 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Thu, 2 May 2024 09:48:21 +0200 Subject: [PATCH 2/4] Fix the release notes link (#1140) --- cmd/troubleshoot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/troubleshoot.go b/cmd/troubleshoot.go index 8e5572794..4ea5b1444 100644 --- a/cmd/troubleshoot.go +++ b/cmd/troubleshoot.go @@ -227,7 +227,7 @@ Latest: {{ with .Version.Latest }}{{ . }}{{ else }}{{ end }} {{ end -}} {{ if not .Version.UpToDate }} Call 'exercism upgrade' to get the latest version. -See the release notes at https://github.com/exercism/cli/releases/tag/{{ .Version.Latest }} for details. +See the release notes at https://github.com/exercism/cli/releases/tag/v{{ .Version.Latest }} for details. {{ end }} Operating System From 13d89051e6e6cd516715880481501a3c0ad7b22a Mon Sep 17 00:00:00 2001 From: Fabian Becker Date: Thu, 2 May 2024 12:14:15 +0200 Subject: [PATCH 3/4] Change open cmd to default to current directory (#1070) fixes #1069 Co-authored-by: Erik Schierboom --- cmd/open.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/open.go b/cmd/open.go index dd41a3cf6..627eac639 100644 --- a/cmd/open.go +++ b/cmd/open.go @@ -15,9 +15,13 @@ var openCmd = &cobra.Command{ Pass the path to the directory that contains the solution you want to see on the website. `, - Args: cobra.ExactArgs(1), + Args: cobra.MaximumNArgs(1), RunE: func(cmd *cobra.Command, args []string) error { - metadata, err := workspace.NewExerciseMetadata(args[0]) + path := "." + if len(args) == 1 { + path = args[0] + } + metadata, err := workspace.NewExerciseMetadata(path) if err != nil { return err } From 0d2cbbd77b6ecc931fa6920b85b9b7028203dcb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Santos?= Date: Tue, 7 May 2024 09:05:10 +0100 Subject: [PATCH 4/4] Fix submit command usage (#1065) * Fix submit command usage * Update cmd/submit.go Co-authored-by: Victor Goff * Update cmd/submit.go * Update cmd/submit.go * Another format --------- Co-authored-by: Erik Schierboom Co-authored-by: Victor Goff --- cmd/submit.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/submit.go b/cmd/submit.go index aaf3a93c1..eb00aa1f4 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 [ ...]", 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 submit the + default solution files for the exercise. `, RunE: func(cmd *cobra.Command, args []string) error { cfg := config.NewConfig()