Versions in this module Expand all Collapse all v0 v0.14.2 Jun 24, 2026 Changes in this version + func AbsPathWithExpansion(p string) (string, error) + func AddDraftPrefix(title string) string + func ArgToIndex(arg string) (int64, error) + func ArgsToIndices(args []string) ([]int64, error) + func Contains(haystack []string, needle string) bool + func DirExists(path string) (bool, error) + func FileExist(fileName string) (bool, error) + func GetOwnerAndRepo(repoPath, user string) (string, string) + func HasDraftPrefix(title string) bool + func IndexOf(haystack []string, needle string) int + func IsKeyEncrypted(sshKey string) (bool, error) + func NormalizeURL(raw string) (*url.URL, error) + func PathExists(path string) (bool, error) + func ReadValue(cmd *cli.Command, opts ReadValueOptions) (string, error) + func StripDraftPrefix(title string) string + func ValidateAuthenticationMethod(giteaURL string, token string, user string, passwd string, sshAgent bool, ...) (*url.URL, error) + type ReadValueOptions struct + AllowEmpty bool + Hidden bool + PromptMsg string + ResourceName string