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
3 changes: 2 additions & 1 deletion src/commands/deprecated/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {logHelpDev} from '../../help/deprecated/dev.help';
import {logHelpEmulatorStart} from '../../help/emulator.start.help';
import {logHelpEmulatorWait} from '../../help/emulator.wait.help';
import {logHelpFunctionsBuild} from '../../help/functions.build.help';
import {logHelpFunctionsEject} from '../../help/functions.eject.help';
import {logHelpFunctionsEject} from '../../help/functions.init.help';
import {start} from '../../services/emulator/start.services';
import {stop} from '../../services/emulator/stop.services';
import {wait} from '../../services/emulator/wait.services';
Expand All @@ -27,6 +27,7 @@ export const dev = async (args?: string[]) => {
await wait(args);
break;
case 'eject':
case 'init':
await eject(args);
break;
case 'build':
Expand Down
2 changes: 1 addition & 1 deletion src/commands/functions.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {red} from 'kleur';
import {logHelpFunctionsBuild} from '../help/functions.build.help';
import {logHelpFunctionsEject} from '../help/functions.eject.help';
import {logHelpFunctions} from '../help/functions.help';
import {logHelpFunctionsEject} from '../help/functions.init.help';
import {logHelpFunctionsPublish} from '../help/functions.publish.help';
import {logHelpFunctionsUpgrade} from '../help/functions.upgrade.help';
import {build} from '../services/functions/build/build.services';
Expand Down
2 changes: 1 addition & 1 deletion src/constants/help.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const EMULATOR_CLEAR_DESCRIPTION = 'Clear the local emulator state (volum
export const FUNCTIONS_PUBLISH_DESCRIPTION = 'Publish a new version of your serverless functions.';
export const FUNCTIONS_UPGRADE_DESCRIPTION = 'Upgrade your serverless functions.';
export const FUNCTIONS_BUILD_DESCRIPTION = 'Build your serverless functions.';
export const FUNCTIONS_EJECT_DESCRIPTION =
export const FUNCTIONS_INIT_DESCRIPTION =
'Generate the required files to begin developing serverless functions in your project.';

export const FUNCTIONS_BUILD_NOTES = `- If no language is provided, the CLI attempts to determine the appropriate build.
Expand Down
2 changes: 1 addition & 1 deletion src/help/deprecated/dev.help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Subcommands:
${magenta('stop')} Alias for ${green('juno')} ${cyan('emulator')} ${magenta('stop')}.
${magenta('wait')} Alias for ${green('juno')} ${cyan('emulator')} ${magenta('wait')}.
${magenta('build')} Alias for ${green('juno')} ${cyan('functions')} ${magenta('build')}.
${magenta('eject')} Alias for ${green('juno')} ${cyan('functions')} ${magenta('eject')}.`;
${magenta('init')} Alias for ${green('juno')} ${cyan('functions')} ${magenta('init')}.`;

const doc = `${EMULATOR_DESCRIPTION}

Expand Down
3 changes: 1 addition & 2 deletions src/help/functions.help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ const usage = `Usage: ${green('juno')} ${cyan('functions')} ${magenta('<subcomma

Subcommands:
${magenta('build')} Build your functions.
${magenta('eject')} Scaffold the necessary files for developing your serverless functions.
${magenta('init')} Alias for ${magenta('eject')}.
${magenta('init')} Scaffold the necessary files for developing your serverless functions.
${magenta('publish')} Publish a new version of your functions.
${magenta('upgrade')} Upgrade your satellite's serverless functions.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {cyan, green, magenta, yellow} from 'kleur';
import {FUNCTIONS_EJECT_DESCRIPTION, OPTION_HELP} from '../constants/help.constants';
import {FUNCTIONS_INIT_DESCRIPTION, OPTION_HELP} from '../constants/help.constants';
import {helpOutput} from './common.help';
import {TITLE} from './help';

const usage = `Usage: ${green('juno')} ${cyan('functions')} ${magenta('eject')} ${yellow('[options]')}
const usage = `Usage: ${green('juno')} ${cyan('functions')} ${magenta('init')} ${yellow('[options]')}

Options:
${yellow('-l, --lang')} Specify the language for building the serverless functions: ${magenta('rust')}, ${magenta('typescript')} or ${magenta('javascript')}.
Expand All @@ -13,7 +13,7 @@ Notes:

- Language can be shortened to ${magenta('rs')} for Rust, ${magenta('ts')} for TypeScript and ${magenta('mjs')} for JavaScript.`;

const doc = `${FUNCTIONS_EJECT_DESCRIPTION}
const doc = `${FUNCTIONS_INIT_DESCRIPTION}

\`\`\`
${usage}
Expand All @@ -22,7 +22,7 @@ ${usage}

const help = `${TITLE}

${FUNCTIONS_EJECT_DESCRIPTION}
${FUNCTIONS_INIT_DESCRIPTION}

${usage}
`;
Expand Down
Loading