UNPKG

ogit

Version:

A lazy developer's Git CLI made simple. Makes using git on cloud IDEs (i.e. C9) a walk in the park.

24 lines (23 loc) 755 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); require("reflect-metadata"); const git_1 = require("../wrapper/git"); const command_1 = require("@oclif/command"); class CheckoutRepoCommand extends command_1.Command { run() { return tslib_1.__awaiter(this, void 0, void 0, function* () { const { args } = this.parse(CheckoutRepoCommand); yield git_1.GitFacade.checkoutRepo(args.url); }); } } CheckoutRepoCommand.description = 'Checkout a git repo into current directory'; CheckoutRepoCommand.args = [ { name: 'url', required: true, description: 'URL of git repository' } ]; exports.default = CheckoutRepoCommand;