Skip to content

Commit

Permalink
Merge branch 'main' into fix-submit-usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored May 7, 2024
2 parents 5e86390 + 13d8905 commit 4921288
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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
2 changes: 1 addition & 1 deletion cmd/troubleshoot.go
Original file line number Diff line number Diff line change
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

0 comments on commit 4921288

Please sign in to comment.