Documentation
¶
Overview ¶
Package config contains types and functions for dealing with git-dolt configuration, including config file I/O.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GitDoltConfig ¶
type GitDoltConfig struct {
// Version is the version of the git-dolt protocol being used.
Version string
// Remote is the url of the dolt remote.
Remote string
// Revision is the revision of the remote that this git-dolt pointer links to.
Revision string
}
GitDoltConfig represents the configuration for a git-dolt integration.
func Load ¶
func Load(ptrFname string) (GitDoltConfig, error)
Load loads a GitDoltConfig from the pointer file with the given filename.
func Parse ¶
func Parse(c string) (GitDoltConfig, error)
Parse parses a git-dolt config string into a struct.
func (GitDoltConfig) String ¶
func (c GitDoltConfig) String() string
Click to show internal directories.
Click to hide internal directories.