Skip to content

Commit

Permalink
move ls alias
Browse files Browse the repository at this point in the history
  • Loading branch information
brandenrodgers committed Nov 22, 2024
1 parent 3d7da09 commit da24fc0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion commands/__tests__/function.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('commands/function', () => {

describe('builder', () => {
const subcommands = [
['list', { ...list, aliases: 'ls' }],
['list', list],
['deploy', deploy],
['server', server],
];
Expand Down
5 changes: 1 addition & 4 deletions commands/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ exports.describe = i18n(`${i18nKey}.describe`);

exports.builder = yargs => {
yargs
.command({
...list,
aliases: 'ls',
})
.command(list)
.command(deploy)
.command(server)
.demandCommand(1, '');
Expand Down
2 changes: 1 addition & 1 deletion commands/function/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const { i18n } = require('../../lib/lang');
const i18nKey = 'commands.function.subcommands.list';
const { EXIT_CODES } = require('../../lib/enums/exitCodes');

exports.command = 'list';
exports.command = ['list', 'ls'];
exports.describe = i18n(`${i18nKey}.describe`);

exports.handler = async options => {
Expand Down

0 comments on commit da24fc0

Please sign in to comment.