From 8e3b15b8486aaccee41d147cc2d62cb5d7199ea0 Mon Sep 17 00:00:00 2001 From: Amir MOHAMMADI <amir.mohammadi@idiap.ch> Date: Wed, 24 Jan 2018 12:02:15 +0100 Subject: [PATCH] Add a group command for bob bio commands --- bob/bio/base/script/bio.py | 12 ++++++++++++ setup.py | 4 ++++ 2 files changed, 16 insertions(+) create mode 100644 bob/bio/base/script/bio.py diff --git a/bob/bio/base/script/bio.py b/bob/bio/base/script/bio.py new file mode 100644 index 00000000..34022948 --- /dev/null +++ b/bob/bio/base/script/bio.py @@ -0,0 +1,12 @@ +"""The main entry for bob.bio (click-based) scripts. +""" +import click +import pkg_resources +from click_plugins import with_plugins + + +@with_plugins(pkg_resources.iter_entry_points('bob.bio.cli')) +@click.group() +def bio(): + """Entry for bob.bio commands.""" + pass diff --git a/setup.py b/setup.py index 5b500cbd..95a397db 100644 --- a/setup.py +++ b/setup.py @@ -127,6 +127,10 @@ setup( 'bob.db': [ 'bio_filelist = bob.bio.base.database.filelist.driver:Interface', ], + # main entry for bob cli + 'bob.cli': [ + 'bio = bob.bio.base.script.bio:bio', + ], }, # Classifiers are important if you plan to distribute this package through -- GitLab