diff --git a/src/commands/deprecated/clear.ts b/src/commands/deprecated/clear.ts index 04c56776..02fe1cfb 100644 --- a/src/commands/deprecated/clear.ts +++ b/src/commands/deprecated/clear.ts @@ -1,4 +1,4 @@ -import {logHelpEmulatorClear} from '../../help/hosting.clear.help'; +import {logHelpClear} from '../../help/deprecated/clear.help'; import {clear as clearServices} from '../../services/assets/clear.services'; /** @@ -12,5 +12,5 @@ export const clear = async (args?: string[]) => { * @deprecated */ export const helpClear = (args?: string[]) => { - logHelpEmulatorClear(args); + logHelpClear(args); }; diff --git a/src/commands/deprecated/deploy.ts b/src/commands/deprecated/deploy.ts index ecf28711..97be5e16 100644 --- a/src/commands/deprecated/deploy.ts +++ b/src/commands/deprecated/deploy.ts @@ -1,4 +1,4 @@ -import {logHelpHostingDeploy} from '../../help/hosting.deploy.help'; +import {logHelpDeploy} from '../../help/deprecated/deploy.help'; import {deploy as deployServices} from '../../services/assets/deploy.services'; /** @@ -12,5 +12,5 @@ export const deploy = async (args?: string[]) => { * @deprecated */ export const helpDeploy = (args?: string[]) => { - logHelpHostingDeploy(args); + logHelpDeploy(args); }; diff --git a/src/help/deprecated/clear.help.ts b/src/help/deprecated/clear.help.ts new file mode 100644 index 00000000..295dd23a --- /dev/null +++ b/src/help/deprecated/clear.help.ts @@ -0,0 +1,24 @@ +import {cyan, green, magenta, yellow} from 'kleur'; +import {HOSTING_CLEAR_DESCRIPTION} from '../../constants/help.constants'; +import {helpOutput} from '../common.help'; +import {TITLE} from '../help'; + +const usage = `Alias for: ${green('juno')} ${cyan('hosting')} ${magenta('clear')} ${yellow('[options]')}`; + +const doc = `${HOSTING_CLEAR_DESCRIPTION} + +\`\`\` +${usage} +\`\`\` +`; + +const help = `${TITLE} + +${HOSTING_CLEAR_DESCRIPTION} + +${usage} +`; + +export const logHelpClear = (args?: string[]) => { + console.log(helpOutput(args) === 'doc' ? doc : help); +}; diff --git a/src/help/deprecated/deploy.help.ts b/src/help/deprecated/deploy.help.ts new file mode 100644 index 00000000..019b9b48 --- /dev/null +++ b/src/help/deprecated/deploy.help.ts @@ -0,0 +1,24 @@ +import {cyan, green, magenta, yellow} from 'kleur'; +import {HOSTING_DEPLOY_DESCRIPTION} from '../../constants/help.constants'; +import {helpOutput} from '../common.help'; +import {TITLE} from '../help'; + +const usage = `Alias for: ${green('juno')} ${cyan('hosting')} ${magenta('deploy')} ${yellow('[options]')}`; + +const doc = `${HOSTING_DEPLOY_DESCRIPTION} + +\`\`\` +${usage} +\`\`\` +`; + +const help = `${TITLE} + +${HOSTING_DEPLOY_DESCRIPTION} + +${usage} +`; + +export const logHelpDeploy = (args?: string[]) => { + console.log(helpOutput(args) === 'doc' ? doc : help); +};