cgse-tools 0.11.0__tar.gz → 0.11.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cgse-tools
3
- Version: 0.11.0
3
+ Version: 0.11.2
4
4
  Summary: Tools for CGSE
5
5
  Author: IvS KU Leuven
6
6
  Maintainer-email: Rik Huygen <rik.huygen@kuleuven.be>, Sara Regibo <sara.regibo@kuleuven.be>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "cgse-tools"
3
- version = "0.11.0"
3
+ version = "0.11.2"
4
4
  description = "Tools for CGSE"
5
5
  authors = [
6
6
  {name = "IvS KU Leuven"}
@@ -29,16 +29,14 @@ cgse-status = "egse.tools.status:main"
29
29
  [project.entry-points."cgse.version"]
30
30
  cgse-tools = 'egse.version:get_version_installed'
31
31
 
32
- # plugins for the `cgse` command, add [group] when the command has sub-commands
33
-
34
32
  [project.entry-points."cgse.command"]
35
33
  init = 'cgse_tools.cgse_commands:init'
36
34
  top = 'cgse_tools.cgse_commands:top'
37
35
  clock = 'cgse_tools.cgse_clock:clock'
38
- show = 'cgse_tools.cgse_commands:show[group]'
39
- check = 'cgse_tools.cgse_commands:check[group]'
36
+ show = 'cgse_tools.cgse_commands:show'
37
+ check = 'cgse_tools.cgse_commands:check'
40
38
 
41
- [project.entry-points."cgse.service"]
39
+ [project.entry-points."cgse.service.example"]
42
40
  dev-x = 'cgse_tools.cgse_services:dev_x'
43
41
 
44
42
  [tool.hatch.build.targets.sdist]
@@ -10,6 +10,7 @@ from typing import Annotated
10
10
  import rich
11
11
  import typer
12
12
 
13
+ from cgse_common import AppState
13
14
  from egse.plugin import entry_points
14
15
  from egse.setup import Setup
15
16
  from egse.system import format_datetime
@@ -18,12 +19,15 @@ app = typer.Typer()
18
19
 
19
20
 
20
21
  @app.command()
21
- def top():
22
+ def top(ctx: typer.Context):
22
23
  """
23
24
  A top-like interface for core services and device control servers.
24
25
 
25
26
  Not yet implemented.
26
27
  """
28
+ state: AppState = ctx.obj
29
+
30
+ print(f"The `verbose` flag is {state.verbose}")
27
31
  print("This fancy top is not yet implemented.")
28
32
 
29
33
 
File without changes
File without changes