-
Notifications
You must be signed in to change notification settings - Fork 122
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 #145 from stephenfin/add-subcommands
Add 'towncrier create', 'towncrier check' commands
- Loading branch information
Showing
15 changed files
with
473 additions
and
195 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
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,23 @@ | ||
# Copyright (c) Stephen Finucane, 2019 | ||
# See LICENSE for details. | ||
|
||
""" | ||
towncrier, a builder for your news files. | ||
""" | ||
|
||
import click | ||
from click_default_group import DefaultGroup | ||
|
||
from .build import _main as _build_cmd | ||
from .check import _main as _check_cmd | ||
from .create import _main as _create_cmd | ||
|
||
|
||
@click.group(cls=DefaultGroup, default="build", default_if_no_args=True) | ||
def cli(): | ||
pass | ||
|
||
|
||
cli.add_command(_build_cmd) | ||
cli.add_command(_check_cmd) | ||
cli.add_command(_create_cmd) |
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.