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 })
Motivation
git mind content show --rawis the most common content retrieval pattern (pipe content to other tools). A shorter alias likegit mind content catwould match git UX conventions (git cat-file).Proposed Behavior
Equivalent to
git mind content show doc:readme --raw.Implementation
catas a content subcommand alias inbin/git-mind.jscontentShow(cwd, nodeId, { raw: true })