7export const handleEthCliActions = async ({importMetaUrl, action, ethStatusCfg, getSafeEthVal, ethNetwork, extraCheckFnc}: { 8 importMetaUrl: string, action: string, ethStatusCfg: any, getSafeEthVal?: any, ethNetwork?: string | null, extraCheckFnc?: any, 11 const ethActionsH: Record<string, any> = {updateimg: updateimgAction(importMetaUrl)} 14 const ethstatus = async () => { 15 await eptMonEthPairs({ethStatusCfgs: [ethStatusCfg], getSafeEthVal, ethNetwork, extraCheckFnc}) 17 ethstatus.cliDescript = 'show sync status for this cluster' 18 ethActionsH.ethstatus = ethstatus 21 if (action === 'updateimg') { 22 await ethActionsH.updateimg() 26 if (action === 'ethstatus') { 27 await ethActionsH.ethstatus() 32 if (!resActionsH[action]) { 33 cliHelp({action, actionsH: {...ethActionsH, ...resActionsH}})