config

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: May 10, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package config provides access to the comply.yml file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists() bool

Exists tests for the presence of a comply configuration file.

func ProjectRoot

func ProjectRoot() string

ProjectRoot is the fully-qualified path to the root directory.

func SetProjectRoot

func SetProjectRoot(dir string)

SetProjectRoot is used by the test suite.

func YAML

func YAML() map[interface{}]interface{}

YAML is the parsed contents of ProjectRoot()/config.yml.

Types

type Project

type Project struct {
	Name       string                 `yaml:"name"`
	FilePrefix string                 `yaml:"filePrefix"`
	Tickets    map[string]interface{} `yaml:"tickets"`
}

func Config

func Config() Project

Config is the parsed contents of ProjectRoot()/config.yml.

Jump to

Keyboard shortcuts

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