parser

package
v1.53.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LocateBashHistory

func LocateBashHistory() (string, error)

LocateBashHistory resolves the standard Bash history file path using environment variables.

func LocateZshHistory

func LocateZshHistory() (string, error)

LocateZshHistory resolves the standard Zsh history file path using environment variables.

Types

type BashParser

type BashParser struct{}

BashParser implements a streaming state-machine parser for Bash history files.

func NewBashParser

func NewBashParser() *BashParser

NewBashParser creates a new BashParser.

func (*BashParser) Parse

func (p *BashParser) Parse(ctx context.Context, r io.Reader) (<-chan *history.Event, <-chan error)

Parse parses the Bash history from an io.Reader and returns a channel of canonical Events.

type ZshParser

type ZshParser struct{}

ZshParser implements a streaming state-machine parser for Zsh history files.

func NewZshParser

func NewZshParser() *ZshParser

NewZshParser creates a new ZshParser.

func (*ZshParser) Parse

func (p *ZshParser) Parse(ctx context.Context, r io.Reader) (<-chan *history.Event, <-chan error)

Parse parses the Zsh history from an io.Reader and returns a channel of canonical Events.

Jump to

Keyboard shortcuts

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