utils

package
v0.0.0-...-2666e45 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToSyncQueue

func AddToSyncQueue(path string)

func CloneRepo

func CloneRepo(path string, URL string)

func CreateProject

func CreateProject(metadata types.ProjectMetadataType)

func DirCrawler

func DirCrawler(path string, onFile func(string, os.DirEntry), onDir func(string, os.DirEntry))

func GetPrettyDate

func GetPrettyDate(refTime time.Time) string

func GetProjectsMetadata

func GetProjectsMetadata(path string) []types.FrontmatterMetaDataType

func GetRFC3339Time

func GetRFC3339Time(refTime time.Time) string

func GetRemotes

func GetRemotes() []string

func GetRootDirectory

func GetRootDirectory() string

func GetSubjects

func GetSubjects(path string) []string

to do sa modific numele pentru functie

func GetSyncServerURL

func GetSyncServerURL() string

func ParseMdString

func ParseMdString(data string) (types.FrontmatterMetaDataType, string)

func RUNTUI

func RUNTUI(items []list.Item, title string)

func UpdateAndPushGitRepo

func UpdateAndPushGitRepo(repoPath string) error

Types

type Item

type Item struct {
	Metadata types.FrontmatterMetaDataType
}

func (Item) Description

func (i Item) Description() string

func (Item) FilterValue

func (i Item) FilterValue() string

func (Item) Title

func (i Item) Title() string

Jump to

Keyboard shortcuts

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