diff --git a/nwb2bids/cli.py b/nwb2bids/cli.py new file mode 100644 index 0000000..a5fc1d7 --- /dev/null +++ b/nwb2bids/cli.py @@ -0,0 +1,13 @@ +from clize import run +from nwb2bids import base + +#def reposit(): +# run(base.reposit) + +def main(): + run({ + 'reposit': base.reposit, + }) + +if __name__ == '__main__': + main() diff --git a/setup.cfg b/setup.cfg index b7b71eb..1e6fd00 100644 --- a/setup.cfg +++ b/setup.cfg @@ -23,6 +23,7 @@ python_requires = >=3.8 install_requires = numpy pynwb + clize packages = find: include_package_data = false zip_safe = false @@ -40,3 +41,8 @@ skip = .git* check-hidden = true # ignore-regex = # ignore-words-list = + + +[options.entry_points] +console_scripts = + nwb2bids = nwb2bids.cli:main