feat: cobra root — config integration, global flags, provider resolution

This commit is contained in:
2026-07-28 16:06:54 +08:00
parent abed5bf2a9
commit b4bc96b44d
+6
View File
@@ -25,6 +25,12 @@ var (
var rootCmd = &cobra.Command{
Use: "ry",
Short: "Multi-cloud CLI — manage cloud resources from your terminal",
Long: `ry is a multi-cloud CLI that lets you manage cloud resources from your terminal.
Use "ry [command] --help" for more information about a command.`,
RunE: func(cmd *cobra.Command, args []string) error {
return cmd.Help()
},
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
var err error
cfg, err = config.Load(cfgPath)