Documentation
¶
Index ¶
- Constants
- Variables
- func InvokePreRunE(cmd *cobra.Command, args []string, invokes ...any) error
- func MakeInvokePreRunE(fs ...any) func(cmd *cobra.Command, args []string) error
- func PersistentPreRunE(cmd *cobra.Command, args []string) error
- func Provide(cmd *cobra.Command, args []string, invokes ...any) error
- func SkipChecks(cmd *cobra.Command) bool
- type F
- type FComplete
- type FCompleteCtx
- type FCtx
- type Interactive
- type PromptInformation
Constants ¶
View Source
const ( RFC3339NanoFixed = "2006-01-02T15:04:05.000000000Z07:00" RFC3339MilliFixed = "2006-01-02T15:04:05.000Z07:00" )
Variables ¶
View Source
var Module = fx.Module( "rig-cli", clientModule, fx.Provide(func() (*cmdconfig.Config, error) { return cmdconfig.NewConfig("") }), fx.Provide(zap.NewDevelopment), fx.Provide(getContext), fx.Provide(func(c *cmdconfig.Context) *cmdconfig.Auth { return c.GetAuth() }), fx.Provide(func(c *cmdconfig.Context) *cmdconfig.Service { return c.GetService() }), fx.Provide(func() context.Context { return context.Background() }), fx.Provide(func() (*client.Client, error) { return client.NewClientWithOpts( client.WithHostFromEnv(), client.WithAPIVersionNegotiation(), ) }), fx.Provide(func() *PromptInformation { return &PromptInformation{} }), )
Functions ¶
func InvokePreRunE ¶ added in v1.5.0
func MakeInvokePreRunE ¶ added in v1.5.0
func PersistentPreRunE ¶ added in v1.5.0
func SkipChecks ¶ added in v1.6.1
Types ¶
type FComplete ¶ added in v1.5.0
func CtxWrapCompletion ¶ added in v1.5.0
func CtxWrapCompletion(f FCompleteCtx) FComplete
type FCompleteCtx ¶ added in v1.5.0
type Interactive ¶ added in v1.6.1
type Interactive bool
type PromptInformation ¶ added in v1.6.0
type PromptInformation struct {
ContextCreation bool
}
Click to show internal directories.
Click to hide internal directories.