config

package
v0.0.0-...-3fd34f2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigFolderName = ".tx"
	ConfigFileName   = "tx"
	ConfigFileExt    = "json"
)

Variables

View Source
var (
	ConfigDir   string
	HomeDir     string
	TemplateDir string
	AddConfig   AddTemplateConfig
	GenConfig   GenTemplateConfig
)

Functions

This section is empty.

Types

type AddTemplateConfig

type AddTemplateConfig struct {
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Ignore      []string `json:"ignore"`
	Path        string
}

func NewAddTemplateConfig

func NewAddTemplateConfig(path string) AddTemplateConfig

func (*AddTemplateConfig) Load

type Config

type Config interface {
	Load() interface{}
}

type GenTemplateConfig

type GenTemplateConfig struct {
	Template map[string]string `json:"template"`
	Path     string
}

func NewGenTemplateConfig

func NewGenTemplateConfig(path string) GenTemplateConfig

func (*GenTemplateConfig) Load

Jump to

Keyboard shortcuts

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