-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtasklist.go
76 lines (49 loc) · 1.61 KB
/
tasklist.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package questions
import (
"github.com/spf13/cobra"
)
func NewTaskListCommand(params NewQuestionCommandParams) *cobra.Command {
params.name = "Task List"
params.abbr = "tl"
params.maxTemplate = taskListTemplate
params.minTemplate = taskListTemplateMin
params.long = taskListLongDescription
return createQuestionCommand(params)
}
const taskListLongDescription = `Tasklist Challenges allow you to present tasks the student needs to complete.
Students check off the tasks as they complete them, and the challenge evaluates
as correct when all tasks are completed.`
const taskListTemplate = `<!-- >>>>>>>>>>>>>>>>>>>>>> BEGIN CHALLENGE >>>>>>>>>>>>>>>>>>>>>> -->
<!-- Replace everything in square brackets [] and remove brackets -->
### !challenge
* type: tasklist
* id: %s
* title: [text, a short question title]
<!-- * points: [1] (optional, the number of points for scoring as a checkpoint) -->
<!-- * topics: [python, pandas] (Checkpoints only, optional the topics for analyzing points) -->
##### !question
[optional, markdown, a prompt at the top of the tasklist]
##### !end-question
##### !options
* [Task 1]
* [Task 2]
* [Task 3, etc]
##### !end-options
<optional-attributes>
### !end-challenge
<!-- ======================= END CHALLENGE ======================= -->`
const taskListTemplateMin = `<!-- >>>>>>>>>>>>>>>>>>>>>> BEGIN CHALLENGE >>>>>>>>>>>>>>>>>>>>>> -->
### !challenge
* type: tasklist
* id: %s
* title:
##### !question
##### !end-question
##### !options
*
*
*
##### !end-options
<optional-attributes>
### !end-challenge
<!-- ======================= END CHALLENGE ======================= -->`