Setup the entry function
ci/woodpecker/push/build Pipeline failed Details

This commit is contained in:
Sameer Rahmani 2023-04-20 17:58:57 +01:00
parent 26e89b068c
commit 1b97680e23
Signed by: lxsameer
GPG Key ID: B0A4AF28AB9FD90B
2 changed files with 54 additions and 1 deletions

53
meissa/main.py Normal file
View File

@ -0,0 +1,53 @@
# Meissa - A trainable and simple text to speech server
#
# Copyright (c) 2023 Sameer Rahmani <lxsameer@gnu.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 2.
#
# This program is distributed in the hope that it will be useful,
# but 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
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
This module contains all the CLI subcommands and interfaces that Meissa
provides for user interaction
"""
import os
import click
@click.group("CLI")
@click.pass_context
def cli(ctx):
pass
@cli.command(help="Seutp the environment")
@click.pass_context
def setup(ctx, f, packages, arch):
click.echo("here")
def main():
"""
The main entry point for Faraday
"""
user_home = os.environ.get("HOME")
meissa_home = os.path.join(user_home, ".meissa")
os.makedirs(meissa_home, exist_ok=True)
cli(
obj={
"home": meissa_home,
}
)
# pylint: skip-file

View File

@ -22,7 +22,7 @@ requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
faraday = "meissa.main:main"
meissa = "meissa.main:main"
[tool.pylint."MESSAGES CONTROL"]