private getCommandWithAuth()

in src/manifestList.ts [503:522]


    private getCommandWithAuth(
        wskdeployPath: string,
        command: string,
        manifest: WskDeployManifest,
        auth: AuthMetadata | null,
        deploymentFile?: string,
        projectName?: string
    ): string {
        let commandline = `${wskdeployPath} ${command} -m ${manifest.uri.fsPath}`;
        if (auth) {
            commandline += ` --apihost ${auth.apihost} -u ${auth.api_key}`;
        }
        if (deploymentFile) {
            commandline += ` -d ${deploymentFile}`;
        }
        if (projectName) {
            commandline += ` --projectname ${projectName}`;
        }
        return commandline;
    }