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:
- 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:
- 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