Skip to content

Commit c617623

Browse files
mehdi.cheracher@gmail.comchermehdi
authored andcommitted
Fix Docs, ready to review.
1 parent 8125d98 commit c617623

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

commands/create.go

+6-4
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ func askEndOfFile(question string) string {
6464
return result
6565
}
6666

67+
// Fill the given task reference according to input coming from the reader object.
6768
func fillTaskFromQuestions(task *config.Task, reader io.Reader) error {
6869
task.Name = ask(reader, "Task Name?", task.Name)
6970
task.TimeLimit = askInt(reader, "Time limit in ms?", task.TimeLimit)
@@ -76,9 +77,10 @@ func fillTaskFromQuestions(task *config.Task, reader io.Reader) error {
7677
Output: output,
7778
})
7879
}
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)
8284
if isJava {
8385
className := ask(reader, "\nMain class name?", "Main")
8486
// Avoid class names with strings
@@ -137,7 +139,7 @@ var CreateTaskCommand = cli.Command{
137139
Name: "create",
138140
Aliases: []string{"c"},
139141
Usage: "Create a new task directory",
140-
UsageText: "egor showcases",
142+
UsageText: "egor create or egor create -i",
141143
Action: CreateTaskAction,
142144
Flags: []cli.Flag{
143145
&cli.BoolFlag{

0 commit comments

Comments
 (0)