The morph print command is used to display the compiled data on the terminal.

It can be used in cases such as:

  • Check the list of configured functions.
  • Searching for a file by name
  • Searching for name from a file path.

Options

—alias

Get various values compiled from the set name values.

workdir $ morph print --alias example_sql_cell
{
  "resources": [
    {
      "alias": "example_sql_cell",
      "path": "/home/morph/workdir/src/example_sql_cell.sql",
      "connection": null,
      "output_paths": [
        "/tmp/morph/{name}/{now()}{ext()}"
      ],
      "public": null,
      "output_type": null,
      "data_requirements": null
    }
  ]
}

—file

Get post-compilation data from file paths

workdir $ morph print --file /home/morph/workdir/src/example_sql_cell.sql
{
  "resources": [
    {
      "alias": "example_sql_cell",
      "path": "/home/morph/workdir/src/example_sql_cell.sql",
      "connection": null,
      "output_paths": [
        "/tmp/morph/{name}/{now()}{ext()}"
      ],
      "public": null,
      "output_type": null,
      "data_requirements": null
    }
  ]
}