Documentation ¶
Index ¶
- Constants
- Variables
- func Prefix(arg ...string) string
- func ReposClone(m *ice.Message, arg ...string) *ice.Message
- func ReposList(m *ice.Message) *ice.Message
- func ServeReceivePack(info bool, srvCmd ServerCommand, path string) error
- func ServeUploadPack(info bool, srvCmd ServerCommand, path string) error
- func TableGo(m *ice.Message, cb ice.Any) *ice.Message
- type ServerCommand
Constants ¶
View Source
const ( CONFIG = "config" USER_NAME = "user.name" USER_EMAIL = "user.email" )
View Source
const ( INIT = "init" CLONE = "clone" PULL = "pull" PUSH = "push" LOG = "log" TAG = "tag" ADD = "add" STASH = "stash" COMMIT = "commit" BRANCH = "branch" REMOTE = "remote" ORIGIN = "origin" MASTER = "master" INDEX = "index" INSTEADOF = "insteadof" )
View Source
const ( INFO_REFS = "info/refs" RECEIVE_PACK = "receive-pack" UPLOAD_PACK = "upload-pack" )
View Source
const ( GITEA = "gitea" OAUTH = "oauth" DIFF = "diff" OPT = "opt" FIX = "fix" TAGS = "tags" VERSION = "version" COMMENT = "comment" )
View Source
const CONFIGS = "configs"
View Source
const COUNT = "count"
View Source
const GIT = "git"
View Source
const REPOS = "repos"
View Source
const SERVICE = "service"
View Source
const SPIDE = "spide"
View Source
const STATUS = "status"
View Source
const TOTAL = "total"
View Source
const TREND = "trend"
Variables ¶
View Source
var Index = &ice.Context{Name: GIT, Help: "代码库", Commands: ice.Commands{ GIT: {Name: "git path auto order build download", Help: "代码库", Actions: ice.MergeActions(ice.Actions{ cli.ORDER: {Help: "加载", Hand: func(m *ice.Message, arg ...string) { m.Cmd(code.INSTALL, cli.ORDER, mdb.Config(m, nfs.SOURCE), "_install/libexec/git-core") m.Cmdy(code.INSTALL, cli.ORDER, mdb.Config(m, nfs.SOURCE), "_install/bin") }}, }, code.InstallAction(nfs.SOURCE, "http://mirrors.tencent.com/macports/distfiles/git-cinnabar/git-2.31.1.tar.gz")), Hand: func(m *ice.Message, arg ...string) { m.Cmdy(code.INSTALL, ctx.ConfigSimple(m, nfs.SOURCE), arg) }}, }}
Functions ¶
func ServeReceivePack ¶ added in v1.5.14
func ServeReceivePack(info bool, srvCmd ServerCommand, path string) error
func ServeUploadPack ¶ added in v1.5.14
func ServeUploadPack(info bool, srvCmd ServerCommand, path string) error
Types ¶
Click to show internal directories.
Click to hide internal directories.