Skip to content

Commit

Permalink
WIP CLI, RM old, FIX CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
eboileau committed Feb 22, 2024
1 parent 08643f2 commit 777909c
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 651 deletions.
3 changes: 0 additions & 3 deletions server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ dependencies = [

[project.scripts]
upsert = "scimodom.database.maintenance.upsert:main"
add-project = "scimodom.database.maintenance.add_project:main"
add-dataset = "scimodom.database.maintenance.add_dataset:main"
add-all = "scimodom.database.maintenance.add_all:main"

[project.urls]
Github = "https://github.com/dieterich-lab/scimodom"
Expand Down
12 changes: 12 additions & 0 deletions server/src/scimodom/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from scimodom.database.database import make_session, init
from scimodom.frontend import frontend
from scimodom.plugins.cli import (
add_annotation,
add_assembly,
add_project,
add_dataset,
Expand Down Expand Up @@ -45,6 +46,17 @@ def assembly(id):
"""
add_assembly(id)

@app.cli.command(
"annotation", epilog="Check docs at https://dieterich-lab.github.io/scimodom/."
)
@click.argument("id", type=click.INT)
def annotation(id):
"""Prepare annotation.
ID is the annotation_id (must already exists).
"""
add_annotation(id)

@app.cli.command(
"project", epilog="Check docs at https://dieterich-lab.github.io/scimodom/."
)
Expand Down
219 changes: 0 additions & 219 deletions server/src/scimodom/database/maintenance/add_all.py

This file was deleted.

Loading

0 comments on commit 777909c

Please sign in to comment.