mirror of
https://github.com/harivansh-afk/agentikube.git
synced 2026-04-20 15:01:22 +00:00
init
This commit is contained in:
commit
0595d93c49
28 changed files with 1763 additions and 0 deletions
11
internal/commands/helpers.go
Normal file
11
internal/commands/helpers.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package commands
|
||||
|
||||
import (
|
||||
"github.com/rathi/agentikube/internal/config"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func loadConfig(cmd *cobra.Command) (*config.Config, error) {
|
||||
cfgPath, _ := cmd.Flags().GetString("config")
|
||||
return config.Load(cfgPath)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue