config

package
v3.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2018 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Dir is where dfm will keep internal files and state.
	// TODO: Move the .dfm config json here
	Dir = GetDefaultConfigDir()

	// Backend is a string use for loading the appropriate backend.
	Backend = "git"

	// CurrentProfile is the currently loaded profile.
	CurrentProfile = ""

	// Etc contains additionall information that the various backends can
	// reference.
	Etc map[string]interface{}
)

Functions

func GetDefaultConfigDir

func GetDefaultConfigDir() string

GetDefaultConfigDir will return the default location to store profiles which is $XDG_CONFIG_HOME/dfm or $HOME/.config/dfm

func ProfileDir

func ProfileDir() string

ProfileDir will return the config.Dir joined with profiles.

func SaveConfig

func SaveConfig() error

SaveConfig should be run after every command in dfm.

Types

This section is empty.

Jump to

Keyboard shortcuts

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