Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 733 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 733 Bytes

go-pipe-parser

GoDoc Go Report Card

All it does is just parser command strings to feed into go-pipe https://github.com/b4b4r07/go-pipe

Install

go get github.com/webermarci/go-pipe-parser

Example

package main

import (
	"log"
	pipeparser "webermarci/go-pipe-parser"
)

func main() {
	command := "ls -la | grep root"

	result, err := pipeparser.Run(command)
	if err != nil {
		log.Panicln(err)
	}
	log.Println(result.String())
}