Skip to content

Commit

Permalink
switch to named exports
Browse files Browse the repository at this point in the history
  • Loading branch information
brandenrodgers committed Jan 15, 2025
1 parent 1d155e9 commit cac1307
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions commands/account/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import { getTableContents } from '../../lib/ui/table';
import { CommonOptions } from '../../types/Yargs';

const i18nKey = 'commands.account.subcommands.info';
const describe = i18n(`${i18nKey}.describe`);
export const describe = i18n(`${i18nKey}.describe`);

const command = 'info [account]';
export const command = 'info [account]';

async function handler(options: CommonOptions): Promise<void> {
export async function handler(options: CommonOptions): Promise<void> {
const { derivedAccountId } = options;
const config = getAccountConfig(derivedAccountId);
// check if the provided account is using a personal access key, if not, show an error
Expand Down Expand Up @@ -41,7 +41,7 @@ async function handler(options: CommonOptions): Promise<void> {
}
}

function builder(yargs: Argv): Argv {
export function builder(yargs: Argv): Argv {
addConfigOptions(yargs);

yargs.example([
Expand All @@ -52,13 +52,3 @@ function builder(yargs: Argv): Argv {

return yargs;
}

const yargsCommand = {
describe,
command,
handler,
builder,
};

export default yargsCommand;
module.exports = yargsCommand;

0 comments on commit cac1307

Please sign in to comment.