feat: provider cmd — list, use, add with interactive key input
This commit is contained in:
@@ -38,6 +38,11 @@ Use "ry [command] --help" for more information about a command.`,
|
||||
return fmt.Errorf("load config: %w", err)
|
||||
}
|
||||
|
||||
// provider subcommands don't need an initialized provider
|
||||
if cmd.Annotations != nil && cmd.Annotations["skipProvider"] == "true" {
|
||||
return nil
|
||||
}
|
||||
|
||||
providerName := cfg.CurrentProvider
|
||||
if flagProvider != "" {
|
||||
providerName = flagProvider
|
||||
|
||||
Reference in New Issue
Block a user