"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CapacitorNamespace = void 0; const color_1 = require("../../lib/color"); const namespace_1 = require("../../lib/namespace"); class CapacitorNamespace extends namespace_1.Namespace { async getMetadata() { return { name: 'capacitor', summary: 'Capacitor functionality', description: ` These commands integrate with Capacitor, Ionic's new native layer project which provides an alternative to Cordova for native functionality in your app. Learn more about Capacitor: - Main documentation: ${color_1.strong('https://ion.link/capacitor')} `, }; } async getCommands() { return new namespace_1.CommandMap([ ['add', async () => { const { AddCommand } = await Promise.resolve().then(() => require('./add')); return new AddCommand(this); }], ['build', async () => { const { BuildCommand } = await Promise.resolve().then(() => require('./build')); return new BuildCommand(this); }], ['copy', async () => { const { CopyCommand } = await Promise.resolve().then(() => require('./copy')); return new CopyCommand(this); }], ['open', async () => { const { OpenCommand } = await Promise.resolve().then(() => require('./open')); return new OpenCommand(this); }], ['run', async () => { const { RunCommand } = await Promise.resolve().then(() => require('./run')); return new RunCommand(this); }], ['sync', async () => { const { SyncCommand } = await Promise.resolve().then(() => require('./sync')); return new SyncCommand(this); }], ['update', async () => { const { UpdateCommand } = await Promise.resolve().then(() => require('./update')); return new UpdateCommand(this); }], ]); } } exports.CapacitorNamespace = CapacitorNamespace;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
add.d.ts | File | 495 B | 0644 |
|
add.js | File | 1.6 KB | 0644 |
|
base.d.ts | File | 969 B | 0644 |
|
base.js | File | 6.68 KB | 0644 |
|
build.d.ts | File | 592 B | 0644 |
|
build.js | File | 5.9 KB | 0644 |
|
copy.d.ts | File | 496 B | 0644 |
|
copy.js | File | 1.81 KB | 0644 |
|
index.d.ts | File | 276 B | 0644 |
|
index.js | File | 1.83 KB | 0644 |
|
open.d.ts | File | 496 B | 0644 |
|
open.js | File | 1.65 KB | 0644 |
|
run.d.ts | File | 673 B | 0644 |
|
run.js | File | 9.75 KB | 0644 |
|
sync.d.ts | File | 530 B | 0644 |
|
sync.js | File | 3.2 KB | 0644 |
|
update.d.ts | File | 498 B | 0644 |
|
update.js | File | 1.32 KB | 0644 |
|