@@ -64,6 +64,7 @@ func askEndOfFile(question string) string {
64
64
return result
65
65
}
66
66
67
+ // Fill the given task reference according to input coming from the reader object.
67
68
func fillTaskFromQuestions (task * config.Task , reader io.Reader ) error {
68
69
task .Name = ask (reader , "Task Name?" , task .Name )
69
70
task .TimeLimit = askInt (reader , "Time limit in ms?" , task .TimeLimit )
@@ -76,9 +77,10 @@ func fillTaskFromQuestions(task *config.Task, reader io.Reader) error {
76
77
Output : output ,
77
78
})
78
79
}
79
- // TODO(chermehdi): This information is irrelevant now, because we don't do anything special with the languages sections, make sure to remove
80
- // When this is updated.
81
- isJava := askBool (reader , "Is your language Java (you will be asked other questions if it's a yes)? (Y/N)?" , false )
80
+ // TODO(chermehdi): This information is irrelevant now, because we don't do anything special with the languages
81
+ // sections, make sure to remove When this is updated.
82
+ isJava := askBool (reader , "Is your language Java (you will be asked other questions if it's a yes)? (Y/N)?" ,
83
+ false )
82
84
if isJava {
83
85
className := ask (reader , "\n Main class name?" , "Main" )
84
86
// Avoid class names with strings
@@ -137,7 +139,7 @@ var CreateTaskCommand = cli.Command{
137
139
Name : "create" ,
138
140
Aliases : []string {"c" },
139
141
Usage : "Create a new task directory" ,
140
- UsageText : "egor showcases " ,
142
+ UsageText : "egor create or egor create -i " ,
141
143
Action : CreateTaskAction ,
142
144
Flags : []cli.Flag {
143
145
& cli.BoolFlag {
0 commit comments