export async function deployApplication()

in src/commands/deploy-application.ts [18:39]


export async function deployApplication() {
    var terminal : vscode.Terminal = vscode.window.createTerminal('ServiceFabric');
    if (vars._isLinux || vars._isMacintosh) {
        exec('sfctl cluster select --endpoint http://localhost:19080', function (err, stdout, stderr) {
            if (err) {
                vscode.window.showErrorMessage("Could not connect to cluster.");
                console.log(err);
                return;
            }
        });
    }
    else if (vars._isWindows) {
        var buildFiles: vscode.Uri[] = await vscode.workspace.findFiles('**/build.gradle');
        if (buildFiles.length > 1){
            vscode.window.showErrorMessage("Sorry! You cannot deploy Service Fabric Java application to Windows Cluster");
            return;
        }
        terminal.show();
        terminal.sendText("Connect-ServiceFabricCluster -ConnectionEndpoint localhost:19000");
    }
    installApplication(terminal);
}