Documentation ¶
Index ¶
- func AddLoggerFlags(flags *pflag.FlagSet)
- 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 GetClient(ctx context.Context) *http.Client
- func GetCredentials(cmd *cobra.Command, cs *credentials.Store, remote string) (token string, err error)
- func GetLogger(cmd *cobra.Command) *logr.Logger
- 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, remoteURI string, err error) 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 PagerOrOut(cmd *cobra.Command) (io.Writer, func(), error)
- 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 SetClient(ctx context.Context, client *http.Client) context.Context
- func SetLogger(ctx context.Context, logger *logr.Logger) context.Context
- func SetPromptValues(ctx context.Context, values []string) context.Context
- func SetupLogger(cmd *cobra.Command) (cleanup func(), err error)
- func SetupProgressBarFlags(flags *pflag.FlagSet)
- func WithProgressBar(cmd *cobra.Command, quiet bool, ...) (err error)
- type ClientMap
- func (m *ClientMap) GetClient(cmd *cobra.Command, remoteURI string, opts ...apiclient.ClientOption) (client *apiclient.Client, err error)
- func (m *ClientMap) GetRefs(cmd *cobra.Command, remoteURI string, opts ...apiclient.ClientOption) (refs map[string][]byte, err error)
- func (m *ClientMap) ResetCookies() error
- type DeviceCodeResponse
- type Example
- type TokenResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLoggerFlags ¶ added in v0.13.0
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 PrintTable ¶
PrintTable prints simple table from rows of text
func RepoWebURI ¶ added in v0.10.3
func SetupLogger ¶ added in v0.12.10
func SetupProgressBarFlags ¶ added in v0.12.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
func NewClientMap(cs *credentials.Store, logger logr.Logger) *ClientMap
func (*ClientMap) ResetCookies ¶ added in v0.13.2
type DeviceCodeResponse ¶ added in v0.13.0
type TokenResponse ¶ added in v0.13.0
Click to show internal directories.
Click to hide internal directories.