Skip to content

Commit

Permalink
Fix package entry-point
Browse files Browse the repository at this point in the history
  • Loading branch information
gatkin committed Nov 15, 2019
1 parent 239e5fb commit 1a16949
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions nrdash/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@


@click.group()
def nrdash():
def main():
"""Build New Relic dashboards."""


@nrdash.command()
@main.command()
@click.argument("config-file", type=str, required=True)
@click.option("--api-key", type=str, required=True, help="New Relic admin API key")
@click.option("--account-id", type=int, required=True, help="New Relic account id")
Expand All @@ -28,7 +28,7 @@ def build(config_file, api_key, account_id):
client.create_dashboard(dashboard)


@nrdash.command()
@main.command()
@click.argument("config-file", type=str, required=True)
def lint(config_file):
"""Lint New Relic dashboard YAML configuration."""
Expand All @@ -37,4 +37,4 @@ def lint(config_file):


if __name__ == "__main__":
nrdash()
main()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/gatkin/nrdashboards",
version="0.2.0",
version="0.2.1",
author="Greg Atkin",
author_email="greg.scott.atkin@gmail.com",
license="MIT",
Expand Down

0 comments on commit 1a16949

Please sign in to comment.