File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66* Stop supporting legacy config files (~ /.exercism.go)
77* Deleted deprecated login/logout commands
88* Deleted deprecated key names in config
9+ * [ #153 ] ( https://github.com/exercism/cli/pull/153 ) : Refactored configuration package - [ @kytrinyx ] ( https://github.com/kytrinyx )
910* Your contribution here
1011
1112## v1.9.2 (Jan 11, 2015)
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import (
1313// If a setting is not passed as an argument, default
1414// values are used.
1515func Configure (ctx * cli.Context ) {
16- c , err := config .Read (ctx .GlobalString ("config" ))
16+ c , err := config .New (ctx .GlobalString ("config" ))
1717 if err != nil {
1818 log .Fatal (err )
1919 }
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ func Debug(ctx *cli.Context) {
2424 }
2525 fmt .Printf ("Home Dir: %s\n " , dir )
2626
27- c , err := config .Read (ctx .GlobalString ("config" ))
27+ c , err := config .New (ctx .GlobalString ("config" ))
2828 if err != nil {
2929 log .Fatal (err )
3030 }
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
1212
1313// Demo returns one problem for each active track.
1414func Demo (ctx * cli.Context ) {
15- c , err := config .Read (ctx .GlobalString ("config" ))
15+ c , err := config .New (ctx .GlobalString ("config" ))
1616 if err != nil {
1717 log .Fatal (err )
1818 }
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import (
1414
1515// Download returns specified submissions and related problem.
1616func Download (ctx * cli.Context ) {
17- c , err := config .Read (ctx .GlobalString ("config" ))
17+ c , err := config .New (ctx .GlobalString ("config" ))
1818 if err != nil {
1919 log .Fatal (err )
2020 }
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
1212
1313// Fetch returns exercism problems.
1414func Fetch (ctx * cli.Context ) {
15- c , err := config .Read (ctx .GlobalString ("config" ))
15+ c , err := config .New (ctx .GlobalString ("config" ))
1616 if err != nil {
1717 log .Fatal (err )
1818 }
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
1212
1313// Restore returns a user's solved problems.
1414func Restore (ctx * cli.Context ) {
15- c , err := config .Read (ctx .GlobalString ("config" ))
15+ c , err := config .New (ctx .GlobalString ("config" ))
1616 if err != nil {
1717 log .Fatal (err )
1818 }
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ func Submit(ctx *cli.Context) {
1818 log .Fatal ("Please enter a file name" )
1919 }
2020
21- c , err := config .Read (ctx .GlobalString ("config" ))
21+ c , err := config .New (ctx .GlobalString ("config" ))
2222 if err != nil {
2323 log .Fatal (err )
2424 }
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
1212
1313// Tracks lists available tracks.
1414func Tracks (ctx * cli.Context ) {
15- c , err := config .Read (ctx .GlobalString ("config" ))
15+ c , err := config .New (ctx .GlobalString ("config" ))
1616 if err != nil {
1717 log .Fatal (err )
1818 }
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import (
1313// If no iteration is specified, the most recent iteration
1414// is deleted.
1515func Unsubmit (ctx * cli.Context ) {
16- c , err := config .Read (ctx .GlobalString ("config" ))
16+ c , err := config .New (ctx .GlobalString ("config" ))
1717 if err != nil {
1818 log .Fatal (err )
1919 }
You can’t perform that action at this time.
0 commit comments