Coverage for apio/commands/apio_drivers.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.11.0, created at 2025-11-06 10:20 +0000

1# -*- coding: utf-8 -*- 

2# -- This file is part of the Apio project 

3# -- (C) 2016-2024 FPGAwars 

4# -- Authors 

5# -- * Jesús Arroyo (2016-2019) 

6# -- * Juan Gonzalez (obijuan) (2019-2024) 

7# -- License GPLv2 

8"""Implementation of 'apio drivers' command group.""" 

9 

10import click 

11from apio.utils.cmd_util import ApioGroup, ApioSubgroup 

12from apio.commands import ( 

13 apio_drivers_install, 

14 apio_drivers_uninstall, 

15) 

16 

17 

18# --- apio drivers 

19 

20# -- Text in the rich-text format of the python rich library. 

21APIO_DRIVERS_HELP = """ 

22The command group 'apio drivers' contains subcommands to manage the \ 

23drivers on your system. 

24""" 

25 

26# -- We have only a single group with the title 'Subcommands'. 

27SUBGROUPS = [ 

28 ApioSubgroup( 

29 "Subcommands", 

30 [ 

31 apio_drivers_install.cli, 

32 apio_drivers_uninstall.cli, 

33 ], 

34 ) 

35] 

36 

37 

38@click.command( 

39 name="drivers", 

40 cls=ApioGroup, 

41 subgroups=SUBGROUPS, 

42 short_help="Manage the operating system drivers.", 

43 help=APIO_DRIVERS_HELP, 

44) 

45def cli(): 

46 """Implements the apio drivers command.""" 

47 

48 # pass