-
Notifications
You must be signed in to change notification settings - Fork 0
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 #60 from oleoneto/v0.19.1rc
0.19.1
- Loading branch information
Showing
153 changed files
with
680 additions
and
620 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
npx --no-install commitlint --edit "$1" | ||
#npx --no-install commitlint --edit "$1" |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
# django_clite:cli |
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
File renamed without changes.
File renamed without changes.
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,10 @@ | ||
from django_clite.cli.utils import sanitized_string | ||
from django_clite.core.field_parser.factory import AttributeFactory | ||
|
||
|
||
def sanitized_string_callback(_ctx, _param, value): | ||
return sanitized_string(value) | ||
|
||
|
||
def fields_callback(ctx, _param, values): | ||
return AttributeFactory().parsed_fields(values) |
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
src/cli/commands/destroy/admin.py → django_clite/commands/destroy/admin.py
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
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
src/cli/commands/destroy/fixtures.py → django_clite/commands/destroy/fixtures.py
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
4 changes: 2 additions & 2 deletions
4
src/cli/commands/destroy/forms.py → django_clite/commands/destroy/forms.py
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,50 @@ | ||
# cli:commands:destroy | ||
import click | ||
|
||
from django_clite.commands.destroy.admin import admin, admin_inline as admin_inline | ||
from django_clite.commands.destroy.fixtures import fixture | ||
from django_clite.commands.destroy.forms import form | ||
from django_clite.commands.destroy.management import management | ||
from django_clite.commands.destroy.managers import manager | ||
from django_clite.commands.destroy.models import model, scaffold | ||
from django_clite.commands.destroy.serializers import serializer | ||
from django_clite.commands.destroy.signals import signal | ||
from django_clite.commands.destroy.tags import tag | ||
from django_clite.commands.destroy.template import template | ||
from django_clite.commands.destroy.tests import test | ||
from django_clite.commands.destroy.validators import validator | ||
from django_clite.commands.destroy.views import view | ||
from django_clite.commands.destroy.viewsets import viewset | ||
|
||
|
||
@click.group() | ||
@click.pass_context | ||
def destroy(ctx): | ||
""" | ||
Destroy application resources. | ||
""" | ||
|
||
ctx.ensure_object(dict) | ||
|
||
|
||
[ | ||
destroy.add_command(cmd) | ||
for cmd in [ | ||
admin, | ||
admin_inline, | ||
fixture, | ||
form, | ||
management, | ||
manager, | ||
model, | ||
scaffold, | ||
serializer, | ||
signal, | ||
tag, | ||
template, | ||
test, | ||
validator, | ||
view, | ||
viewset, | ||
] | ||
] |
4 changes: 2 additions & 2 deletions
4
src/cli/commands/destroy/management.py → django_clite/commands/destroy/management.py
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
4 changes: 2 additions & 2 deletions
4
src/cli/commands/destroy/managers.py → django_clite/commands/destroy/managers.py
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
8 changes: 4 additions & 4 deletions
8
src/cli/commands/destroy/models.py → django_clite/commands/destroy/models.py
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
6 changes: 3 additions & 3 deletions
6
src/cli/commands/destroy/serializers.py → django_clite/commands/destroy/serializers.py
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
6 changes: 3 additions & 3 deletions
6
src/cli/commands/destroy/signals.py → django_clite/commands/destroy/signals.py
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
6 changes: 3 additions & 3 deletions
6
src/cli/commands/destroy/tags.py → django_clite/commands/destroy/tags.py
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
4 changes: 2 additions & 2 deletions
4
src/cli/commands/destroy/template.py → django_clite/commands/destroy/template.py
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
6 changes: 3 additions & 3 deletions
6
src/cli/commands/destroy/validators.py → django_clite/commands/destroy/validators.py
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
6 changes: 3 additions & 3 deletions
6
src/cli/commands/destroy/views.py → django_clite/commands/destroy/views.py
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
6 changes: 3 additions & 3 deletions
6
src/cli/commands/destroy/viewsets.py → django_clite/commands/destroy/viewsets.py
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
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
src/cli/commands/generate/dockerfile.py → django_clite/commands/generate/dockerfile.py
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
Oops, something went wrong.