HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/local/lib/node_modules/@ionic/cli/commands/git/clone.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GitCloneCommand = void 0;
const cli_framework_1 = require("@ionic/cli-framework");
const command_1 = require("../../lib/command");
// import { formatGitRepoUrl } from '../../lib/git';
class GitCloneCommand extends command_1.Command {
    async getMetadata() {
        return {
            name: 'clone',
            type: 'global',
            summary: 'Clones an Ionic app git repository to your computer',
            inputs: [
                {
                    name: 'id',
                    summary: 'The ID of the Ionic Appflow app to clone',
                    validators: [cli_framework_1.validators.required],
                },
                {
                    name: 'path',
                    summary: 'The destination directory of the cloned app',
                },
            ],
            groups: ["hidden" /* MetadataGroup.HIDDEN */], // TODO: make part of start?
        };
    }
    async run(inputs, options) {
        // let [ id, destination ] = inputs;
        // const appLoader = new App(this.env.session.getUserToken(), this.env.client);
        // const app = await appLoader.load(id);
        // const remote = await formatGitRepoUrl(this.env.config, app.id);
        // if (!destination) {
        //   destination = app.slug ? app.slug : app.id;
        // }
        // destination = path.resolve(destination);
        // await this.env.shell.run('git', ['clone', '-o', 'ionic', remote, destination], { stdio: 'inherit' });
        // this.env.log.ok(`Your app has been cloned to ${strong(prettyPath(destination))}!`);
    }
}
exports.GitCloneCommand = GitCloneCommand;