Documentation ¶
Index ¶
- func AuthenticationFlow(service config.ServiceConfig, backend auth.OAuth2Authenticator)
- func GetServiceConfigFromFlag(cmd *cobra.Command, flagName string) (config.ServiceConfig, error)
- func Prompt(opt models.BackendOption) (any, error)
- func PromptBool(opt models.BackendOption) (bool, error)
- func PromptExtraOptions(config config.ServiceConfig) (config.ServiceConfig, error)
- func PromptInt(opt models.BackendOption) (int, error)
- func PromptSecret(opt models.BackendOption) (string, error)
- func PromptString(opt models.BackendOption) (string, error)
- func PromptYesNo(label string, defaultValue bool) (bool, error)
- func SelectBackend(selected string) (string, error)
- func SelectService(cmd *cobra.Command) (config.ServiceConfig, error)
- type TransferCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticationFlow ¶ added in v0.3.1
func AuthenticationFlow(service config.ServiceConfig, backend auth.OAuth2Authenticator)
func PromptBool ¶
func PromptBool(opt models.BackendOption) (bool, error)
func PromptExtraOptions ¶
func PromptExtraOptions(config config.ServiceConfig) (config.ServiceConfig, error)
func PromptSecret ¶
func PromptSecret(opt models.BackendOption) (string, error)
func PromptString ¶
func PromptString(opt models.BackendOption) (string, error)
func SelectBackend ¶
func SelectService ¶
func SelectService(cmd *cobra.Command) (config.ServiceConfig, error)
Types ¶
type TransferCmd ¶
type TransferCmd[E models.Backend, I models.ImportBackend, R models.ListensResult | models.LovesResult] struct { ExpBackend E ImpBackend I // contains filtered or unexported fields }
func NewTransferCmd ¶
func NewTransferCmd[ E models.Backend, I models.ImportBackend, R models.ListensResult | models.LovesResult, ]( cmd *cobra.Command, db *storage.Database, entity models.Entity, source string, target string, ) (TransferCmd[E, I, R], error)
func (*TransferCmd[E, I, R]) Transfer ¶
func (c *TransferCmd[E, I, R]) Transfer(exp backends.ExportProcessor[R], imp backends.ImportProcessor[R]) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.