File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Flags , SfCommand } from "@salesforce/sf-plugins-core" ;
22import { ComponentSetBuilder } from "@salesforce/source-deploy-retrieve" ;
3- import { readFromOrg } from "../../component-set.js" ;
4- import { writeComponentSetToDisk } from "../../component-set.js" ;
3+ import { readFromOrg , writeComponentSetToDisk } from "../../component-set.js" ;
54
6- export class CrudMdapiRead extends SfCommand < unknown > {
5+ type CrudMdapiReadResult = {
6+ success : boolean ;
7+ files : Awaited < ReturnType < typeof writeComponentSetToDisk > > ;
8+ } ;
9+
10+ export class CrudMdapiRead extends SfCommand < CrudMdapiReadResult > {
711 public static readonly summary = "Read Metadata using the CRUD Metadata API" ;
812 public static readonly description =
913 "Read Metadata e.g. full Profiles using the CRUD Metadata API, convert the JSON result to XML and write as source format to disk." ;
@@ -53,7 +57,7 @@ export class CrudMdapiRead extends SfCommand<unknown> {
5357
5458 public static readonly requiresProject = true ;
5559
56- public async run ( ) : Promise < unknown > {
60+ public async run ( ) : Promise < CrudMdapiReadResult > {
5761 const { flags } = await this . parse ( CrudMdapiRead ) ;
5862
5963 // 1/4 build a ComponentSet from the flags
You can’t perform that action at this time.
0 commit comments