var y=Object.defineProperty,v=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var l=(e,i,n)=>i in e?y(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n,g=(e,i)=>{for(var n in i||(i={}))w.call(i,n)&&l(e,n,i[n]);if(m)for(var n of m(i))O.call(i,n)&&l(e,n,i[n]);return e},u=(e,i)=>v(e,b(i));var f=(e,i,n)=>new Promise((d,a)=>{var p=o=>{try{s(n.next(o))}catch(r){a(r)}},c=o=>{try{s(n.throw(o))}catch(r){a(r)}},s=o=>o.done?d(o.value):Promise.resolve(o.value).then(p,c);s((n=n.apply(e,i)).next())});var t=[{name:"android",icon:"fig://icon?type=android"},{name:"ios",icon:"fig://icon?type=apple"}];function S(e){return e==="ios"||e==="android"}var C={cache:{ttl:1e3*60},custom:(e,i)=>f(void 0,null,function*(){let[n,d,a]=e;if(!S(a))return[];let{stdout:p}=yield i({command:"npx",args:["capacitor","run",a,"--list"]});return p.trim().split(`
`).slice(2).map(c=>{let[s,o,r]=c.replace(/\s\s+/g,"|").split("|");return{name:r,displayName:`${s} ${o}`,icon:"\u{1F4F1}"}})})},A={name:"capacitor",description:"The Capacitor command-line interface (CLI) tool is used to develop Capacitor apps",icon:"https://capacitorjs.com/docs/img/meta/favicon.png",subcommands:[{name:"add",description:"Add a native platform project to your app",args:{name:"platform",suggestions:t}},{name:"copy",description:"Copy the web app build and Capacitor configuration file into the native platform project. Run this each time you make changes to your web app or change a configuration value",priority:51,args:{name:"platform",suggestions:t,isOptional:!0}},{name:"ls",description:"List all installed Cordova and Capacitor plugins",args:{name:"platform",suggestions:t,isOptional:!0}},{name:"open",description:"Opens the native project workspace in the specified native IDE (Xcode for iOS, Android Studio for Android)",priority:51,args:{name:"platform",suggestions:t}},{name:"run",description:"Opens the native project workspace in the specified native IDE (Xcode for iOS, Android Studio for Android)",priority:51,args:{name:"platform",suggestions:t},options:[{name:"--list",description:"Print a list of target devices available to the given platform",icon:"\u{1F4F1}"},{name:"--target",description:"Run on a specific target device",icon:"\u{1F4F1}",args:{name:"target",generators:C}}]},{name:"sync",description:"This command runs copy and then update",args:{name:"platform",suggestions:t,isOptional:!0},options:[{name:"--deployment",description:"Podfile.lock won't be deleted and pod install will use --deployment option"},{name:"--inline",description:"After syncing, all JS source maps will be inlined allowing for debugging an Android Web View in Chromium based browsers"}]},{name:"update",description:"Updates the native plugins and dependencies referenced in package.json",args:{name:"platform",suggestions:t,isOptional:!0},options:[{name:"--deployment",description:"Podfile.lock won't be deleted and pod install will use --deployment option"}]}],options:[{name:["--help","-h"],description:"Output usage information. Can be used with individual commands too",isPersistent:!0},{name:["--version","-V"],description:"Output the version number"}]},h=A;var j=u(g({},h),{name:"cap"}),I=j;export{I as default};
