Skip to content
/ go.sh Public

A parser of the Shell Command Language

License

Notifications You must be signed in to change notification settings

hattya/go.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go.sh

A parser of the Shell Command Language.

pkg.go.dev GitHub Actions Appveyor Codecov

Installation

$ go get -u github.com/hattya/go.sh

Usage

package main

import (
	"fmt"

	"github.com/davecgh/go-spew/spew"
	"github.com/hattya/go.sh/parser"
)

func main() {
	cmd, comments, err := parser.ParseCommand("<stdin>", "echo Hello, World!")
	if err != nil {
		fmt.Println(err)
		return
	}
	spew.Dump(cmd)
	spew.Dump(comments)
}

License

go.sh is distributed under the terms of the MIT License.

About

A parser of the Shell Command Language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published