Setup the entry function
ci/woodpecker/push/build Pipeline failed
Details
ci/woodpecker/push/build Pipeline failed
Details
This commit is contained in:
parent
26e89b068c
commit
1b97680e23
|
@ -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
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue