From b36cd52d5e64dc2fcafe998d4999fd09a1860a0d Mon Sep 17 00:00:00 2001 From: dafuga Date: Thu, 19 Oct 2023 22:47:43 -0700 Subject: [PATCH] enhancement: using less verbose names --- src/commands/account/index.ts | 2 +- src/index.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/commands/account/index.ts b/src/commands/account/index.ts index 0e692a9..d88d320 100644 --- a/src/commands/account/index.ts +++ b/src/commands/account/index.ts @@ -1,4 +1,4 @@ -import {APIClient, KeyType, PrivateKey, type NameType} from '@wharfkit/antelope' +import {APIClient, KeyType, type NameType, PrivateKey} from '@wharfkit/antelope' import {type ChainDefinition, type ChainIndices, Chains} from '@wharfkit/common' import {log} from '../../utils' diff --git a/src/index.ts b/src/index.ts index 6c279a5..8169948 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,21 +11,21 @@ program.version(version).name('wharfkit').description('Wharf Command Line Utilit // 1. Command to generate keys program - .command('generate-keys') + .command('keys') .description('Generate a new set of public and private keys') .action(generateKeysFromCommand) // 2. Command to create an account program - .command('create-account') + .command('account') .description('Create a new account with an optional public key') - .option('--chain ', 'The chain to create the account on. Defaults to "jungle4".') + .option('-c, --chain ', 'The chain to create the account on. Defaults to "jungle4".') .option( - '--account-name ', + '-n, --name ', 'Account name for the new account. Must end with ".gm". If not provided, a random name is generated.' ) .option( - '--public-key ', + '-k, --key ', 'Public key for the new account. If not provided, keys are generated.' ) .action(createAccountFromCommand)