Skip to content

Commit 6146fcb

Browse files
authored
Change plain urls to plain urls list (#46)
1 parent c2da4bf commit 6146fcb

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

plain/plain/cli/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ __all__ = [
5252
]
5353
```
5454

55-
### `plain urls`
55+
### `plain urls list`
5656

5757
List all the URL patterns in your app.
5858

plain/plain/cli/urls.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@
33
import click
44

55

6-
@click.command()
6+
@click.group()
7+
def urls():
8+
"""URL related commands"""
9+
pass
10+
11+
12+
@urls.command("list")
713
@click.option("--flat", is_flag=True, help="List all URLs in a flat list")
8-
def urls(flat):
14+
def list_urls(flat):
915
"""Print all URL patterns under settings.URLS_ROUTER"""
1016
from plain.runtime import settings
1117
from plain.urls import URLResolver, get_resolver

0 commit comments

Comments
 (0)