Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &Z.Cmd{ Name: `github`, Aliases: []string{`gh`}, Usage: `[help]`, Description: githubdoc, Commands: []*Z.Cmd{help.Cmd, prCmd}, }
View Source
var REVIEWERS = []string{
"hueldera",
"guilhermeocosta",
"HMilao",
"victorakioz",
"pedrohmp",
"jorcelinojunior",
}
Functions ¶
func GetBranches ¶
func GetBranches() []string
func GetCurrentBranch ¶
func GetCurrentBranch() string
func GetCurrentOrg ¶
func GetCurrentOrg() string
GetCurrentOrg return the current org name by parsing the result of `git remote -v` command
Example ¶
package main import ( "fmt" "github.com/cherryramatisdev/s/github" ) func main() { fmt.Println(github.GetCurrentOrg()) }
Output: cherryramatisdev
func GetCurrentRepo ¶
func GetCurrentRepo() string
GetCurrentRepo return the current repo name by parsing the result of `git remote -v` command
Example ¶
package main import ( "fmt" "github.com/cherryramatisdev/s/github" ) func main() { fmt.Println(github.GetCurrentRepo()) }
Output: s
Types ¶
Click to show internal directories.
Click to hide internal directories.