-
-
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.
- Loading branch information
Showing
18 changed files
with
324 additions
and
23 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,5 +1,5 @@ | ||
.coverage | ||
changedifferently.egg-info | ||
coverage.xml | ||
dist | ||
htmlcov | ||
stackdiff.egg-info |
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,5 +1,6 @@ | ||
{ | ||
"cSpell.words": [ | ||
"changedifferently" | ||
"epilog", | ||
"stackdiff" | ||
] | ||
} |
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 +1 @@ | ||
include changedifferently/version/VERSION | ||
include stackdiff/version/VERSION |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,2 +1,3 @@ | ||
# changedifferently | ||
Visualises the changes described by an Amazon Web Services CloudFormation change set | ||
# stackdiff | ||
|
||
Visualises the changes described by an Amazon Web Services CloudFormation stack change set |
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 |
---|---|---|
|
@@ -18,5 +18,5 @@ else | |
fi | ||
|
||
flake8 . | ||
mypy changedifferently | ||
mypy stackdiff | ||
mypy tests |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
from setuptools import setup # pyright: reportMissingTypeStubs=false | ||
|
||
from changedifferently.version import get_version | ||
from stackdiff.version import get_version | ||
|
||
readme_path = Path(__file__).parent / "README.md" | ||
|
||
|
@@ -36,21 +36,26 @@ | |
author="Cariad Eccleston", | ||
author_email="[email protected]", | ||
classifiers=classifiers, | ||
description="Visualises the changes described by an Amazon Web Services CloudFormation change set", | ||
description="Visualises the changes described by an Amazon Web Services CloudFormation stack change set", | ||
entry_points={ | ||
"console_scripts": [ | ||
"stackdiff=stackdiff.__main__:cli_entry", | ||
], | ||
}, | ||
include_package_data=True, | ||
license="MIT", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
name="changedifferently", | ||
name="stackdiff", | ||
packages=[ | ||
"changedifferently", | ||
"changedifferently.version", | ||
"stackdiff", | ||
"stackdiff.version", | ||
], | ||
package_data={ | ||
"changedifferently": ["py.typed"], | ||
"changedifferently.version": ["py.typed"], | ||
"stackdiff": ["py.typed"], | ||
"stackdiff.version": ["py.typed"], | ||
}, | ||
python_requires=">=3.8", | ||
url="https://github.com/cariad/changedifferently", | ||
url="https://github.com/cariad/stackdiff", | ||
version=version, | ||
) |
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,32 @@ | ||
from argparse import ArgumentParser | ||
from sys import stdout | ||
|
||
from boto3.session import Session | ||
|
||
from stackdiff.stack_diff import StackDiff | ||
from stackdiff.version import get_version | ||
|
||
|
||
def cli_entry() -> None: | ||
parser = ArgumentParser( | ||
description="Visualises the changes described by an Amazon Web Services CloudFormation stack change set.", | ||
epilog="Made with love by Cariad Eccleston: https://github.com/cariad/stackdiff", | ||
) | ||
|
||
parser.add_argument("--change", help="change set ARN, ID or name") | ||
parser.add_argument("--stack", help="stack ARN, ID or name") | ||
parser.add_argument("--version", action="store_true", help="print the version") | ||
|
||
args = parser.parse_args() | ||
|
||
if args.version: | ||
print(get_version()) | ||
exit(0) | ||
|
||
cs = StackDiff(change=args.change, session=Session(), stack=args.stack) | ||
cs.render_differences(stdout) | ||
cs.render_changes(stdout) | ||
|
||
|
||
if __name__ == "__main__": | ||
cli_entry() |
File renamed without changes.
Oops, something went wrong.