Skip to content

Commit d33150a

Browse files
committed
Merge pull request #78 from djquan/master
Remove deprecated peek action
2 parents 96dc1c7 + 9f10513 commit d33150a

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

main.go

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -162,31 +162,6 @@ func main() {
162162
logout(c.GlobalString("config"))
163163
},
164164
},
165-
{
166-
Name: "peek",
167-
ShortName: "p",
168-
Usage: "Fetch upcoming assignment from exercism.io",
169-
Action: func(c *cli.Context) {
170-
config, err := configuration.FromFile(c.GlobalString("config"))
171-
if err != nil {
172-
fmt.Println("Are you sure you are logged in? Please login again.")
173-
return
174-
}
175-
assignments, err := FetchAssignments(config,
176-
FetchEndpoints["next"])
177-
if err != nil {
178-
fmt.Println(err)
179-
return
180-
}
181-
182-
for _, a := range assignments {
183-
err := SaveAssignment(config.ExercismDirectory, a)
184-
if err != nil {
185-
fmt.Println(err)
186-
}
187-
}
188-
},
189-
},
190165
{
191166
Name: "restore",
192167
ShortName: "r",

0 commit comments

Comments
 (0)