cli

package
v1.0.0-...-5ac96c6 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package cli provides a CLI UI for the gentmpl command line tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run() int

Run parses the command line arguments of the gentmpl tool.

If -g option was specified, it generate a demo configuration file for the gentmpl utility calling the CreateConfig method of a run.Context object.

Otherwise it reads the configuration file for initialize a run.Context and runs its CreatePackage method.

It returns the code that should be used for os.Exit.

Types

This section is empty.

Jump to

Keyboard shortcuts

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