add repl that tunnels pm and shell commands

This commit is contained in:
Robin Olsen
2026-02-05 18:18:16 +01:00
parent 2215b5ad34
commit bf1842b1f9
6 changed files with 302 additions and 14 deletions

View File

@@ -14,8 +14,17 @@ var rootCmd = &cobra.Command{
}
func Execute(services *service.Services) error {
SetServices(services)
return rootCmd.Execute()
}
func SetServices(services *service.Services) {
svc = services
rootCmd.Use = svc.Config.RootCmd
}
func ExecuteWithArgs(args []string) error {
rootCmd.SetArgs(args)
return rootCmd.Execute()
}