feat: cobra root — config integration, global flags, provider resolution
This commit is contained in:
@@ -25,6 +25,12 @@ var (
|
|||||||
var rootCmd = &cobra.Command{
|
var rootCmd = &cobra.Command{
|
||||||
Use: "ry",
|
Use: "ry",
|
||||||
Short: "Multi-cloud CLI — manage cloud resources from your terminal",
|
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 {
|
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
|
||||||
var err error
|
var err error
|
||||||
cfg, err = config.Load(cfgPath)
|
cfg, err = config.Load(cfgPath)
|
||||||
|
|||||||
Reference in New Issue
Block a user