A CommandFactory that can discover commands defined in YAML or JSON
| Modifiers | Name | Description |
|---|---|---|
protected groovy.json.JsonSlurper |
jsonSlurper |
|
protected Yaml |
yamlParser |
| Type | Name and description |
|---|---|
private java.lang.String |
fileNamePattern |
private Collection |
matchingFileExtensions |
| Constructor and description |
|---|
YamlCommandFactory
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected Command |
createCommand(Profile profile, java.lang.String commandName, Resource resource, Map data) |
|
protected Map |
readCommandFile(Resource resource) |
| Methods inherited from class | Name |
|---|---|
class ResourceResolvingCommandFactory |
createCommand, evaluateFileName, findCommandResources, findCommands, getCommandResolvers, getMatchingFileExtensions, readCommandFile |