shell

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2026 License: MIT Imports: 5 Imported by: 0

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) Detect

func (d BashDetector) Detect(ctx *detector.Context) *detector.Result

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 (PowerShellDetector) Name

func (PowerShellDetector) Name() string

func (PowerShellDetector) SupportedLanguages

func (PowerShellDetector) SupportedLanguages() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL