Skip to content

Commit

Permalink
Add Trogon
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels committed Jan 11, 2024
1 parent ed15dd3 commit 0db6c06
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nf_core/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import rich.logging
import rich.traceback
import rich_click as click
from trogon import tui

from nf_core import __version__
from nf_core.download import DownloadError
Expand All @@ -30,7 +31,7 @@
"nf-core": [
{
"name": "Commands for users",
"commands": ["list", "launch", "create-params-file", "download", "licences"],
"commands": ["list", "launch", "create-params-file", "download", "licences", "tui"],
},
{
"name": "Commands for developers",
Expand Down Expand Up @@ -110,7 +111,7 @@ def run_nf_core():
# Launch the click cli
nf_core_cli(auto_envvar_prefix="NFCORE")


@tui()
@click.group(context_settings=dict(help_option_names=["-h", "--help"]))
@click.version_option(__version__)
@click.option("-v", "--verbose", is_flag=True, default=False, help="Print verbose output to the console.")
Expand Down
12 changes: 12 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
mypy
myst_parser
pytest-cov
pytest-datafiles
pytest-textual-snapshot
responses
ruff
Sphinx
sphinx-rtd-theme
<<<<<<< Updated upstream
mypy
types-PyYAML
types-requests
=======
textual-dev>=1.2.1
>>>>>>> Stashed changes
types-jsonschema
types-Markdown
types-PyYAML
types-requests
types-setuptools
<<<<<<< Updated upstream
ruff
=======
>>>>>>> Stashed changes
12 changes: 12 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@ jinja2
jsonschema>=3.0
markdown>=3.3
packaging
pdiff
pre-commit
prompt_toolkit>=3.0.3
<<<<<<< Updated upstream
=======
pydantic>=2.2.1
PyGithub
pytest-workflow>=1.6.0
>>>>>>> Stashed changes
pytest>=7.0.0
pytest-workflow>=1.6.0
pyyaml
Expand All @@ -17,4 +24,9 @@ requests_cache
rich-click>=1.6.1
rich>=13.3.1
tabulate
<<<<<<< Updated upstream
pdiff
=======
textual>=0.47.1
trogon
>>>>>>> Stashed changes

0 comments on commit 0db6c06

Please sign in to comment.