Documentation
¶
Overview ¶
Package shell holds Bash and PowerShell detectors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BashDetector ¶
type BashDetector struct{}
BashDetector detects Bash script structure (functions, source imports, exports, and known CLI tool calls). Mirrors Java BashDetector.
func NewBashDetector ¶
func NewBashDetector() *BashDetector
func (BashDetector) DefaultConfidence ¶
func (BashDetector) DefaultConfidence() model.Confidence
func (BashDetector) Name ¶
func (BashDetector) Name() string
func (BashDetector) SupportedLanguages ¶
func (BashDetector) SupportedLanguages() []string
type PowerShellDetector ¶
type PowerShellDetector struct{}
PowerShellDetector detects PowerShell script structure: functions (advanced/regular), Import-Module, dot-source imports, and parameters. Mirrors Java PowerShellDetector.
func NewPowerShellDetector ¶
func NewPowerShellDetector() *PowerShellDetector
func (PowerShellDetector) DefaultConfidence ¶
func (PowerShellDetector) DefaultConfidence() model.Confidence
func (PowerShellDetector) Detect ¶
func (d PowerShellDetector) Detect(ctx *detector.Context) *detector.Result
func (PowerShellDetector) Name ¶
func (PowerShellDetector) Name() string
func (PowerShellDetector) SupportedLanguages ¶
func (PowerShellDetector) SupportedLanguages() []string
Click to show internal directories.
Click to hide internal directories.