cfg

package
v3.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Overview

Package cfg reads configurations and provides configuration props to commands.

Index

Constants

This section is empty.

Variables

View Source
var Verbose = false

Verbose is an exported variable to determine command is executing verbose mode or not.

Functions

func Get

func Get(key string) string

Get method returns the configuration properties value according to the key.

func LoadConfigFromGivenPath

func LoadConfigFromGivenPath(confPath string)

LoadConfigFromGivenPath method reads configuration file from the given path.

func LoadConfiguration

func LoadConfiguration()

LoadConfiguration method tries to find and read the configuration file some specific paths.

Types

This section is empty.

Jump to

Keyboard shortcuts

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