Skip to content

Commit

Permalink
fix commands
Browse files Browse the repository at this point in the history
  • Loading branch information
numa08 committed Apr 5, 2015
1 parent 0109fc0 commit 529357e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions README.md
Expand Up @@ -4,7 +4,7 @@ lab is a command line tool that wrap `git` in order to extend it with extra feat


~~~sh
$ git clone numa08/dejiko
$ git lab clone numa08/dejiko

# extends to:
$ git clone git://${gitlab.url}/numa08/dejiko.git
Expand Down Expand Up @@ -35,17 +35,17 @@ $ git config gitlab.project [NAMESPACE]/[PROJECT]
### git clone

~~~sh
$ git clone numa08/dejiko
$ git lab clone numa08/dejiko
> git clone git://{gitlab.url}/numa08/dejiko

$ git clone -p numa08/dejiko
$ git lab clone -p numa08/dejiko
> git clone git@{gitlab.url}/:numa08/dejiko
~~~

### merge request

~~~sh
$ git merge-request -b basebranch -h headbranch
$ git lab merge-request -b basebranch -h headbranch
>open text editor to edit title and body
>open pull request on GitLab

Expand All @@ -55,12 +55,12 @@ $ git merge-request -b forked:branch -h origin:branch -m "Fix issue #xxx"
### git merge

~~~sh
$ git merge [MERGE_REQUEST_ID]
$ git lab merge [MERGE_REQUEST_ID]
~~~

### git show

~~~sh
$ git show -- issue/10
$ git lab show -- issue/10
> open http://gitlab.example.com/NAMESPACE/PROJECT/issues/10
~~~
~~~
8 changes: 4 additions & 4 deletions commands.go
Expand Up @@ -18,31 +18,31 @@ var Commands = []cli.Command{

var commandGit_clone = cli.Command{
Name: "git-clone",
Usage: "",
Usage: "clone from remote repository on GitLab.",
Description: `
`,
Action: doGit_clone,
}

var commandGit_merge_request = cli.Command{
Name: "git-merge-request",
Usage: "",
Usage: "create merge request.",
Description: `
`,
Action: doGit_merge_request,
}

var commandGit_merge = cli.Command{
Name: "git-merge",
Usage: "",
Usage: "merge specified merge request.",
Description: `
`,
Action: doGit_merge,
}

var commandGit_show = cli.Command{
Name: "git-show",
Usage: "",
Usage: "show issue, merge request, wiki and repository",
Description: `
`,
Action: doGit_show,
Expand Down
2 changes: 1 addition & 1 deletion git-lab.go
Expand Up @@ -10,7 +10,7 @@ func main() {
app := cli.NewApp()
app.Name = "git-lab"
app.Version = Version
app.Usage = ""
app.Usage = "command line tool that wrap git in order to extend it with extra features and commands that make working with GitLab easier."
app.Author = "numa08"
app.Email = "n511287@gmail.com"
app.Commands = Commands
Expand Down

0 comments on commit 529357e

Please sign in to comment.