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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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