Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultHost ¶ added in v0.2.0
func DefaultHost() string
func DefaultUser ¶ added in v0.2.0
func DefaultUser() string
func DefaultWorkspace ¶ added in v0.2.0
func DefaultWorkspace() string
func RunCommand ¶ added in v0.2.0
RunCommand execute the command and redirect input/output to standard input/output
Types ¶
type App ¶ added in v0.2.0
type App struct {
// contains filtered or unexported fields
}
func (*App) CobraCommand ¶ added in v0.2.0
func (*App) LoggerIdentity ¶ added in v0.2.0
type CloneResult ¶ added in v0.2.0
type Repo ¶
type Repo struct { // Protocol is http, https, ssh Protocol Protocol // Host is the git host provider domain name, like github.com Host string // Port is used for remote that does not use default ssh port Port int // Owner is user name or organization name Owner string // Repository is name of the repo Repository string }
Repo represents the address came after git clone <repo>
func UrlToRepo ¶ added in v0.2.0
UrlToRepo detect git repository from url - http clone url: https://github.com/dyweb/Ayi.git - http common url: https://github.com/dyweb/Ayi/blob/master/README.md - ssh clone url: git@github.com:dyweb/Ayi.git ssh://git@git.dongyue.io:6773/at15/tongqu4.git - project name: go.ice -> github.com/at15/go.ice - owner/project: dyweb/Ayi -> github.com/dyweb/Ayi
func (*Repo) HttpUrl ¶ added in v0.2.0
HttpUrl is used for clone using http i.e. https://github.com/at15/go.ice.git
Click to show internal directories.
Click to hide internal directories.