Add isolated SIP call tool, optional debug capture and split interface schemas
This commit is contained in:
@@ -23,6 +23,7 @@ import (
|
||||
|
||||
func newAgentCommand() *cobra.Command {
|
||||
var mode string
|
||||
var debug bool
|
||||
command := &cobra.Command{
|
||||
Use: "agent", Short: "Run the bound Agent", Args: cobra.NoArgs,
|
||||
SilenceUsage: true,
|
||||
@@ -31,6 +32,10 @@ func newAgentCommand() *cobra.Command {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
settings.Debug = debug
|
||||
if err := settings.ValidateDebug(); err != nil {
|
||||
return err
|
||||
}
|
||||
ca, err := readAgentPEM("MTLS_CA_FILE", settings.CAFile)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -146,6 +151,7 @@ func newAgentCommand() *cobra.Command {
|
||||
return nil
|
||||
},
|
||||
}
|
||||
command.Flags().BoolVarP(&debug, "debug", "D", false, "Require per-call evidence from the nonproduction capture script")
|
||||
command.Flags().StringVar(&mode, "mode", "mock", "isolated Mock, SIP-only or explicit nonprod-real mode")
|
||||
return command
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user