Documentation ¶
Index ¶
- func AddRemote(cmd *cobra.Command, name string, uri string) error
- func CombineExamples(sl []Example) string
- func EnsureUserSet(cmd *cobra.Command, c *conf.Config) error
- func ErrTableNotFound(db objects.Store, rs ref.Store, commit *objects.Commit) error
- func GetCredentials(cmd *cobra.Command, cs *credentials.Store, remote string) (uri *url.URL, token string, err error)
- func GetRepoDir(cmd *cobra.Command) *local.RepoDir
- func GetRuneFromFlag(cmd *cobra.Command, flag string) (rune, error)
- func GetTable(db objects.Store, rs ref.Store, commit *objects.Commit) (*objects.Table, error)
- func GetWRGLDir() (string, error)
- func HandleHTTPError(cmd *cobra.Command, cs *credentials.Store, remoteURL string, uri *url.URL, ...) error
- func IsWrglhubRemote(s string) (username, reponame string, ok bool)
- func MustGetRemote(cmd *cobra.Command, c *conf.Config, name string) *conf.Remote
- func MustWRGLDir(cmd *cobra.Command) string
- func PBar(max int64, desc string, out, err io.Writer) *progressbar.ProgressBar
- func PagerOrOut(cmd *cobra.Command) (io.Writer, func(), error)
- func PrintAuthCmd(cmd *cobra.Command, remoteURL string)
- func PrintTable(w io.Writer, rows [][]string, indent int)
- func Prompt(cmd *cobra.Command, name string) (value string, err error)
- func PromptForPassword(cmd *cobra.Command) (password string, err error)
- func RepoWebURI(username, reponame string) string
- func SetPromptValues(ctx context.Context, values []string) context.Context
- func SetupDebug(cmd *cobra.Command) (w io.Writer, cleanup func(), err error)
- type ClientMap
- type Example
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombineExamples ¶
func ErrTableNotFound ¶ added in v0.8.4
func GetCredentials ¶ added in v0.10.5
func GetRuneFromFlag ¶ added in v0.10.3
func GetWRGLDir ¶
func HandleHTTPError ¶ added in v0.7.11
func IsWrglhubRemote ¶ added in v0.10.3
func MustGetRemote ¶
func MustWRGLDir ¶
func PrintAuthCmd ¶ added in v0.7.11
func PrintTable ¶
PrintTable prints simple table from rows of text
func RepoWebURI ¶ added in v0.10.3
Types ¶
type ClientMap ¶ added in v0.10.5
type ClientMap struct { CredsStore *credentials.Store // contains filtered or unexported fields }
func NewClientMap ¶ added in v0.10.5
Click to show internal directories.
Click to hide internal directories.