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

7 statements  

« prev     ^ index     » next       coverage.py v7.17.2, created at 2026-11-07 05:08 +0000

1# This file is part of the Apio project 

2# (C) 2016-present FPGAwars 

3# Project authors: 

4# * Jesús Arroyo (Jesus89) (2016-2019) 

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

6# * The Apio Team (2024-present) 

7# License: GPLv2 

8 

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

10 

11import click 

12from apio.utils.cmd_util import ApioGroup, ApioSubgroup 

13from apio.commands import ( 

14 apio_drivers_install, 

15 apio_drivers_uninstall, 

16) 

17 

18 

19# --- apio drivers 

20 

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

22APIO_DRIVERS_HELP = """ 

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

24drivers on your system. 

25""" 

26 

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

28SUBGROUPS = [ 

29 ApioSubgroup( 

30 "Subcommands", 

31 [ 

32 apio_drivers_install.cli, 

33 apio_drivers_uninstall.cli, 

34 ], 

35 ) 

36] 

37 

38 

39@click.command( 

40 name="drivers", 

41 cls=ApioGroup, 

42 subgroups=SUBGROUPS, 

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

44 help=APIO_DRIVERS_HELP, 

45) 

46def cli(): 

47 """Implements the apio drivers command.""" 

48 

49 # pass