Skip to content

Commit 99b6bdc

Browse files
committed
Merge pull request #299 from exercism/list-output
Use track ID and first problem on exercism list output
2 parents 1a20421 + c41f50f commit 99b6bdc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The exercism CLI follows [semantic versioning](http://semver.org/).
66

77
## Next Release
88
* **Your contribution here**
9+
* [#299](https://github.com/exercism/cli/pull/299) List output uses track ID and problem from list - [@Tonkpils]
910

1011
## v2.2.4 (2016-01-28)
1112

cmd/list.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/exercism/cli/config"
1010
)
1111

12-
const msgExplainFetch = "In order to fetch a specific assignment, call the fetch command with a specific assignment.\n\nexercism fetch ruby matrix"
12+
const msgExplainFetch = "In order to fetch a specific assignment, call the fetch command with a specific assignment.\n\nexercism fetch %s %s\n\n"
1313

1414
// List returns the full list of assignments for a given track.
1515
func List(ctx *cli.Context) {
@@ -37,5 +37,6 @@ func List(ctx *cli.Context) {
3737
for _, p := range problems {
3838
fmt.Printf("%s\n", p)
3939
}
40-
fmt.Printf("\n%s\n\n", msgExplainFetch)
40+
fmt.Println()
41+
fmt.Printf(msgExplainFetch, trackID, problems[0])
4142
}

0 commit comments

Comments
 (0)