Coverage for .tox/coverage/lib/python3.11/site-packages/sideshow/cli/install.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.6.10, created at 2025-01-09 12:58 -0600

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

2################################################################################ 

3# 

4# Sideshow -- Case/Special Order Tracker 

5# Copyright © 2024 Lance Edgar 

6# 

7# This file is part of Sideshow. 

8# 

9# Sideshow is free software: you can redistribute it and/or modify it 

10# under the terms of the GNU General Public License as published by 

11# the Free Software Foundation, either version 3 of the License, or 

12# (at your option) any later version. 

13# 

14# Sideshow is distributed in the hope that it will be useful, but 

15# WITHOUT ANY WARRANTY; without even the implied warranty of 

16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 

17# General Public License for more details. 

18# 

19# You should have received a copy of the GNU General Public License 

20# along with Sideshow. If not, see <http://www.gnu.org/licenses/>. 

21# 

22################################################################################ 

23""" 

24See also: :ref:`sideshow-install` 

25""" 

26 

27import typer 

28 

29from .base import sideshow_typer 

30 

31 

32@sideshow_typer.command() 

33def install( 

34 ctx: typer.Context, 

35): 

36 """ 

37 Install the Sideshow app 

38 """ 

39 config = ctx.parent.wutta_config 

40 app = config.get_app() 

41 install = app.get_install_handler(pkg_name='sideshow', 

42 app_title="Sideshow", 

43 pypi_name='Sideshow', 

44 egg_name='Sideshow') 

45 install.run()