fsm

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package fsm ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SveltinFSManager

type SveltinFSManager struct {
	// contains filtered or unexported fields
}

SveltinFSManager is the struct for a pathmaker.

func NewSveltinFSManager

func NewSveltinFSManager(maker *pathmaker.SveltinPathMaker) *SveltinFSManager

NewSveltinFSManager returns a pointer to a SveltinFSManager struct.

func (*SveltinFSManager) CopyFileFromEmbed added in v0.11.0

func (s *SveltinFSManager) CopyFileFromEmbed(efs *embed.FS, fs afero.Fs, embeddedResourcesMap map[string]string, embeddedFileID, output string) error

CopyFileFromEmbed move file from embedded FS to the output folder.

func (*SveltinFSManager) GetFolder

func (s *SveltinFSManager) GetFolder(name string) *composer.Folder

GetFolder returns a Folder struct for the provided folder name.

func (*SveltinFSManager) NewConfigFile

func (s *SveltinFSManager) NewConfigFile(projectName string, name string, cliVersion string) *composer.File

NewConfigFile returns a pointer to a new 'config' File.

func (*SveltinFSManager) NewDotEnvFile

func (s *SveltinFSManager) NewDotEnvFile(projectName string, tplData *config.TemplateData) *composer.File

NewDotEnvFile returns a pointer to a new '.env' File.

func (*SveltinFSManager) NewJSONConfigFile added in v0.11.0

func (s *SveltinFSManager) NewJSONConfigFile(tplData *config.TemplateData) *composer.File

NewJSONConfigFile returns a pointer to a new '.json' File.

func (*SveltinFSManager) NewMenuFile added in v0.10.0

func (s *SveltinFSManager) NewMenuFile(name string, resources []string, contents map[string][]string, withContentFlag bool) *composer.File

NewMenuFile returns a pointer to a 'no-public page' File.

func (*SveltinFSManager) NewNoPageFile added in v0.10.0

func (s *SveltinFSManager) NewNoPageFile(name string, data *tpltypes.ProjectSettings, resources []string, contents map[string][]string) *composer.File

NewNoPageFile returns a pointer to a 'no-public page' File.

func (*SveltinFSManager) NewPublicPageFile added in v0.10.0

func (s *SveltinFSManager) NewPublicPageFile(pageData *tpltypes.PageData, projectSettings *tpltypes.ProjectSettings) *composer.File

NewPublicPageFile returns a pointer to a new 'public page' File.

func (*SveltinFSManager) NewResourceContentFile

func (s *SveltinFSManager) NewResourceContentFile(contentData *tpltypes.ContentData) *composer.File

NewResourceContentFile returns a pointer to the 'resource content' File.

func (*SveltinFSManager) NewResourceContentFolder

func (s *SveltinFSManager) NewResourceContentFolder(contentData *tpltypes.ContentData) *composer.Folder

NewResourceContentFolder returns a pointer to the 'resource content' Folder.

Jump to

Keyboard shortcuts

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