cjklib.build.cli — Build command line interface

Command line interface (CLI) to the library’s build functionality.

Todo

  • bug: “Prefer” system does not work for additional builders

See also

buildcjkdb — Build database
Documentation on the CLI

Classes

class cjklib.build.cli.CommandLineBuilder(deprecated=None)

Bases: object

Command line interface (CLI) to the build functionality of cjklib.

BUILD_GROUPS
Definition of build groups available to the user. Recursive definitions are not allowed and will lead to a lock up.
DB_PREFER_BUILDERS
Builders prefered for build process.
buildParser()
classmethod getBuilderConfigSettings()

Gets the builder settings from the section Builder from `cjklib.conf`.

Return type:dict
Returns:dictionary of builder options
classmethod getConnectionConfigSettings()

Gets the connections settings from cjklib.conf.

Return type:dict
Returns:dictionary of connection options
classmethod getDefaultOptions(includeConfig=True)
Gets default options that always overwrite those specified in the build module. Boolean options of the DatabaseBuilder can not be changed here as they are hardcoded in the given command line options.
listBuildGroups()
classmethod printFormattedLine(outputString, lineLength=None, subsequentPrefix='')

Formats the given input string to fit to a output with a limited line length and prints it to stdout with the systems encoding.

Parameters:
  • outputString (str) – a string that is formated to fit to the screen
  • lineLength (int) – with of screen
  • subsequentPrefix (str) – prefix used after line break
run()
Runs the builder
runBuild(buildGroupList, options)

Table Of Contents

Previous topic

cjklib.build.builder — Build methods

Next topic

cjklib.dbconnector — SQL database access

This Page