Coverage for src/prisma/cli/options.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2024-08-27 18:25 +0000

1import click 

2 

3from .utils import PathlibPath 

4from .._types import FuncType 

5 

6schema: FuncType = click.option( 

7 '--schema', 

8 type=PathlibPath(exists=True, dir_okay=False, resolve_path=True), 

9 help='The location of the Prisma schema file.', 

10 required=False, 

11) 

12 

13watch: FuncType = click.option( 

14 '--watch', 

15 is_flag=True, 

16 default=False, 

17 required=False, 

18 help='Watch the Prisma schema and rerun after a change', 

19) 

20 

21skip_generate: FuncType = click.option( 

22 '--skip-generate', 

23 is_flag=True, 

24 default=False, 

25 help='Skip triggering generators (e.g. Prisma Client Python)', 

26)