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

15 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-01-11 00:06 +0900

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

2 

3import typer 

4 

5from railway.cli.init import init 

6from railway.cli.list import list_components 

7from railway.cli.new import new 

8from railway.cli.run import run 

9 

10app = typer.Typer( 

11 name="railway", 

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

13 add_completion=False, 

14) 

15 

16 

17@app.callback() 

18def main() -> None: 

19 """Railway Framework CLI.""" 

20 pass 

21 

22 

23# Register commands 

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

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

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

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

28 

29 

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

31 app()