import BaseCommand from './BaseCommand'; import { TGetFunctionsReq, TGetFunctionsResp } from '../../../thrift/TCLIService_types'; import IThriftClient from '../../contracts/IThriftClient'; type Client = Pick; export default class GetFunctionsCommand extends BaseCommand { execute(data: TGetFunctionsReq): Promise { const request = new TGetFunctionsReq(data); return this.executeCommand(request, this.client.GetFunctions); } }