config

package
v0.40.4 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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

func Write

func Write(ptrFname string, ptrContents string) error

Write writes to the pointer file with the given filename, creating or overwriting it with the given contents.

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

Jump to

Keyboard shortcuts

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