import { Arguments , Argv } from 'yargs' ; import Explorer from '../../service/explorer' ; import { logger } from '../../util' ; import config from '../../config' ; export const command = 'update' ; export const desc = '更新 Blockchain explorer 連接的 Peer' ; export const builder = ( yargs ) => { return yargs ; } ; export const handler = async ( argv ) => { logger . debug ( 'exec explorer update' ) ; const explorer = new Explorer ( config ) ; await explorer . updateForMyOrg ( ) ; } ;