Skip to content

Commit dab35e7

Browse files
author
RobinsonBeaucour
committed
start CLI
1 parent 5f255b8 commit dab35e7

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

heatpro/cli/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# my_cli_tool/cli.py
2+
import click
3+
4+
5+
CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
6+
7+
8+
@click.group(context_settings=CONTEXT_SETTINGS)
9+
def cli():
10+
"""HeatPro"""
11+
pass
12+
13+
14+
if __name__ == "__main__":
15+
cli()

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ dependencies = [
1616
]
1717

1818
[dependency-groups]
19+
cli = [
20+
"click>=8.3.3",
21+
"plotly>=6.5.2",
22+
"rich>=15.0.0",
23+
]
1924
dev = [
2025
"nbmake>=1.5.5",
2126
"pytest>=9.0.2",
@@ -53,3 +58,6 @@ package = true
5358

5459
[tool.ruff]
5560
line-length = 100
61+
62+
[project.scripts]
63+
heatpro = "heatpro.cli:cli"

0 commit comments

Comments
 (0)