Ejemplo n.º 1
0
 def register(self, argument_parser):
     parser = argument_parser.add_parser(
         "build",
         help="Generate the library source code blob with the given options."
     )
     parser.add_argument("-m",
                         "--module",
                         dest="modules",
                         type=str,
                         action="append",
                         default=[],
                         help="Select a specific module.")
     parser.add_argument(
         "--simulate",
         dest="simulate",
         action="store_true",
         default=False,
         help=
         "Build, but do not write any files. Prints out all generated file names."
     )
     parser.add_argument(
         "--no-log",
         dest="buildlog",
         action="store_false",
         default=True,
         help="Do not create a build log. This log contains all files being "
         "generated, their source files and the module which generated "
         "the file.")
     parser.set_defaults(execute_action=self.load_repositories)
Ejemplo n.º 2
0
 def register(self, argument_parser):
     parser = argument_parser.add_parser(
         "clean", help="Remove previously generated files.")
     parser.add_argument(
         "--buildlog",
         dest="buildlog",
         default="project.xml.log",
         help="Use the given buildlog to identify the files to remove.")
     parser.set_defaults(execute_action=self.perform)
Ejemplo n.º 3
0
 def register(self, argument_parser):
     parser = argument_parser.add_parser(
         "validate",
         help=
         "Validate the library configuration and data inputs with the given options."
     )
     parser.add_argument("-m",
                         "--module",
                         dest="modules",
                         type=str,
                         action="append",
                         default=[],
                         help="Select a specific module.")
     parser.set_defaults(execute_action=self.load_repositories)
Ejemplo n.º 4
0
 def register(self, argument_parser):
     parser = argument_parser.add_parser(
         "discover-options",
         help=
         "Display all known option names, current values, allowed inputs and "
         "short descriptions.")
     parser.add_argument("-n",
                         "--name",
                         dest="names",
                         type=str,
                         action="append",
                         default=[],
                         help="Select a specific repository or module.")
     parser.set_defaults(execute_action=self.load_repositories)
Ejemplo n.º 5
0
 def register(self, argument_parser):
     parser = argument_parser.add_parser(
         "discover",
         help=
         "Render the available repository tree with modules and options. "
         "You may need to provide options to see the entire tree!")
     parser.add_argument(
         "-n",
         "--name",
         dest="names",
         type=str,
         action="append",
         default=[],
         help="Select a specific repository, module or option.")
     parser.add_argument(
         "--values",
         dest="values",
         action="store_true",
         default=False,
         help="Display option values, instead of description")
     parser.set_defaults(execute_action=self.load_repositories)
Ejemplo n.º 6
0
 def register(self, argument_parser):
     parser = argument_parser.add_parser(
         "dependencies",
         help=
         "Generate a grahpviz representation of the module dependencies.")
     parser.add_argument("-m",
                         "--module",
                         dest="modules",
                         type=str,
                         action="append",
                         default=[],
                         help="Select specific modules.")
     parser.add_argument(
         "-n",
         "--depth",
         dest="depth",
         type=int,
         default=sys.maxsize,
         help="Only show dependencies up to a specific depth. Only valid if "
         "specific modules are selected, otherwise all modules are printed "
         "anyways.")
     parser.set_defaults(execute_action=self.load_repositories)
Ejemplo n.º 7
0
 def register(self, argument_parser):
     parser = argument_parser.add_parser(
         "update",
         help=
         "Update the content of remote repositories in the cache folder.")
     parser.set_defaults(execute_action=self.perform)
Ejemplo n.º 8
0
 def register(self, argument_parser):
     parser = argument_parser.add_parser(
         "init", help="Load remote repositories into the cache folder.")
     parser.set_defaults(execute_action=self.perform)