mdcred

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package mdcred converts markdown credential definitions to VCTM format files using the mtcvctm library.

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).

Jump to

Keyboard shortcuts

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