def _get_parser(self): """ Overridden from EitCommand """ descriptor = EitCommandDescriptor.obtain_descriptor( EitBranch.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitBranch.NAME)) parser.add_argument("--quick", action="store_true", default=not self._ask, help=_("no stupid questions")) parser.add_argument("branch", nargs='?', metavar="<branch>", help=_("switch to given branch")) parser.add_argument("repo", nargs='?', metavar="<repo>", help=_("repository")) parser.add_argument("--from", metavar="<branch>", help=_("from branch"), dest="frombranch", default=None) parser.add_argument("--no-copy", action="store_true", default=not self._copy, dest="nocopy", help=_("don't copy packages from branch")) return parser
def _get_parser(self): descriptor = EitCommandDescriptor.obtain_descriptor(EitList.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitList.NAME)) parser.add_argument("repo", nargs='+', default=None, metavar="<repo>", help=_("repository")) parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes')) parser.add_argument("--verbose", "-v", action="store_true", default=self._verbose, help=_('output more package info')) parser.add_argument("--injected", action="store_true", default=self._injected, help=_('only list injected packages')) return parser
def _get_parser(self): """ Overridden from EitCommit """ descriptor = EitCommandDescriptor.obtain_descriptor(EitAdd.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitAdd.NAME)) parser.add_argument("packages", nargs='+', metavar="<package>", help=_("package names")) parser.add_argument("--conservative", action="store_true", help=_("do not execute implicit package name " "and slot updates"), default=self._conservative) parser.add_argument("--to", metavar="<repository>", help=_("add to given repository"), default=None) parser.add_argument("--quick", action="store_true", default=not self._ask, help=_("no stupid questions")) return parser
def _get_parser(self): descriptor = EitCommandDescriptor.obtain_descriptor(EitRemove.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitRemove.NAME)) parser.add_argument("packages", nargs='+', metavar="<package>", help=_("package name")) parser.add_argument("--from", metavar="<repository>", help=_("remove from given repository"), dest="fromrepo", default=None) parser.add_argument("--nodeps", action="store_true", help=_("do not include reverse dependencies"), dest="nodeps", default=self._nodeps) parser.add_argument("--quick", action="store_true", default=not self._ask, help=_("no stupid questions")) return parser
def _get_parser(self): """ Overridden from EitCp """ descriptor = EitCommandDescriptor.obtain_descriptor(self.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], self.NAME)) parser.add_argument("source", metavar="<source>", help=_("source repository")) parser.add_argument("dest", metavar="<dest>", help=_("destination repository")) parser.add_argument("--conservative", action="store_true", help=_("do not execute implicit package name " "and slot updates"), default=self._conservative) parser.add_argument("--deps", action="store_true", default=False, help=_("include dependencies")) parser.add_argument("--quick", action="store_true", default=not self._ask, help=_("no stupid questions")) parser.add_argument("packages", nargs='*', metavar="<package>", help=_("package dependency")) return parser
def _get_parser(self): """ Overridden from EitCommand """ descriptor = EitCommandDescriptor.obtain_descriptor( EitNotice.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitNotice.NAME)) subparsers = parser.add_subparsers( title="action", description=_("execute given action"), help=_("available actions")) add_parser = subparsers.add_parser("add", help=_("add notice-board entry")) add_parser.add_argument("repo", nargs='?', default=None, metavar="<repo>", help=_("repository")) add_parser.set_defaults(func=self._add) remove_parser = subparsers.add_parser("remove", help=_("remove notice-board entry")) remove_parser.add_argument("repo", nargs='?', default=None, metavar="<repo>", help=_("repository")) remove_parser.set_defaults(func=self._remove) show_parser = subparsers.add_parser("show", help=_("show notice-board")) show_parser.add_argument("repo", nargs='?', default=None, metavar="<repo>", help=_("repository")) show_parser.set_defaults(func=self._show) return parser
def _get_parser(self): descriptor = EitCommandDescriptor.obtain_descriptor(EitOwn.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitOwn.NAME)) parser.add_argument("paths", nargs='+', metavar="<path>", help=_("path")) parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes')) parser.add_argument("--verbose", "-v", action="store_true", default=self._verbose, help=_('output more package info')) parser.add_argument("--in", metavar="<repository>", help=_("search packages in given repository"), dest="inrepo", default=None) return parser
def _get_parser(self): """ Overridden from EitCp """ descriptor = EitCommandDescriptor.obtain_descriptor( self.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], self.NAME)) parser.add_argument("source", metavar="<source>", help=_("source repository")) parser.add_argument("dest", metavar="<dest>", help=_("destination repository")) parser.add_argument("--conservative", action="store_true", help=_("do not execute implicit package name " "and slot updates"), default=self._conservative) parser.add_argument("--deps", action="store_true", default=False, help=_("include dependencies")) parser.add_argument("--quick", action="store_true", default=not self._ask, help=_("no stupid questions")) parser.add_argument("packages", nargs='*', metavar="<package>", help=_("package dependency")) return parser
def _get_parser(self): """ Overridden from EitCommand """ descriptor = EitCommandDescriptor.obtain_descriptor( EitRemote.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitRemote.NAME)) subparsers = parser.add_subparsers( title="action", description=_("execute action"), help=_("available actions")) list_parser = subparsers.add_parser("list", help=_("list repositories")) list_parser.set_defaults(func=self._list) add_parser = subparsers.add_parser("add", help=_("add repository")) add_parser.add_argument("repository", metavar="<repository>", help=_("repository id")) add_parser.add_argument("--desc", metavar="<description>", default=None, help=_("repository description")) add_parser.add_argument("uri", metavar="<uri>", nargs="+", help=_("repository uri")) add_parser.set_defaults(func=self._add) return parser
def _get_parser(self): """ Overridden from EitCommand """ descriptor = EitCommandDescriptor.obtain_descriptor(EitBranch.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitBranch.NAME)) parser.add_argument("--quick", action="store_true", default=not self._ask, help=_("no stupid questions")) parser.add_argument("branch", nargs='?', metavar="<branch>", help=_("switch to given branch")) parser.add_argument("repo", nargs='?', metavar="<repo>", help=_("repository")) parser.add_argument("--from", metavar="<branch>", help=_("from branch"), dest="frombranch", default=None) parser.add_argument("--no-copy", action="store_true", default=not self._copy, dest="nocopy", help=_("don't copy packages from branch")) return parser
def _get_parser(self): """ Overridden from EitCommand """ descriptor = EitCommandDescriptor.obtain_descriptor(EitRevgraph.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitRevgraph.NAME)) parser.add_argument("packages", nargs='+', metavar="<package>", help=_("package name")) parser.add_argument("--in", metavar="<repository>", help=_("search packages in given repository"), dest="inrepo", default=None) parser.add_argument( "--complete", action="store_true", default=self._complete, help=_('show system packages, build deps, circular deps')) parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes')) return parser
def _get_parser(self): self._real_command = sys.argv[0] descriptor = EitCommandDescriptor.obtain_descriptor( EitPush.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitPush.NAME)) parser.add_argument("repo", nargs='?', default=None, metavar="<repo>", help=_("repository")) parser.add_argument("--conservative", action="store_true", help=_("do not execute implicit package name " "and slot updates"), default=self._conservative) parser.add_argument("--quick", action="store_true", default=False, help=_("no stupid questions")) parser.add_argument("--force", action="store_true", default=False, help=_("force push in case of QA errors")) group = parser.add_mutually_exclusive_group() group.add_argument("--all", action="store_true", default=False, help=_("push all the repositories")) group.add_argument("--as", metavar="<repo>", default=None, help=_("push as fake repository"), dest="asrepo") parser.add_argument("--pretend", action="store_true", default=False, help=_("show what would be done")) return parser
def _get_parser(self): descriptor = EitCommandDescriptor.obtain_descriptor(EitLock.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], self._name)) parser.add_argument("repo", nargs=1, metavar="<repo>", help=_("repository")) group = parser.add_mutually_exclusive_group() group.add_argument("--client", action="store_true", default=False, help=_('affect entropy clients only')) group.add_argument("--status", action="store_true", default=False, help=_('show current status')) parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes')) return parser
def _get_parser(self): """ Overridden from EitCommand """ descriptor = EitCommandDescriptor.obtain_descriptor(EitRemote.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitRemote.NAME)) subparsers = parser.add_subparsers(title="action", description=_("execute action"), help=_("available actions")) list_parser = subparsers.add_parser("list", help=_("list repositories")) list_parser.set_defaults(func=self._list) add_parser = subparsers.add_parser("add", help=_("add repository")) add_parser.add_argument("repository", metavar="<repository>", help=_("repository id")) add_parser.add_argument("--desc", metavar="<description>", default=None, help=_("repository description")) add_parser.add_argument("uri", metavar="<uri>", nargs="+", help=_("repository uri")) add_parser.set_defaults(func=self._add) return parser
def _get_parser(self): """ Overridden from EitCommand """ descriptor = EitCommandDescriptor.obtain_descriptor(EitRepo.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitRepo.NAME)) subparsers = parser.add_subparsers( title="action", description=_("manage repositories"), help=_("available commands")) show_parser = subparsers.add_parser( "show", help=_("show repositories and mirrors status")) show_parser.set_defaults(func=self._show) add_parser = subparsers.add_parser("add", help=_("add a repository")) add_parser.add_argument("id", metavar="<repository>", help=_("repository name")) add_parser.add_argument("--desc", metavar="<description>", required=True, help=_("repository description")) add_parser.add_argument( "--repo", nargs='+', metavar="<repo uri>", required=True, help=_("synchronization URI for both packages and database")) add_parser.add_argument( "--repo-only", nargs='*', default=[], metavar="<database only uri>", help=_("synchronization URI for database only")) add_parser.add_argument( "--pkg-only", nargs='*', default=[], metavar="<packages only uri>", help=_("synchronization URI for packages only")) add_parser.add_argument("--base", action="store_true", default=None, help=_("set this to make this repository the " "'base' for all the others")) add_parser.set_defaults(func=self._add) remove_parser = subparsers.add_parser("remove", help=_("remove a repository")) remove_parser.add_argument("id", nargs='+', metavar="<repository>", help=_("repository name")) remove_parser.set_defaults(func=self._remove) return parser
def _get_parser(self): """ Overridden from EitCommand """ descriptor = EitCommandDescriptor.obtain_descriptor( EitTest.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitTest.NAME)) subparsers = parser.add_subparsers( title="test", description=_("run given test"), help=_("available tests")) deps_parser = subparsers.add_parser("deps", help=_("dependencies test")) deps_parser.set_defaults(func=self._deptest) libs_parser = subparsers.add_parser("libs", help=_("libraries test")) libs_parser.add_argument("--dump", action="store_true", default=False, help=_("dump results to file")) libs_parser.set_defaults(func=self._libtest) links_parser = subparsers.add_parser("links", help=_("library linking test (using repository metadata)")) links_parser.add_argument("excllibs", nargs='*', default=None, metavar="<excluded lib>", help=_("excluded soname")) links_parser.set_defaults(func=self._linktest) pkglibs_parser = subparsers.add_parser("pkglibs", help=_("library linking test (using live system)")) pkglibs_parser.add_argument("packages", nargs='+', default=None, metavar="<package>", help=_("package names")) pkglibs_parser.set_defaults(func=self._pkglibs) pkgs_parser = subparsers.add_parser("local", help=_("verify local packages integrity")) pkgs_parser.add_argument("repo", nargs='?', default=None, metavar="<repo>", help=_("repository")) pkgs_parser.add_argument("--quick", action="store_true", default=not self._ask, help=_("no stupid questions")) pkgs_parser.set_defaults(func=self._pkgtest) rempkgs_parser = subparsers.add_parser("remote", help=_("verify remote packages integrity")) rempkgs_parser.add_argument("repo", nargs='?', default=None, metavar="<repo>", help=_("repository")) rempkgs_parser.add_argument("--quick", action="store_true", default=not self._ask, help=_("no stupid questions")) rempkgs_parser.set_defaults(func=self._rem_pkgtest) return parser
def _get_parser(self): """ Overridden from EitCommand """ descriptor = EitCommandDescriptor.obtain_descriptor(EitCheckout.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitCheckout.NAME)) parser.add_argument("repo", metavar="<repo>", help=_("repository")) return parser
def _get_parser(self): """ Overridden from EitCommand """ descriptor = EitCommandDescriptor.obtain_descriptor( EitCheckout.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitCheckout.NAME)) parser.add_argument("repo", metavar="<repo>", help=_("repository")) return parser
def _get_parser(self): """ Overridden from EitCommand """ descriptor = EitCommandDescriptor.obtain_descriptor( EitRepo.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitRepo.NAME)) subparsers = parser.add_subparsers( title="action", description=_("manage repositories"), help=_("available commands")) show_parser = subparsers.add_parser( "show", help=_("show repositories and mirrors status")) show_parser.set_defaults(func=self._show) add_parser = subparsers.add_parser( "add", help=_("add a repository")) add_parser.add_argument( "id", metavar="<repository>", help=_("repository name")) add_parser.add_argument( "--desc", metavar="<description>", required=True, help=_("repository description")) add_parser.add_argument( "--repo", nargs='+', metavar="<repo uri>", required=True, help=_("synchronization URI for both packages and database")) add_parser.add_argument( "--repo-only", nargs='*', default=[], metavar="<database only uri>", help=_("synchronization URI for database only")) add_parser.add_argument( "--pkg-only", nargs='*', default=[], metavar="<packages only uri>", help=_("synchronization URI for packages only")) add_parser.add_argument( "--base", action="store_true", default=None, help=_("set this to make this repository the " "'base' for all the others")) add_parser.set_defaults(func=self._add) remove_parser = subparsers.add_parser("remove", help=_("remove a repository")) remove_parser.add_argument( "id", nargs='+', metavar="<repository>", help=_("repository name")) remove_parser.set_defaults(func=self._remove) return parser
def _get_parser(self): descriptor = EitCommandDescriptor.obtain_descriptor(EitLog.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitLog.NAME)) parser.add_argument("repo", nargs='?', default=None, metavar="<repo>", help=_("repository")) return parser
def _get_parser(self): """ Overridden from EitCommit """ descriptor = EitCommandDescriptor.obtain_descriptor( EitRepack.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitRepack.NAME)) parser.add_argument("packages", nargs='+', metavar="<package>", help=_("package names")) parser.add_argument("--in", metavar="<repository>", help=_("repack to given repository"), default=None, dest="into") return parser
def _get_parser(self): descriptor = EitCommandDescriptor.obtain_descriptor( EitDeps.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitDeps.NAME)) parser.add_argument("packages", nargs='+', metavar="<package>", help=_("package name")) parser.add_argument("--in", metavar="<repository>", help=_("inject into given repository"), dest="inrepo", default=None) return parser
def _get_parser(self): """ Overridden from EitInit """ descriptor = EitCommandDescriptor.obtain_descriptor( EitInit.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitInit.NAME)) parser.add_argument("repo", nargs=1, default=None, metavar="<repo>", help=_("repository")) parser.add_argument("--quick", action="store_true", default=not self._ask, help=_("no stupid questions")) return parser
def _get_parser(self): descriptor = EitCommandDescriptor.obtain_descriptor( EitFiles.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitFiles.NAME)) parser.add_argument("packages", nargs='+', metavar="<package>", help=_("package names")) parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes')) return parser
def _get_parser(self): """ Overridden from EitCommit """ descriptor = EitCommandDescriptor.obtain_descriptor(EitRepack.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitRepack.NAME)) parser.add_argument("packages", nargs='+', metavar="<package>", help=_("package names")) parser.add_argument("--in", metavar="<repository>", help=_("repack to given repository"), default=None, dest="into") return parser
def _get_parser(self): """ Overridden from EitCommand """ descriptor = EitCommandDescriptor.obtain_descriptor(EitBump.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitBump.NAME)) parser.add_argument("repo", nargs='?', default=None, metavar="<repo>", help=_("repository")) parser.add_argument("--sync", action="store_true", default=self._sync, help=_("sync with remote repository")) return parser
def _get_parser(self): descriptor = EitCommandDescriptor.obtain_descriptor(EitDeps.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitDeps.NAME)) parser.add_argument("packages", nargs='+', metavar="<package>", help=_("package name")) parser.add_argument("--in", metavar="<repository>", help=_("inject into given repository"), dest="inrepo", default=None) return parser
def _get_parser(self): descriptor = EitCommandDescriptor.obtain_descriptor(EitFiles.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitFiles.NAME)) parser.add_argument("packages", nargs='+', metavar="<package>", help=_("package names")) parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes')) return parser
def _get_parser(self): descriptor = EitCommandDescriptor.obtain_descriptor( EitInject.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitInject.NAME)) parser.add_argument("packages", nargs='+', metavar="<path>", help=_("package paths")) parser.add_argument("--to", metavar="<repository>", help=_("inject into given repository"), default=None) parser.add_argument("--quick", action="store_true", default=not self._ask, help=_("no stupid questions")) parser.add_argument("--reset-revision", action="store_true", default=self._reset_revision, help=_("reset revision to 0 (advanced)")) return parser
def _get_parser(self): """ Overridden from EitCommand """ descriptor = EitCommandDescriptor.obtain_descriptor( EitSearch.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitSearch.NAME)) parser.add_argument("packages", nargs='+', metavar="<package>", help=_("package name")) parser.add_argument("--in", metavar="<repository>", help=_("search packages in given repository"), dest="inrepo", default=None) parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes')) return parser
def _get_parser(self): """ Overridden from EitCommand """ descriptor = EitCommandDescriptor.obtain_descriptor(EitNotice.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitNotice.NAME)) subparsers = parser.add_subparsers( title="action", description=_("execute given action"), help=_("available actions")) add_parser = subparsers.add_parser("add", help=_("add notice-board entry")) add_parser.add_argument("repo", nargs='?', default=None, metavar="<repo>", help=_("repository")) add_parser.set_defaults(func=self._add) remove_parser = subparsers.add_parser( "remove", help=_("remove notice-board entry")) remove_parser.add_argument("repo", nargs='?', default=None, metavar="<repo>", help=_("repository")) remove_parser.set_defaults(func=self._remove) show_parser = subparsers.add_parser("show", help=_("show notice-board")) show_parser.add_argument("repo", nargs='?', default=None, metavar="<repo>", help=_("repository")) show_parser.set_defaults(func=self._show) return parser
def _get_parser(self): descriptor = EitCommandDescriptor.obtain_descriptor( EitRemove.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitRemove.NAME)) parser.add_argument("packages", nargs='+', metavar="<package>", help=_("package name")) parser.add_argument("--from", metavar="<repository>", help=_("remove from given repository"), dest="fromrepo", default=None) parser.add_argument("--nodeps", action="store_true", help=_("do not include reverse dependencies"), dest="nodeps", default=self._nodeps) parser.add_argument("--quick", action="store_true", default=not self._ask, help=_("no stupid questions")) return parser
def _get_parser(self): """ Overridden from EitCommand """ descriptor = EitCommandDescriptor.obtain_descriptor( EitCleanup.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitCleanup.NAME)) parser.add_argument("repo", nargs='?', default=None, metavar="<repo>", help=_("repository")) parser.add_argument("--quick", action="store_true", default=False, help=_("no stupid questions")) parser.add_argument("--pretend", action="store_true", default=False, help=_("show what would be done")) parser.add_argument('--days', type=int, default=self._days, help=_("expired since how many days")) return parser
def _get_parser(self): """ Overridden from EitCommit """ descriptor = EitCommandDescriptor.obtain_descriptor( EitAdd.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitAdd.NAME)) parser.add_argument("packages", nargs='+', metavar="<package>", help=_("package names")) parser.add_argument("--conservative", action="store_true", help=_("do not execute implicit package name " "and slot updates"), default=self._conservative) parser.add_argument("--to", metavar="<repository>", help=_("add to given repository"), default=None) parser.add_argument("--quick", action="store_true", default=not self._ask, help=_("no stupid questions")) return parser
def _get_parser(self): descriptor = EitCommandDescriptor.obtain_descriptor( EitCommit.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitCommit.NAME)) parser.add_argument("repo", nargs='?', default=None, metavar="<repo>", help=_("repository")) parser.add_argument("--conservative", action="store_true", help=_("do not execute implicit package name " "and slot updates"), default=self._conservative) parser.add_argument("--interactive", action="store_true", default=False, help=_("selectively pick changes")) parser.add_argument("--quick", action="store_true", default=not self._ask, help=_("no stupid questions")) return parser
def _get_parser(self): """ Overridden from EitCommit """ descriptor = EitCommandDescriptor.obtain_descriptor(EitMerge.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitMerge.NAME)) parser.add_argument("branch", metavar="<branch>", help=_("repository branch")) parser.add_argument("--in", metavar="<repository>", help=_("work inside given repository"), default=None, dest="into") parser.add_argument("--quick", action="store_true", default=not self._ask, help=_("no stupid questions")) return parser
def _get_parser(self): descriptor = EitCommandDescriptor.obtain_descriptor( EitLock.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], self._name)) parser.add_argument("repo", nargs=1, metavar="<repo>", help=_("repository")) group = parser.add_mutually_exclusive_group() group.add_argument( "--client", action="store_true", default=False, help=_('affect entropy clients only')) group.add_argument( "--status", action="store_true", default=False, help=_('show current status')) parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes')) return parser
def _get_parser(self): descriptor = EitCommandDescriptor.obtain_descriptor(EitInject.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitInject.NAME)) parser.add_argument("packages", nargs='+', metavar="<path>", help=_("package paths")) parser.add_argument("--to", metavar="<repository>", help=_("inject into given repository"), default=None) parser.add_argument("--quick", action="store_true", default=not self._ask, help=_("no stupid questions")) parser.add_argument("--reset-revision", action="store_true", default=self._reset_revision, help=_("reset revision to 0 (advanced)")) return parser
def _get_parser(self): """ Overridden from EitCommand """ descriptor = EitCommandDescriptor.obtain_descriptor( EitKey.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitKey.NAME)) subparsers = parser.add_subparsers( title="action", description=_("execute action"), help=_("available actions")) create_parser = subparsers.add_parser("create", help=_("create keypair for repository and packages")) create_parser.add_argument("repo", metavar="<repo>", help=_("repository")) create_parser.set_defaults(func=self._create) delete_parser = subparsers.add_parser("delete", help=_("delete keypair (and signatures) from repository")) delete_parser.add_argument("repo", metavar="<repo>", help=_("repository")) delete_parser.set_defaults(func=self._delete) status_parser = subparsers.add_parser("status", help=_("show keypair status for repository")) status_parser.add_argument("repo", metavar="<repo>", help=_("repository")) status_parser.set_defaults(func=self._status) sign_parser = subparsers.add_parser("sign", help=_("sign packages in repository using current keypair")) sign_parser.add_argument("repo", metavar="<repo>", help=_("repository")) sign_parser.set_defaults(func=self._sign) import_parser = subparsers.add_parser("import", help=_("import keypair, bind to given repository")) import_parser.add_argument("repo", metavar="<repo>", help=_("repository")) import_parser.add_argument("privkey", metavar="<private key>", type=open, help=_("private key path")) import_parser.add_argument("pubkey", metavar="<pub key path>", type=open, help=_("public key path")) import_parser.set_defaults(func=self._import) export_pub_parser = subparsers.add_parser("export-public", help=_("export the repository public key to file")) export_pub_parser.add_argument("repo", metavar="<repo>", help=_("repository")) export_pub_parser.add_argument("key", metavar="<public key>", type=argparse.FileType('w'), help=_("public key path")) export_pub_parser.set_defaults(func=self._export_pub) export_priv_parser = subparsers.add_parser("export-private", help=_("export the repository private key to file")) export_priv_parser.add_argument("repo", metavar="<repo>", help=_("repository")) export_priv_parser.add_argument("key", metavar="<private key>", type=argparse.FileType('w'), help=_("private key path")) export_priv_parser.set_defaults(func=self._export_priv) return parser
def _get_parser(self): """ Overridden from EitCommand """ descriptor = EitCommandDescriptor.obtain_descriptor( EitQuery.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitQuery.NAME)) subparsers = parser.add_subparsers( title="action", description=_("execute query"), help=_("available queries")) tags_parser = subparsers.add_parser("tags", help=_("search package tags")) tags_parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes')) tags_parser.add_argument("--in", metavar="<repository>", help=_("query into given repository only"), dest="inrepo", default=None) tags_parser.add_argument("tags", nargs='+', metavar="<tag>", help=_("tag name")) tags_parser.set_defaults(func=self._tags) needed_parser = subparsers.add_parser("needed", help=_("show libraries (.so) required by matched packages")) needed_parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes')) needed_parser.add_argument("inrepo", action="store_const", const=None) needed_parser.add_argument("packages", nargs='+', metavar="<package>", help=_("package names")) needed_parser.set_defaults(func=self._needed) required_parser = subparsers.add_parser( "required", help=_("show packages requiring the given library name")) required_parser.add_argument( "libraries", nargs='+', metavar="<library>", help=_("library name (example: libdl.so.2)")) required_parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes')) required_parser.add_argument("inrepo", action="store_const", const=None) required_parser.set_defaults(func=self._required) revdeps_parser = subparsers.add_parser("revdeps", help=_("show reverse dependencies of packages")) revdeps_parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes')) revdeps_parser.add_argument("--verbose", "-v", action="store_true", default=self._verbose, help=_('verbose output, show more info')) revdeps_parser.add_argument("--bdeps", "-b", action="store_true", default=False, help=_('include build dependencies')) revdeps_parser.add_argument("inrepo", action="store_const", const=None) revdeps_parser.add_argument("packages", nargs='+', metavar="<package>", help=_("package names")) revdeps_parser.set_defaults(func=self._revdeps) sets_parser = subparsers.add_parser("sets", help=_("search through package sets")) sets_parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes')) sets_parser.add_argument("--verbose", "-v", action="store_true", default=self._verbose, help=_('verbose output, show package sets content')) sets_parser.add_argument("--in", metavar="<repository>", help=_("query into given repository only"), dest="inrepo", default=None) sets_parser.add_argument("sets", nargs='*', metavar="<set>", help=_("package set name")) sets_parser.set_defaults(func=self._sets) desc_parser = subparsers.add_parser("desc", help=_("search packages through their description")) desc_parser.add_argument("--quiet", "-q", action="store_true", default=self._quiet, help=_('quiet output, for scripting purposes')) desc_parser.add_argument("--verbose", "-v", action="store_true", default=self._verbose, help=_('verbose output, show more information')) desc_parser.add_argument("--in", metavar="<repository>", help=_("query into given repository only"), dest="inrepo", default=None) desc_parser.add_argument("descriptions", nargs='+', metavar="<description>", help=_("package description")) desc_parser.set_defaults(func=self._desc) return parser
def _get_parser(self): """ Overridden from EitCommand """ descriptor = EitCommandDescriptor.obtain_descriptor( EitKey.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitKey.NAME)) subparsers = parser.add_subparsers( title="action", description=_("execute action"), help=_("available actions")) create_parser = subparsers.add_parser("create", help=_("create keypair for repository and packages")) create_parser.add_argument("repo", metavar="<repo>", help=_("repository")) create_parser.set_defaults(func=self._create) delete_parser = subparsers.add_parser("delete", help=_("delete keypair (and signatures) from repository")) delete_parser.add_argument("repo", metavar="<repo>", help=_("repository")) delete_parser.set_defaults(func=self._delete) status_parser = subparsers.add_parser("status", help=_("show keypair status for repository")) status_parser.add_argument("repo", metavar="<repo>", help=_("repository")) status_parser.set_defaults(func=self._status) sign_parser = subparsers.add_parser("sign", help=_("sign packages in repository using current keypair")) sign_parser.add_argument("repo", metavar="<repo>", help=_("repository")) sign_parser.set_defaults(func=self._sign) import_parser = subparsers.add_parser("import", help=_("import keypair, bind to given repository")) import_parser.add_argument("repo", metavar="<repo>", help=_("repository")) import_parser.add_argument("privkey", metavar="<private key>", type=file, help=_("private key path")) import_parser.add_argument("pubkey", metavar="<pub key path>", type=file, help=_("public key path")) import_parser.set_defaults(func=self._import) export_pub_parser = subparsers.add_parser("export-public", help=_("export the repository public key to file")) export_pub_parser.add_argument("repo", metavar="<repo>", help=_("repository")) export_pub_parser.add_argument("key", metavar="<public key>", type=argparse.FileType('w'), help=_("public key path")) export_pub_parser.set_defaults(func=self._export_pub) export_priv_parser = subparsers.add_parser("export-private", help=_("export the repository private key to file")) export_priv_parser.add_argument("repo", metavar="<repo>", help=_("repository")) export_priv_parser.add_argument("key", metavar="<private key>", type=argparse.FileType('w'), help=_("private key path")) export_priv_parser.set_defaults(func=self._export_priv) return parser
def _get_parser(self): """ Overridden from EitCommand """ descriptor = EitCommandDescriptor.obtain_descriptor(EitTest.NAME) parser = argparse.ArgumentParser( description=descriptor.get_description(), formatter_class=argparse.RawDescriptionHelpFormatter, prog="%s %s" % (sys.argv[0], EitTest.NAME)) subparsers = parser.add_subparsers(title="test", description=_("run given test"), help=_("available tests")) deps_parser = subparsers.add_parser("deps", help=_("dependencies test")) deps_parser.set_defaults(func=self._deptest) libs_parser = subparsers.add_parser("libs", help=_("libraries test")) libs_parser.add_argument("--dump", action="store_true", default=False, help=_("dump results to file")) libs_parser.set_defaults(func=self._libtest) links_parser = subparsers.add_parser( "links", help=_("library linking test (using repository metadata)")) links_parser.add_argument("excllibs", nargs='*', default=None, metavar="<excluded lib>", help=_("excluded soname")) links_parser.set_defaults(func=self._linktest) pkglibs_parser = subparsers.add_parser( "pkglibs", help=_("library linking test (using live system)")) pkglibs_parser.add_argument("packages", nargs='+', default=None, metavar="<package>", help=_("package names")) pkglibs_parser.set_defaults(func=self._pkglibs) pkgs_parser = subparsers.add_parser( "local", help=_("verify local packages integrity")) pkgs_parser.add_argument("repo", nargs='?', default=None, metavar="<repo>", help=_("repository")) pkgs_parser.add_argument("--quick", action="store_true", default=not self._ask, help=_("no stupid questions")) pkgs_parser.set_defaults(func=self._pkgtest) rempkgs_parser = subparsers.add_parser( "remote", help=_("verify remote packages integrity")) rempkgs_parser.add_argument("repo", nargs='?', default=None, metavar="<repo>", help=_("repository")) rempkgs_parser.add_argument("--quick", action="store_true", default=not self._ask, help=_("no stupid questions")) rempkgs_parser.set_defaults(func=self._rem_pkgtest) return parser