2022-03-02 16:41:28 -06:00
|
|
|
# -*- coding: utf-8; -*-
|
|
|
|
|
######################################################################
|
|
|
|
|
#
|
2022-03-03 21:06:49 -06:00
|
|
|
# Messkit -- Generic-ish Data Utility App
|
2024-05-15 15:59:55 -05:00
|
|
|
# Copyright © 2022-2024 Lance Edgar
|
2022-03-02 16:41:28 -06:00
|
|
|
#
|
2022-03-03 21:06:49 -06:00
|
|
|
# This file is part of Messkit.
|
2022-03-02 16:41:28 -06:00
|
|
|
#
|
2022-03-03 21:06:49 -06:00
|
|
|
# Messkit is free software: you can redistribute it and/or modify it
|
2022-03-02 16:41:28 -06:00
|
|
|
# under the terms of the GNU General Public License as published by
|
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
#
|
2022-03-03 21:06:49 -06:00
|
|
|
# Messkit is distributed in the hope that it will be useful, but
|
2022-03-02 16:41:28 -06:00
|
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
# General Public License for more details.
|
|
|
|
|
#
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2022-03-03 21:06:49 -06:00
|
|
|
# along with Messkit. If not, see <http://www.gnu.org/licenses/>.
|
2022-03-02 16:41:28 -06:00
|
|
|
#
|
|
|
|
|
######################################################################
|
|
|
|
|
"""
|
2022-03-03 21:06:49 -06:00
|
|
|
Messkit commands
|
2022-03-02 16:41:28 -06:00
|
|
|
"""
|
|
|
|
|
|
2024-05-15 15:59:55 -05:00
|
|
|
import typer
|
2022-03-02 16:41:28 -06:00
|
|
|
|
2024-07-01 11:50:30 -05:00
|
|
|
from rattail.commands.typer import make_typer
|
2022-03-02 16:41:28 -06:00
|
|
|
|
|
|
|
|
|
2024-07-01 11:50:30 -05:00
|
|
|
messkit_typer = make_typer(
|
|
|
|
|
name='messkit',
|
2024-05-15 15:59:55 -05:00
|
|
|
help="Messkit (Generic Data App)"
|
|
|
|
|
)
|
2022-03-02 16:41:28 -06:00
|
|
|
|
|
|
|
|
|
2024-05-15 15:59:55 -05:00
|
|
|
@messkit_typer.command()
|
|
|
|
|
def install(
|
|
|
|
|
ctx: typer.Context,
|
|
|
|
|
):
|
2022-03-02 16:41:28 -06:00
|
|
|
"""
|
2023-01-17 19:30:35 -06:00
|
|
|
Install the Messkit app
|
2022-03-02 16:41:28 -06:00
|
|
|
"""
|
2024-05-15 15:59:55 -05:00
|
|
|
from messkit.install import MesskitInstallHandler
|
|
|
|
|
|
|
|
|
|
config = ctx.parent.rattail_config
|
|
|
|
|
handler = MesskitInstallHandler(
|
|
|
|
|
config,
|
|
|
|
|
app_title="Messkit",
|
|
|
|
|
app_package='messkit',
|
|
|
|
|
app_eggname='Messkit',
|
|
|
|
|
app_pypiname='Messkit',
|
|
|
|
|
main_image_url='/messkit/img/messkit.png',
|
|
|
|
|
header_image_url='/messkit/img/messkit-small.png',
|
|
|
|
|
favicon_url='/messkit/img/messkit-small.png')
|
|
|
|
|
handler.run()
|