Skip to content

Commit

Permalink
fix: config not validated
Browse files Browse the repository at this point in the history
Ensures the configuration is checked for validity when executing the affected commands.

Fixes #2145
  • Loading branch information
oliversalzburg committed Aug 25, 2021
1 parent bf1c9e3 commit e0dfa56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/commands/ClearCacheCommand.ts
Expand Up @@ -11,7 +11,7 @@ export class ClearCacheCommand implements CommandModule {
* @inheritdoc
*/
async handler(args: Arguments) {
const config = await CLIHelper.getConfiguration(false);
const config = await CLIHelper.getConfiguration();

if (!config.get('cache').enabled) {
CLIHelper.dump(c.red('Metadata cache is disabled in your configuration. Set cache.enabled to true to use this command.'));
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/GenerateCacheCommand.ts
Expand Up @@ -12,7 +12,7 @@ export class GenerateCacheCommand implements CommandModule {
* @inheritDoc
*/
async handler(args: Arguments) {
const config = await CLIHelper.getConfiguration(false);
const config = await CLIHelper.getConfiguration();

if (!config.get('cache').enabled) {
return CLIHelper.dump(c.red('Metadata cache is disabled in your configuration. Set cache.enabled to true to use this command.'));
Expand Down

0 comments on commit e0dfa56

Please sign in to comment.