UNPKG

zcatalyst-cli

Version:

Command Line Tool for CATALYST

32 lines (28 loc) 999 B
// 'use strict'; // const font = require('ansi-colors'); // const _ = require('../../lib/util_modules'); // const Command = require('../../lib/internal/command'); // module.exports = new Command('console:cache') // .description('Launch a shell with Catalyst Cache functionalities') // .needs('auth', [ // _.CONSTANTS.SCOPE.cache_create, // _.CONSTANTS.SCOPE.cache_read, // _.CONSTANTS.SCOPE.cache_delete // ]) // .action(function(options) { // if (!options.project) { // return _.PROMISE.reject( // 'Must have an active project to use this feature. Try ' + font.bold('catalyst use') // ); // } // let setup = _.JS.set({}, 'repl.feature', 'cache'); // return require('../lib/replserver')(setup, options).then(() => { // _.LOGGER.info(); // _.LOGGER.info( // 'Instructions for the Cache Shell can be found at: ' + // font.underline.bold( // 'https://zoho.com/catalyst/help/cli-functionalities.html#Console_Cache' // ) // ); // }); // });