const hasbin = require("hasbin");
const os = require("os");

module.exports = class SystemHelper {
    static checkIonicPresence() {
        console.log("Checking ionic presence");
        return hasbin.sync("ionic");
    }

    static checkADBPresence() {
        console.log("Checking adb presence");
        return hasbin.sync("adb");
    }

    static checkXCodePresence() {
        console.log("Checking xcrun presence");
        return hasbin.sync("xcrun");
    }

    static checkPythonPresence() {
        console.log("Checking python3 presence");
        return hasbin.sync("python3");
    }

    static isWindowsHost() {
        return os.platform() === 'win32';
    }
};