Skip to content

Commit

Permalink
Update nerium and fix cli script
Browse files Browse the repository at this point in the history
  • Loading branch information
tym-xqo committed Jun 20, 2019
1 parent 6b5dde2 commit 5404e8f
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ verify_ssl = true
[packages]
apscheduler = "*"
dba-metrics = {editable = true,path = "."}
nerium = {editable = true,git = "https://github.com/tym-xqo/nerium",ref = "b4d99a3"}
nerium = {editable = true,git = "https://github.com/tym-xqo/nerium",ref = "e600c93"}
# nerium = {editable = true, path = "../nerium"}
pg8000 = "*"
slackclient = "*"
48 changes: 38 additions & 10 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions dba_metrics/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def create_table():
store_db.query(sql)


if __name__ == "__main__":
def main():
parser = argparse.ArgumentParser()
parser.add_argument("name", nargs="?", default="all")
parser.add_argument("-s", "--store", action="store_true", default=False)
Expand All @@ -120,4 +120,8 @@ def create_table():
if args.schedule:
schedule(output_function, args.name)
else:
results = output_all(output_function, args.name)
output_all(output_function, args.name)


if __name__ == "__main__":
main()
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
description="Script to run check queries on postgres",
author="Thomas Yager-Madden",
author_email="[email protected]",
install_requires=["apscheduler", "nerium", "pg8000", "slackclient"],
entry_points={"console_scripts": ["dba_metrics = dba_metrics.__main__:main"]},
install_requires=["apscheduler", "nerium", "pg8000", "records", "slackclient"],
entry_points={"console_scripts": ["dbamtx = dba_metrics.__main__:main"]},
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
Expand Down

0 comments on commit 5404e8f

Please sign in to comment.