Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/commands/deprecated/clear.ts
Original file line number Diff line number Diff line change
@@ -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';

/**
Expand All @@ -12,5 +12,5 @@ export const clear = async (args?: string[]) => {
* @deprecated
*/
export const helpClear = (args?: string[]) => {
logHelpEmulatorClear(args);
logHelpClear(args);
};
4 changes: 2 additions & 2 deletions src/commands/deprecated/deploy.ts
Original file line number Diff line number Diff line change
@@ -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';

/**
Expand All @@ -12,5 +12,5 @@ export const deploy = async (args?: string[]) => {
* @deprecated
*/
export const helpDeploy = (args?: string[]) => {
logHelpHostingDeploy(args);
logHelpDeploy(args);
};
24 changes: 24 additions & 0 deletions src/help/deprecated/clear.help.ts
Original file line number Diff line number Diff line change
@@ -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);
};
24 changes: 24 additions & 0 deletions src/help/deprecated/deploy.help.ts
Original file line number Diff line number Diff line change
@@ -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);
};