Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "git pif", Short: "Create fork and push current branch to the fork", Long: `git pif is an utility to help creating a fork of a github repo and set the remote of current branch the new fork. Example: git pif`, Run: func(cmd *cobra.Command, args []string) { owner, repo, user, err := utils.CreateFork() if err != nil { fmt.Println(err) } err = utils.Push(owner, repo, user) if err != nil { fmt.Println(err) } }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.