(args: CommonArgs)
| 2 | import type { CommonArgs } from '../../types/cli'; |
| 3 | |
| 4 | export function command(args: CommonArgs) { |
| 5 | const { program } = args; |
| 6 | program |
| 7 | .description('Clear the wallet\'s transaction cache at BWS') |
| 8 | .usage('<walletName> --command clearcache [options]') |
| 9 | .optionsGroup('Clear Cache Options') |
| 10 | .parse(process.argv); |
| 11 | |
| 12 | const opts = program.opts(); |
| 13 | if (opts.help) { |
| 14 | program.help(); |
| 15 | } |
| 16 | |
| 17 | return opts; |
| 18 | } |
| 19 | |
| 20 | export async function clearCache(args: CommonArgs) { |
| 21 | const { wallet, opts } = args; |