Documentation ¶
Index ¶
- Constants
- func AssignAutoConfirmFlag(flags *pflag.FlagSet)
- func Confirm(flags *pflag.FlagSet, question string) (bool, error)
- func Die(err string, code int)
- func DieErr(err error)
- func DieFmt(msg string, args ...interface{})
- func DieOnResponseError(response interface{}, err error)
- func DisableColors()
- func Execute()
- func Fmt(msg string, args ...interface{})
- func FmtDiff(diff api.Diff, withDirection bool)
- func MustBool(v bool, err error) bool
- func MustInt(v int, err error) int
- func MustParsePathURI(name, s string) *uri.URI
- func MustParseRefURI(name, s string) *uri.URI
- func MustParseRepoURI(name, s string) *uri.URI
- func MustString(v string, err error) string
- func OpenByPath(path string) io.ReadSeekCloser
- func PrintTable(rows [][]interface{}, headers []interface{}, paginator *api.Pagination, ...)
- func Write(tpl string, data interface{})
- func WriteTo(tpl string, data interface{}, w io.Writer)
- type APIError
- type FromTo
- type Pagination
- type StatementDoc
- type StatusCoder
- type Table
Constants ¶
View Source
const ( LakectlInteractive = "LAKECTL_INTERACTIVE" LakectlInteractiveDisable = "no" DeathMessage = "Error executing command: {{.Error|red}}\n" )
View Source
const ( AutoConfirmFlagName = "yes" AutoConfigFlagShortName = "y" AutoConfirmFlagHelp = "Automatically say yes to all confirmations" StdinFileName = "-" )
View Source
const (
DefaultBranch = "main"
)
View Source
const (
DefaultMaxIdleConnsPerHost = 1000
)
View Source
const (
ParentNumberFlagName = "parent-number"
)
Variables ¶
This section is empty.
Functions ¶
func AssignAutoConfirmFlag ¶ added in v0.31.0
func DieOnResponseError ¶ added in v0.40.0
func DieOnResponseError(response interface{}, err error)
func DisableColors ¶
func DisableColors()
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func MustParsePathURI ¶ added in v0.40.0
func MustParseRefURI ¶ added in v0.40.0
func MustParseRepoURI ¶ added in v0.40.0
func MustString ¶ added in v0.33.0
func OpenByPath ¶ added in v0.33.0
func OpenByPath(path string) io.ReadSeekCloser
OpenByPath returns a reader from the given path. If path is "-", it consumes Stdin and opens a readable copy that is either deleted (POSIX) or will delete itself on close (non-POSIX, notably WINs).
func PrintTable ¶
func PrintTable(rows [][]interface{}, headers []interface{}, paginator *api.Pagination, amount int)
Types ¶
type Pagination ¶
type StatementDoc ¶
type StatusCoder ¶ added in v0.40.0
type StatusCoder interface {
StatusCode() int
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.