-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from bckohan/1.0.1
1.0.1
- Loading branch information
Showing
8 changed files
with
72 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from django_typer import TyperCommand, command | ||
from django_typer import initialize as root | ||
|
||
|
||
class Command(TyperCommand): | ||
|
||
@root(invoke_without_command=True) | ||
def handle(self, flag: bool = False): | ||
# This is the root command, it runs when we run our command without | ||
# any subcommand | ||
print(flag) | ||
|
||
@command() | ||
def subcommand1(self): | ||
pass | ||
|
||
@command() | ||
def subcommand2(self): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "django-typer" | ||
version = "1.0.0" | ||
version = "1.0.1" | ||
description = "Use Typer to define the CLI for your Django management commands." | ||
authors = ["Brian Kohan <[email protected]>"] | ||
license = "MIT" | ||
|
@@ -42,7 +42,7 @@ exclude = ["django_typer/tests", "django_typer/examples", "django_typer/locale"] | |
[tool.poetry.dependencies] | ||
python = ">=3.8,<4.0" | ||
Django = ">=3.2,<6.0" | ||
click = "^8.0.0" | ||
click = "^8.1.0" | ||
|
||
# typer's release history is full of breaking changes for minor versions | ||
# given the reliance on some of its private internals we peg the typer | ||
|