mdcred

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package mdcred converts markdown credential definitions to VCTM format files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConvertResult

type ConvertResult struct {
	Slug  string            // base name without .md extension
	Files map[string]string // format name → output file path
}

ConvertResult describes a credential converted from markdown.

func ConvertDir

func ConvertDir(dir, baseURL string) ([]ConvertResult, error)

ConvertDir scans dir (and subdirectories) for markdown credential files (those with vct: in YAML front matter) and converts them to VCTM format files alongside the source markdown. It returns the list of converted credentials. Already-existing output files are skipped (the repo may have pre-built them).

func ConvertDirPath added in v0.12.0

func ConvertDirPath(dir, subPath, baseURL string) ([]ConvertResult, error)

ConvertDirPath works like ConvertDir but restricts discovery to the given relative subPath within dir. If subPath is empty, the entire dir is scanned.

Jump to

Keyboard shortcuts

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