pcvs.cli.cli_run module

pcvs.cli.cli_run.compl_list_dirs(ctx, args, incomplete)[source]

directory completion function.

Parameters:
  • ctx (Click.Context) – Click context

  • args (str) – the option/argument requesting completion.

  • incomplete (str) – the user input

Return type:

list

pcvs.cli.cli_run.handle_build_lockfile(exc=None)[source]

Remove the file lock in build dir if the application stops abrubtly.

This function will automatically forward the raising exception to the next handler.

Raises:

Exception – any exception triggering this handler

Parameters:

exc (Exception) – The raising exception.

pcvs.cli.cli_run.iterate_dirs(ctx, param, value)[source]

Validate directories provided by users & format them correctly.

Set the defaul label for a given path if not specified & Configure default directories if none was provided.

Parameters:
  • ctx (Click.Context) – Click Context

  • param (str) – The arg targeting the function

  • value (List[str] or str) – The value given by the user:

Returns:

properly formatted dict of user directories, keys are labels.

Return type:

dict