Skip to content

Commit

Permalink
Merge branch 'main' into test-command-java-gradle-wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored May 7, 2024
2 parents e54731c + 0d2cbbd commit 695512b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
8 changes: 6 additions & 2 deletions cmd/open.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 3 additions & 1 deletion cmd/submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ import (

// submitCmd lets people upload a solution to the website.
var submitCmd = &cobra.Command{
Use: "submit FILE1 [FILE2 ...]",
Use: "submit [<FILE> ...]",
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()
Expand Down
8 changes: 4 additions & 4 deletions cmd/troubleshoot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -227,7 +227,7 @@ Latest: {{ with .Version.Latest }}{{ . }}{{ else }}<unknown>{{ 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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 695512b

Please sign in to comment.