github.com/lcaballero/griller

A boiler plate code generator. Written in Go, but not strictly for Go.


License
EPL-1.0
Install
go get github.com/lcaballero/griller

Documentation

GoDoc

Introduction

griller creates a starter projects with some basic structure. For Go projects the basic structure includes command line processing using go-flags. For a vue project, the structure include package.json from which npm can install dependencies.

Installation

go get -u github.com/lcaballero/griller

Usage

griller [OPTIONS] name project

A directory for the project will be created in the current directory containing the boiler plate code for the project.

A ~/.griller JSON file can be created with the default values for the --dest and --remote flags. For example:

{
  "Remote": "github.com/saber",
  "Dest": "$GOPATH/src/github.com/saber"
}

Once the .griller file is present you can then run (assuming that the griller executable is on the PATH):

griller go newlib

Using the above values, a new Go project will be located at $GOPATH/src/github.com/saber/newlib. Any internal import statements will use the remote github.com/saber. The following set of commands should test that the boilerplate code will compile and execute correctly.

%> cd $GOPATH/src/github.com/saber/newlib
%> go install
%> $GOPATH/bin/newlib
{
   "Name":""
}

The results of running the last command causes the newly compiled executable to dump it’s configuration to standard out.

License

See license file.

The use and distribution terms for this software are covered by the Eclipse Public License 1.0, which can be found in the file ‘license’ at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.