utils

package
v0.0.0-...-0730a73 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package utils contains all utility functions that will be used across Jarvis.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitOnError

func ExitOnError(err error)

ExitOnError prints the error message and exit with code 1.

func GenerateFile

func GenerateFile(templates []string, outputPath string, requireMap map[string]interface{}, replaceMap map[string]interface{})

GenerateFile generates files using template in assets folder.

func RunCommand

func RunCommand(name string, arg ...string)

RunCommand executes input command and prints the result.

Types

This section is empty.

Jump to

Keyboard shortcuts

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