Coverage for gws-app/gws/plugin/gekos/cli.py: 0%

15 statements  

« prev     ^ index     » next       coverage.py v7.15.4, created at 2026-08-24 12:46 +0200

1"""Command-line GEKOS commands.""" 

2 

3from typing import Optional, cast 

4 

5import gws 

6import gws.base.action 

7import gws.config 

8 

9from . import action 

10 

11gws.ext.new.cli('gekos') 

12 

13 

14class CreateIndexParams(gws.CliParams): 

15 """Parameters for creating the GEKOS index.""" 

16 

17 projectUid: Optional[str] 

18 """Project uid.""" 

19 

20 

21class Object(gws.Node): 

22 

23 @gws.ext.command.cli('gekosIndex') 

24 def do_index(self, p: CreateIndexParams): 

25 """Create the GEKOS index.""" 

26 

27 root = gws.config.load() 

28 act = cast(action.Object, gws.base.action.get_action_for_cli(root, 'gekos', p.projectUid)) 

29 act.idx.create()