Skip to content

Commit

Permalink
Reduce custom python code (#80)
Browse files Browse the repository at this point in the history
* Reduce custom python code

* Reduce custom python code
  • Loading branch information
ismailsimsek authored Jul 22, 2024
1 parent a6841d1 commit 70762f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions pyliquibase/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class Pyliquibase():

def __init__(self, defaultsFile: str,
def __init__(self, defaultsFile: str = None,
liquibaseDir: str = None,
jdbcDriversDir: str = None,
additionalClasspath: str = None,
Expand Down Expand Up @@ -233,12 +233,9 @@ def _download_file(self, url: str, destination: str) -> None:

def main():
parser = argparse.ArgumentParser()
parser.add_argument('--defaultsFile', type=str, default="liquibase.properties",
help='Relative path to liquibase.properties file'
)
_args, args = parser.parse_known_args()

pl = Pyliquibase(defaultsFile=_args.defaultsFile)
pl = Pyliquibase()
pl.execute(*args)


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
'pyliquibase = pyliquibase:main',
],
},
version='2.2.0',
version='2.3.0',
packages=find_packages(),
author="Memiiso Organization",
description='Python liquibase',
Expand Down

0 comments on commit 70762f0

Please sign in to comment.