Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChainCallbacks ¶
func ChainCallbacks(funcs ...runEFunc) runEFunc
func RepoPathRefCmd ¶
func RepoPathRefCmd(root *cobra.Command, dest **RepoPathRef, required bool)
sets up the parsing from the command returns a PreRunE
func RepoPathRefFlag ¶
func SetupDatabaseFlag ¶
Types ¶
type RepoPathRef ¶
type RepoPathRef struct {
// contains filtered or unexported fields
}
func RepoPathRefParse ¶
func RepoPathRefParse(value string) (*RepoPathRef, error)
Parses "repo-path-tag"
Format:
[github.com/]Owner/Repo/Path/To/migrations@TAG
Returns (repoName, ref, path)
func (RepoPathRef) Owner ¶
func (r RepoPathRef) Owner() string
func (RepoPathRef) Path ¶
func (r RepoPathRef) Path() string
func (RepoPathRef) Ref ¶
func (r RepoPathRef) Ref() string
func (RepoPathRef) Repository ¶
func (r RepoPathRef) Repository() string
func (RepoPathRef) RepositoryName ¶
func (r RepoPathRef) RepositoryName() string
func (RepoPathRef) String ¶
func (r RepoPathRef) String() string
func (*RepoPathRef) Validate ¶
func (r *RepoPathRef) Validate() error
Click to show internal directories.
Click to hide internal directories.