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
« prev ^ index » next coverage.py v7.15.4, created at 2026-08-24 12:46 +0200
1"""Command-line GEKOS commands."""
3from typing import Optional, cast
5import gws
6import gws.base.action
7import gws.config
9from . import action
11gws.ext.new.cli('gekos')
14class CreateIndexParams(gws.CliParams):
15 """Parameters for creating the GEKOS index."""
17 projectUid: Optional[str]
18 """Project uid."""
21class Object(gws.Node):
23 @gws.ext.command.cli('gekosIndex')
24 def do_index(self, p: CreateIndexParams):
25 """Create the GEKOS index."""
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()