MCPcopy Index your code
hub / github.com/nikivdev/go / hasCodexPermissionArg

Function hasCodexPermissionArg

cli/spec/main.go:794–808  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

792}
793
794func hasCodexPermissionArg(args []string) bool {
795 for _, arg := range args {
796 if arg == "--dangerously-bypass-approvals-and-sandbox" ||
797 arg == "--full-auto" ||
798 arg == "-a" ||
799 arg == "--ask-for-approval" ||
800 strings.HasPrefix(arg, "--ask-for-approval=") ||
801 arg == "-s" ||
802 arg == "--sandbox" ||
803 strings.HasPrefix(arg, "--sandbox=") {
804 return true
805 }
806 }
807 return false
808}
809
810func isCodexSubcommand(arg string) bool {
811 switch arg {

Callers 1

runExecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected