phly / keep-a-changelog

Tools for manipulating CHANGELOG.md files in Keep A Changelog format, including tagging and releasing.
https://phly.github.io/keep-a-changelog/
BSD 2-Clause "Simplified" License
182 stars 23 forks source link

Ensure EntryCommand works! #30

Closed weierophinney closed 6 years ago

weierophinney commented 6 years ago

After the previous round of changes, the EntryCommand would raise errors due to attempting to retrieve the global and token options, which were not defined in the command.

The token option is unneeded, so this patch changes GetConfigValuesTrait to test if the token option is present before trying to retrieve it.

The global option is still relevant, however, as it details where to get the provider from. This option was added to the EntryCommand.