bashparser

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: UPL-1.0 Imports: 5 Imported by: 0

Documentation

Overview

Package bashparser parses the bash scripts and provides parsed objects in JSON.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCommands

func ParseCommands(data string) (string, error)

ParseCommands parses the bash script to find bash commands. It returns the parsed commands in JSON format.

Types

type CMDResult

type CMDResult struct {
	Commands [][]string `json:"commands"`
}

CMDResult is used to export the bash command results in JSON.

Jump to

Keyboard shortcuts

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