MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / init

Function init

tools/bash/permissions.go:48–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46}
47
48func init() {
49 appsecurity.RegisterCommandRuleAnalyzer(appsecurity.CommandRuleAnalyzer{
50 GetSimpleCommandPrefix: GetSimpleCommandPrefix,
51 NeedsUserDecision: func(command string) bool {
52 return AnalyzeCommandPermissions(command).NeedsUserDecision
53 },
54 })
55}
56
57func GetSimpleCommandPrefix(command string) string {
58 cleaned := StripAllSafeEnvPrefixes(command)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected