-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
561 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "ogit", | ||
"description": "A lazy developer's Git CLI made simple", | ||
"version": "0.0.0", | ||
"version": "1.4.0", | ||
"author": "[email protected]", | ||
"bin": { | ||
"ogit": "./bin/run" | ||
|
@@ -13,6 +13,7 @@ | |
"@oclif/plugin-help": "^2.1.3", | ||
"chalk": "^2.4.1", | ||
"columnify": "^1.5.4", | ||
"inquirer": "^6.2.0", | ||
"json-object-mapper": "^1.5.2", | ||
"reflect-metadata": "^0.1.12", | ||
"simple-git": "^1.107.0", | ||
|
@@ -27,6 +28,7 @@ | |
"@types/mocha": "^5.2.5", | ||
"@types/node": "^10.12.5", | ||
"@types/uuid": "^3.4.4", | ||
"cli-ux": "^4.9.3", | ||
"globby": "^8.0.1", | ||
"jest": "^23.6.0", | ||
"prettier": "^1.15.2", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import 'reflect-metadata'; | ||
import { GitWrapper } from '../wrapper/git'; | ||
import { Command } from "@oclif/command"; | ||
|
||
export default class CheckoutRepoCommand extends Command { | ||
static description = "Checkout a git repo into current directory"; | ||
|
||
static args = [ | ||
{ | ||
name: "url", | ||
required: true, | ||
description: 'URL of git reo' | ||
} | ||
]; | ||
|
||
async run() { | ||
const { args } = this.parse(CheckoutRepoCommand); | ||
await GitWrapper.checkoutRepo(args.url); | ||
} | ||
} |
Oops, something went wrong.