Process the JSON answer for `rai get-model` ? · Issue #12 · RelationalAI/rai-cli · GitHub
Skip to content

Process the JSON answer for rai get-model ? #12

Open

Description

@mbravenboer

For

$ rai get-model mb-faa-flights faa-flight/schema-mapping

I get:

  "name": "faa-flight/schema-mapping",
  "value": "..."
}

This means I need to process the JSON if I want to write the schema to a file. It'd be awesome if it would only write the value, maybe with an option --json to print the current output.

Work aroundl

$ rai get-model faa-flight faa-flight/mode.rel | jq -j '.value' -r 

Activity

  1. bradlo commented on Oct 5, 2022

    @bradlo
    Contributor

    json is the base case because you can post process as you indicate, but i will add global formatting options for: json, csv, short (text) and table (pretty).

  2. billscheidel-rai commented on Dec 6, 2022

    @billscheidel-rai

    Note: This issue has been migrated to https://relationalai.atlassian.net/browse/RAI-5301.

    This link is only accessible to employees of RelationalAI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions