Coverage for railway/cli/main.py: 88%

1"""Main CLI entry point for Railway Framework."""

2

3 import typer

4

5 from railway.cli.init import init

6 from railway.cli.list import list_components

7 from railway.cli.new import new

8 from railway.cli.run import run

9

10 app = typer.Typer(

11 name="railway",

12 help="Railway Framework CLI - Build robust Python automation",

13 add_completion=False,

14)

15

16

17@app.callback()

18 def main() -> None:

19 """Railway Framework CLI."""

20 pass

21

22

23# Register commands

24 app.command(name="init")(init)

25 app.command(name="new")(new)

26 app.command(name="list")(list_components)

27 app.command(name="run")(run)

28

29

30 if __name__ == "__main__": 30 ↛ 31line 30 didn't jump to line 31 because the condition on line 30 was never true

31 app()