Skip to content

Commit

Permalink
fix: command create not work
Browse files Browse the repository at this point in the history
  • Loading branch information
un4gt committed Apr 11, 2024
1 parent 3ee7108 commit 3d933b3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "flasky-cli"
version = "1.0.0"
version = "1.0.2"
description = " CLI to start Flask projects"
authors = [
{ name = "jennier0107", email = "[email protected]" }
Expand Down
2 changes: 1 addition & 1 deletion src/flask_cli/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.0"
__version__ = "1.0.2"
4 changes: 2 additions & 2 deletions src/flask_cli/cli/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from flask_cli.common import click
from flask_cli.create.cli import create
from flask_cli.create.cli import create_project
from flask_cli.templates.cli import templates


Expand All @@ -10,5 +10,5 @@ def main():
"""


main.add_command(create)
main.add_command(create_project)
main.add_command(templates)
12 changes: 1 addition & 11 deletions src/flask_cli/create/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ def print_instructions(destination: str):
console.print("-- Let's get flasky! --")


@click.group()
def create():
"""
Commands to create templates.
"""


@click.command(name="create")
@click.option(
"--template",
Expand Down Expand Up @@ -51,7 +44,4 @@ def create_project(

destination = cookiecutter(template_obj['source'])

print_instructions(destination)


create.add_command(create_project)
print_instructions(destination)

0 comments on commit 3d933b3

Please sign in to comment.