features/todo.feature in gli-2.0.0 vs features/todo.feature in gli-2.1.0
- old
+ new
@@ -42,10 +42,51 @@
Examples:
| help |
| help |
| --version |
+ Scenario: Help completion mode
+ When I successfully run `todo help -c`
+ Then the output should contain:
+ """
+ ch2
+ chained
+ chained2
+ create
+ first
+ help
+ initconfig
+ list
+ ls
+ new
+ second
+ """
+
+ Scenario: Help completion mode for partial match
+ When I successfully run `todo help -c ch`
+ Then the output should contain:
+ """
+ ch2
+ chained
+ chained2
+ """
+
+ Scenario: Help completion mode for subcommands
+ When I successfully run `todo help -c list`
+ Then the output should contain:
+ """
+ contexts
+ tasks
+ """
+
+ Scenario: Help completion mode partial match for subcommands
+ When I successfully run `todo help -c list con`
+ Then the output should contain:
+ """
+ contexts
+ """
+
Scenario: Getting Help for a top level command of todo
When I successfully run `todo help list`
Then the output should contain:
"""
NAME
@@ -96,11 +137,11 @@
NAME
create - Create a new task or context
SYNOPSIS
todo [global options] create [command options]
- todo [global options] create [command options] contexts
- todo [global options] create [command options] tasks
+ todo [global options] create [command options] contexts [context_name]
+ todo [global options] create [command options] tasks task_name[, task_name]*
COMMANDS
<default> - Makes a new task
contexts - Make a new context
tasks - Make a new task