Gets all command parameters and combines them in the following order: - files [empty by default] - all flags
(self)
| 386 | return self._create_cmd(ctx, shell_flags + params, env, timeout) |
| 387 | |
| 388 | def _get_cmd_params(self): |
| 389 | """Gets all command parameters and combines them in the following order: |
| 390 | - files [empty by default] |
| 391 | - all flags |
| 392 | """ |
| 393 | files = self._get_files_params() |
| 394 | flags = self.get_flags() |
| 395 | cwd = Path.cwd() |
| 396 | is_cwd_relative = lambda f: f.is_absolute() and f.is_relative_to(cwd) |
| 397 | make_relative = lambda f: Path(f).relative_to(cwd) if is_cwd_relative( |
| 398 | Path(f)) else f |
| 399 | relative_files = [make_relative(f) for f in files] |
| 400 | return relative_files + flags |
| 401 | |
| 402 | def get_flags(self): |
| 403 | """Gets all flags and combines them in the following order: |
no test coverage detected