Skip to content

webermarci/go-pipe-parser

Repository files navigation

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())
}

About

Go package parses and executes unix pipe commands

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages