Skip to content
Docsgr code

Command line

gr code

Print a node's source code

From the help of gr 0.2.16. gr help code prints it in full.

Print a node's source, read from its file over its recorded span.

gr code <node> [flags]
FlagWhat it does
--jsonprint the raw result

Every command also takes --root <folder>, the project to act on. Without it, gr uses the git repository you are in, or else the current folder.

These docs describe Graphide 0.2.16, the latest release. Something wrong or missing? Tell us onDiscord or at hello@graphide.com.