loader

package
v0.107.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

package loader loads a source file into a sysl Module

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindRootFromSyslModule

func FindRootFromSyslModule(modulePath string, fs afero.Fs) (string, error)

func LoadSyslModule

func LoadSyslModule(root, filename string, fs afero.Fs, logger *logrus.Logger) (*sysl.Module, string, error)

Types

type ProjectConfiguration

type ProjectConfiguration struct {
	Module, Root string
	RootIsFound  bool
	Fs           afero.Fs
}

func NewProjectConfiguration

func NewProjectConfiguration() *ProjectConfiguration

func (*ProjectConfiguration) ConfigureProject

func (pc *ProjectConfiguration) ConfigureProject(root, module string, fs afero.Fs, logger *logrus.Logger) error

Jump to

Keyboard shortcuts

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