config

package
v0.96.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigDir      = ".upify"
	ConfigFileName = "config.yaml"
)

Variables

This section is empty.

Functions

func ConfigExists

func ConfigExists() bool

func GetConfigFilePath

func GetConfigFilePath() string

func SaveConfig

func SaveConfig(cfg *Config) error

Types

type Config

type Config struct {
	Name           string              `yaml:"name"`
	Framework      framework.Framework `yaml:"framework,omitempty"`
	Language       lang.Language       `yaml:"language"`
	PackageManager lang.PackageManager `yaml:"package_manager"`
	Entrypoint     string              `yaml:"entrypoint,omitempty"`
	AppVar         string              `yaml:"app_var,omitempty"`
}

func LoadConfig

func LoadConfig() (*Config, error)

Jump to

Keyboard shortcuts

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