config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandLineSpec

type CommandLineSpec struct {
	Name string `yaml:"name"`
}

CommandLineSpec defines specification for command line For example it may contains command "add" Then it'll generate template for that command

type Config

type Config struct {
	Name        string            `yaml:"name"`
	Type        string            `yaml:"type"`
	Dockerfile  string            `yaml:"dockerfile"`
	Makefile    string            `yaml:"makefile"`
	SubDirs     []string          `yaml:"subdirs"`
	Commands    []CommandLineSpec `yaml:"commands"`
	HostingPath string            `yaml:"hostingPath"`
	Badges      string            `yaml:"badges"`
	CI          []string          `yaml:"ci"`
}

Config provides definition of the project

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig retruns default configuration for the project

func Load

func Load(path string) (*Config, error)

Load provides loading of the config

func (*Config) ToModel

func (c *Config) ToModel() *models.Project

ToModel provides converting of the config to model

Jump to

Keyboard shortcuts

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