Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | 3x 6x 1x | import chalk from 'chalk'; import BaseSubCommand from './baseSubCommand.js'; import { deployCommandParameters, deployCommandUsage } from '../utils/constants.js'; const tips = chalk.redBright( 'Deprecated! Please use ', chalk.yellowBright('`aelf-command send`'), ', check details in aelf-command `README.md`' ); /** * @typedef {import('../../types/rc/index.js').default} Registry */ class DeployCommand extends BaseSubCommand { /** * Constructs a new DeployCommand instance. * @param {Registry} rc - The registry instance. * @param {string} [name] - The name of the command. * @param {string} [description] - The description of the command. * @param {string[]} [usage] - The usage information for the command. */ constructor(rc, name = 'deploy', description = tips, usage = deployCommandUsage) { super(name, deployCommandParameters, description, [], usage, rc); } /** * Executes the deploy command. * @returns {Promise<void>} A promise that resolves when the command execution is complete. */ async run() { console.log(tips); } } export default DeployCommand; |