UNPKG

@calvin_von/proxy-plugin-cache

Version:

A dalao-proxy plugin for cache response

18 lines (15 loc) 671 B
const storeCommand = require('../subcommands/store.command'); const cleanCommand = require('../subcommands/clean.command'); const changeCommand = require('../subcommands/change.command'); module.exports = function CacheCommand(program, register, config) { const plugin = this; program .command('cache') .description('manage the cache files') .forwardSubcommands() .use(function (command) { storeCommand.call(plugin, command, register, config, 'cache'); cleanCommand.call(plugin, command, register, config, 'cache'); changeCommand.call(plugin, command, register, config, 'cache'); }) }