manen.cli#

Command Line Interface for manen.

manen.cli.cli()[source]#

Command line entrypoint for the package. After retrieving the given argument(s) and option(s), it will run the right workflow according to the specified options.

manen.cli.download(platform: str, browser: str, versions: List[str])[source]#

Download the drivers based on the information provided in questionary pipeline.

Parameters:
  • platform (str) – platform on which the drivers will run (1st answer in CLI workflow)

  • browser (str) – browser associated to the drivers (2nd anwser in CLI workflow)

  • versions (List[str]) – versions to be downloaded (3rd answer in CLI workflow)

Raises:

NotImplementedError – if the browser is different from Chrome or Brave.

manen.cli.download_workflow()[source]#

Build the pipeline of successive questions used to identify the drivers to be downloaded.

Returns:

list with metadata about the successive questions to be asked by

questionary.

Return type:

List[Dict]

manen.cli.get_args() Namespace[source]#

Parse the arguments specified in the command line.

Returns:

class containing all options as attributes

Return type:

argparse.Namespace

manen.cli.with_browser_parser(subparser: _SubParsersAction)[source]#

Build the parser for the driver sub-command.

Parameters:

subparser (argparse._SubParsersAction) – subparser in which the command browser will be add

Returns:

argparse.ArgumentParser

manen.cli.with_driver_download_parser(subparser: _SubParsersAction)[source]#

Build the subparser used for the download sub-command.

Parameters:

subparser (argparse._SubParsersAction) – subparser in which the command driver download will be add

manen.cli.with_driver_parser(subparser: _SubParsersAction)[source]#

Build the parser for the driver sub-command.

Parameters:

subparser (argparse._SubParsersAction) – subparser in which the command driver will be add