Access metadata, frontmatter, content seperately in cli #38

Closed
opened 2025-09-29 19:04:39 +00:00 by tegwick · 0 comments
Owner

Calling "markitect metadata" provides metadata, frontmatter and content. So it should not be called "metadata" but "fulldata", "alldata", or maybe best "db-data". After renaming the command consistently in the codebase. There should be separate retrieval commands for various aspects of markdown files.

Note: this renaming to db-data has been implemented some time ago already.

As background information please update the wiki and find the MarkdownMatters.md specification. It defines frontmatter, contentmatter and tailmatter in some detail.

First let's create a family of commands to engage with the content:

  • markitect content-stats should provide statistics about the content
  • markitect content-get [path] # echo content without frontmater and tailmatter

Then let's create commands for frontmatter

  • markitect frontmatter-stats
  • markitect frontmatter-keys
  • markitect frontmatter-get [key]
  • markitect frontmatter-set key=val

Then let's create commands for contentmatter
Then for tailmatter

This is a lot of work so before we start make a GAMEPLAN file and do this tddai style.

Calling "markitect metadata" provides metadata, frontmatter and content. So it should not be called "metadata" but "fulldata", "alldata", or maybe best "db-data". After renaming the command consistently in the codebase. There should be separate retrieval commands for various aspects of markdown files. Note: this renaming to db-data has been implemented some time ago already. As background information please update the wiki and find the MarkdownMatters.md specification. It defines frontmatter, contentmatter and tailmatter in some detail. First let's create a family of commands to engage with the content: - markitect content-stats should provide statistics about the content - markitect content-get [path] # echo content without frontmater and tailmatter Then let's create commands for frontmatter - markitect frontmatter-stats - markitect frontmatter-keys - markitect frontmatter-get [key] - markitect frontmatter-set key=val Then let's create commands for contentmatter Then for tailmatter This is a lot of work so before we start make a GAMEPLAN file and do this tddai style.
tegwick added this to the Usability project 2025-09-29 19:04:39 +00:00
tegwick modified the project from Usability to MarkdownMatters 2025-09-30 00:59:17 +00:00
Sign in to join this conversation.