mirror of https://github.com/vapor/docs.git
Merge pull request #318 from 5t111111/fix-command-example-code
Fix example code in Command doc
This commit is contained in:
commit
7b29daf0d3
|
|
@ -110,7 +110,7 @@ struct CowsayCommand: Command {
|
|||
...
|
||||
|
||||
/// See `Command`.
|
||||
func run(using context: CommandContext) throws -> Future {
|
||||
func run(using context: CommandContext) throws -> Future<Void> {
|
||||
let message = try context.argument("message")
|
||||
/// We can use requireOption here since both options have default values
|
||||
let eyes = try context.requireOption("eyes")
|
||||
|
|
|
|||
Loading…
Reference in New Issue