(params: DockerCLIParameters | DockerResolverParameters)
| 690 | } |
| 691 | |
| 692 | async function useNewProjectName(params: DockerCLIParameters | DockerResolverParameters) { |
| 693 | try { |
| 694 | const version = parseVersion((await params.dockerComposeCLI()).version); |
| 695 | if (!version) { |
| 696 | return true; // Optimistically continue. |
| 697 | } |
| 698 | return !isEarlierVersion(version, [1, 21, 0]); // 1.21.0 changed allowed characters in project names (added hyphen and underscore). |
| 699 | } catch (err) { |
| 700 | return true; // Optimistically continue. |
| 701 | } |
| 702 | } |
| 703 | |
| 704 | export function dockerComposeCLIConfig(params: Omit<PartialExecParameters, 'cmd'>, dockerCLICmd: string, dockerComposeCLICmd: string) { |
| 705 | let result: Promise<DockerComposeCLI>; |
no test coverage detected