config

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() di.Config

Default gets a simple default configuration for Git Tool for environments where you have not defined a configuration file.

func DefaultForDirectory

func DefaultForDirectory(dir string) di.Config

DefaultForDirectory gets a simple default configuration for Git Tool pointed at a specific development directory.

func Load

func Load(file string) (di.Config, error)

Load will attempt to load a configuration object from the provided file.

Types

type Features

type Features struct {
	NativeClone   bool `json:"native_clone" yaml:"native_clone"`
	CreateRemote  bool `json:"create_remote" yaml:"create_remote"`
	HttpTransport bool `json:"http_transport" yaml:"http_transport"`
}

Features control various configurable behaviors of Git Tool

func (*Features) CreateRemoteRepo

func (f *Features) CreateRemoteRepo() bool

func (*Features) UseHttpTransport

func (f *Features) UseHttpTransport() bool

func (*Features) UseNativeClone

func (f *Features) UseNativeClone() bool

Jump to

Keyboard shortcuts

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