Skip to content

Commit

Permalink
Merge pull request #3 from KeychainMDIP/2-rename-new-wallet-to-import…
Browse files Browse the repository at this point in the history
…-wallet

Renamed new-wallet command to import-wallet
  • Loading branch information
macterra authored Mar 4, 2024
2 parents e53fd5e + 176c1a0 commit 601f0f1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion keychain-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ program
.description('Keychain CLI tool');

program
.command('new-wallet <recovery-phrase>')
.command('create-wallet')
.description('Create new wallet (or show existing wallet)')
.action(() => {
const wallet = keymaster.loadWallet();
console.log(JSON.stringify(wallet, null, 4));
});

program
.command('import-wallet <recovery-phrase>')
.description('Create new wallet from a recovery phrase')
.action((recoveryPhrase) => {
const wallet = keymaster.newWallet(recoveryPhrase);
Expand Down

0 comments on commit 601f0f1

Please sign in to comment.