diff --git a/server/eit/commands/repo.py b/server/eit/commands/repo.py new file mode 100644 index 000000000..9148db61d --- /dev/null +++ b/server/eit/commands/repo.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +""" + + @author: Fabio Erculiani + @contact: lxnay@sabayon.org + @copyright: Fabio Erculiani + @license: GPL-2 + + B{Entropy Infrastructure Toolkit}. + +""" +import sys +import os +import argparse + +from entropy.i18n import _ +from entropy.output import darkgreen, teal + +from eit.commands.descriptor import EitCommandDescriptor +from eit.commands.command import EitCommand + + +class EitRepo(EitCommand): + """ + Main Eit repo command. + """ + + NAME = "repo" + ALIASES = [] + + def parse(self): + """ Overridden from EitRepo """ + return self._call_locked, [self._void, None] + + def _void(self, entropy_server): + return 0 + +EitCommandDescriptor.register( + EitCommandDescriptor( + EitRepo, + EitRepo.NAME, + _('show current repository')) + )