config

package
v0.0.0-...-79062a7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigDirectoryOrCreateIt

func GetConfigDirectoryOrCreateIt() (string, error)

Types

type Config

type Config struct {
	// Directories stores the locations of relevant folders
	Directories struct {
		RootPhotoDir string `json:"rootPhotoDirectory"`
	} `json:"directories"`
}

Config stores all the information that the CLI needs to run

func LoadConfigOrCreateIt

func LoadConfigOrCreateIt() (*Config, error)

func (*Config) Write

func (c *Config) Write(configPath string) error

Jump to

Keyboard shortcuts

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