/
cmd_git.go
39 lines (33 loc) · 897 Bytes
/
cmd_git.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright 2015 Keybase, Inc. All rights reserved. Use of
// this source code is governed by the included BSD license.
package client
import (
"sort"
"github.com/keybase/cli"
"github.com/adamwalz/keybase-client/go/libcmdline"
"github.com/adamwalz/keybase-client/go/libkb"
)
func NewCmdGit(cl *libcmdline.CommandLine, g *libkb.GlobalContext) cli.Command {
subcommands := []cli.Command{
newCmdGitCreate(cl, g),
newCmdGitDelete(cl, g),
newCmdGitList(cl, g),
newCmdGitGC(cl, g),
newCmdGitSettings(cl, g),
newCmdGitLFSConfig(cl, g),
}
if develUsage {
subcommands = append(subcommands, []cli.Command{
NewCmdGitMdput(cl, g),
NewCmdGitMddel(cl, g),
NewCmdGitMdget(cl, g),
}...)
}
sort.Sort(cli.ByName(subcommands))
return cli.Command{
Name: "git",
Usage: "Manage git repos",
ArgumentHelp: "[arguments...]",
Subcommands: subcommands,
}
}