edith

package
v0.0.0-...-9c5e6a4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: CC0-1.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigDir string
View Source
var ConfigName string = "edith"
View Source
var ConfigPath string
View Source
var ConfigType string = "json"

Functions

func CollectFiles

func CollectFiles(root string) ([]map[string]string, error)

func EnsureFileExists

func EnsureFileExists(path string) error

EnsureFileExists creates a file if it does not exist

func Execute

func Execute()

func FileExists

func FileExists(path string) bool

FileExists function, used to look for existing config file

func ReadLocalConfig

func ReadLocalConfig() *edith.Config

function to read in the local configuration

func SanitizeInput

func SanitizeInput(query string) string

sanitized input function

func SetEdithConfigFile

func SetEdithConfigFile()

create config file function

func WriteLocalConfig

func WriteLocalConfig()

function to write the configuration in viper memory to the local config file

Types

This section is empty.

Jump to

Keyboard shortcuts

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