@@ -358,7 +358,7 @@ export interface Odo {
358358 createApplication ( application : OpenShiftObject ) : Promise < OpenShiftObject > ;
359359 deleteApplication ( application : OpenShiftObject ) : Promise < OpenShiftObject > ;
360360 createComponentFromGit ( application : OpenShiftObject , type : string , version : string , name : string , repoUri : string , context : Uri , ref : string ) : Promise < OpenShiftObject > ;
361- createComponentFromFolder ( application : OpenShiftObject , type : string , version : string , name : string , path : Uri , starterName ?: string , useExistingDevfile ?: boolean ) : Promise < OpenShiftObject > ;
361+ createComponentFromFolder ( application : OpenShiftObject , type : string , version : string , registryName : string , name : string , path : Uri , starterName ?: string , useExistingDevfile ?: boolean ) : Promise < OpenShiftObject > ;
362362 createComponentFromBinary ( application : OpenShiftObject , type : string , version : string , name : string , path : Uri , context : Uri ) : Promise < OpenShiftObject > ;
363363 deleteComponent ( component : OpenShiftObject ) : Promise < OpenShiftObject > ;
364364 undeployComponent ( component : OpenShiftObject ) : Promise < OpenShiftObject > ;
@@ -889,8 +889,8 @@ export class OdoImpl implements Odo {
889889 return application ;
890890 }
891891
892- public async createComponentFromFolder ( application : OpenShiftObject , type : string , version : string , name : string , location : Uri , starter : string = undefined , useExistingDevfile = false ) : Promise < OpenShiftObject > {
893- await this . execute ( Command . createLocalComponent ( application . getParent ( ) . getName ( ) , application . getName ( ) , type , version , name , location . fsPath , starter , useExistingDevfile ) , location . fsPath ) ;
892+ public async createComponentFromFolder ( application : OpenShiftObject , type : string , version : string , registryName : string , name : string , location : Uri , starter : string = undefined , useExistingDevfile = false ) : Promise < OpenShiftObject > {
893+ await this . execute ( Command . createLocalComponent ( application . getParent ( ) . getName ( ) , application . getName ( ) , type , version , registryName , name , location . fsPath , starter , useExistingDevfile ) , location . fsPath ) ;
894894 if ( workspace . workspaceFolders && application . getParent ( ) . getParent ( ) ) { // if there are workspace folders and cluster is accessible
895895 const targetApplication = ( await this . getApplications ( application . getParent ( ) ) ) . find ( ( value ) => value === application ) ;
896896 if ( ! targetApplication ) {
0 commit comments