Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using less verbose names #13

Merged
merged 1 commit into from
Oct 20, 2023
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
2 changes: 1 addition & 1 deletion src/commands/account/index.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <chain>', 'The chain to create the account on. Defaults to "jungle4".')
.option('-c, --chain <chain>', 'The chain to create the account on. Defaults to "jungle4".')
.option(
'--account-name <accountName>',
'-n, --name <accountName>',
'Account name for the new account. Must end with ".gm". If not provided, a random name is generated.'
)
.option(
'--public-key <publicKey>',
'-k, --key <publicKey>',
'Public key for the new account. If not provided, keys are generated.'
)
.action(createAccountFromCommand)
Expand Down
Loading