linkml / schema-automator

Automated assistance for the schema development lifecycle
https://linkml.io/schema-automator/
BSD 3-Clause "New" or "Revised" License
36 stars 13 forks source link

poetry cli target for import-sql #91

Closed sujaypatil96 closed 2 years ago

sujaypatil96 commented 2 years ago

Allow users to call import-sql importer as:

poetry run schemauto import-sql ~/path/to/sqlite.db
cmungall commented 2 years ago

This doesn't do what you intend - you only put top level commands in the toml

click subcommands are invisible to it

There is no need for a top level command, use the subcommand:

✗ poetry run schemauto import-sql --help
Usage: schemauto import-sql [OPTIONS] DB
  Imports a schema by introspecting a relational database
  See :ref:`importers` for more on the importers framework
Options:
  -o, --output TEXT       path to output file.
  -n, --schema-name TEXT  Schema name  [default: MySchema]
  --help                  Show this message and exit.