config

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const CONFIG_FILENAME = ".sideload-config"

Variables

This section is empty.

Functions

func WriteDefaultConfig

func WriteDefaultConfig()

Types

type Files

type Files struct {
	Track []string
}

type HomeConfig

type HomeConfig struct {
	HomeDir    string
	StorageDir string
}

func GetHomeConfig

func GetHomeConfig() HomeConfig

type Project

type Project struct {
	Name string
}

type ProjectConfig

type ProjectConfig struct {
	ProjectDir string
	Project    Project
	Files      Files
}

func GetProjectConfig

func GetProjectConfig() ProjectConfig

func InitProjectConfig

func InitProjectConfig() ProjectConfig

type ProjectConfigToml

type ProjectConfigToml struct {
	Project Project `toml:"project"`
	Files   Files   `toml:"files"`
}

type SideloadConfig

type SideloadConfig struct {
	HomeConfig     HomeConfig
	ProjectConfig  ProjectConfig
	HomeProjectDir string
}

func GetSideloadConfig

func GetSideloadConfig(homeConfig HomeConfig) SideloadConfig

Jump to

Keyboard shortcuts

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