Documentation
¶
Index ¶
Constants ¶
View Source
const ( GitExample = "git-example" GitAdd = "git-add" GitCheckout = "git-checkout" GitClone = "git-clone" GitCommit = "git-commit" GitConfig = "git-config" GitFetch = "git-fetch" GitInit = "git-init" GitPull = "git-pull" GitPush = "git-push" GitStatus = "git-status" )
定义标准的git命令名称
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meta ¶
type Meta struct { Context context.Context Name string // the command name WD afs.Path // Working Directory }
Meta 包含git-command-object 的基本字段
type Service ¶
type Service interface {
Name() string // return command name
}
Service is the Runner for Command
type ServiceManager ¶
ServiceManager 用来管理已注册的服务
type ServiceRegistration ¶
ServiceRegistration ...
type ServiceRegistry ¶
type ServiceRegistry interface {
ListRegistrations() []*ServiceRegistration
}
ServiceRegistry ... [inject:".git-instruction-registry"]
Click to show internal directories.
Click to hide internal directories.