forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose-pull.ts
More file actions
41 lines (39 loc) · 1.06 KB
/
compose-pull.ts
File metadata and controls
41 lines (39 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const getServices: Fig.Generator = {
script: (context) => {
if (context.includes("-f")) {
const index = context.indexOf("-f");
return `docker-compose -f ${context[index + 1]} config --services`;
}
return "docker-compose config --services";
},
splitOn: "\n",
};
const completionSpec: Fig.Spec = {
name: "pull",
description:
"Pulls images for services defined in a Compose file, but does not start the containers.",
options: [
{
name: ["--ignore-pull-failures"],
description: "Pull what it can and ignores images with pull failures.",
},
{
name: ["--parallel"],
description:
"Deprecated, pull multiple images in parallel (enabled by default).",
},
{
name: ["--no-parallel"],
description: "Disable parallel pulling.",
},
{
name: ["-q", "--quiet"],
description: "Pull without printing progress information",
},
{
name: ["--include-deps"],
description: "Also pull services declared as dependencies",
},
],
};
export default completionSpec;