Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetValue ¶
func GetValue(optsPassed OptionsPassed) (string, error)
GetValue returns the value of the git keys as specified by git config files. If the key is not set, an error is returned with an empty string The startingPoint is optional and should only be set if there is need for constant starting point. The value is searched from the local configuration file upwards. No error is returned if any of the configuration files don't exist or have an error. An error is only returned when the key is not found.
Types ¶
type OptionsPassed ¶ added in v0.0.3
Options Passed Set:
- the startiing location
- the config key e.g user.key
- the config level
The config level is one of this values:
- 1 -> "local"
- 2 -> "global"
- 3 -> "system"
- not set -> whichever comes first
- 0 and any other number -> whichever comes first
Notes ¶
Bugs ¶
Can't handle windows paths yet.
Can't get system configuration, I have to figure out how to get $(prefix)
Click to show internal directories.
Click to hide internal directories.