UNPKG

jj-cli

Version:
1 lines 579 B
"use strict";const o=require("commander"),{openPlatform:t}=require("./actionOpen"),e=require("../../untils/logs"),r=require("../../untils/common"),a=(a,i,n)=>{const p=o.opts()||{};o.command("open [platform] [-p|--platform] [-studio|--androidStudioPath]").description("opens the native project workspace (xcode for iOS), platform: ios/android").action((o=>{t(o||p.platform,i,n,p.androidStudioPath)})),o.command("openpath [path] [-fp|--folderpath]").description("open folderpath").action((o=>{(o=o||p.folderpath)?r.openUrl(o):e.logFatal("Missing folder path")}))};module.exports=a;