Skip to content

feat: content cat alias for content show --raw #282

@flyingrobots

Description

@flyingrobots

Motivation

git mind content show --raw is the most common content retrieval pattern (pipe content to other tools). A shorter alias like git mind content cat would match git UX conventions (git cat-file).

Proposed Behavior

$ git mind content cat doc:readme
# Hello World
...

$ git mind content cat doc:readme | wc -l
42

Equivalent to git mind content show doc:readme --raw.

Implementation

  • Add cat as a content subcommand alias in bin/git-mind.js
  • Route to contentShow(cwd, nodeId, { raw: true })

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions