utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneTemplateRepo

func CloneTemplateRepo(repo string, workdir string, paths []string)

CloneTemplateRepo clones the template repository.

func CreateFilesFromTemplate

func CreateFilesFromTemplate(filepath string, templateContext string, data interface{}) error

CreateFilesFromTemplate creates files from a template

func GenToken

func GenToken() (string, error)

func ReadTokensFromFile

func ReadTokensFromFile(filePath string) ([]models.Token, error)

func Remove

func Remove(paths []string) error

Remove removes a file or directory.

func WriteToTemplate

func WriteToTemplate(path string, content []byte)

WriteToTemplate writes content to a file

func WriteTokensToFile

func WriteTokensToFile(filename string, tokens []models.Token) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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