-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
118 lines (104 loc) · 2.39 KB
/
index.d.ts
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
declare namespace WorkflowDocker {
namespace Cli {
/**
* Flags for meow
*/
interface Flags {
/**
* Prints docker build output
*/
verbose: boolean,
/**
* Do not use cache when building
*/
noCache: boolean,
/**
* Prints debug info (like stack trace)
*/
debug: boolean
}
}
/**
* meow result with our type hints
*/
interface Cli {
input: string[],
flags: WorkflowDocker.Cli.Flags,
pkg: object
}
interface Options {
/**
* Docker image name.
*/
imageName: string,
/**
* A list of tags to build (and generate docker file).
*/
tags: string[],
/**
* Flags converted camelCase including aliases.
*/
tasks: Tasks,
/**
* A list of commands to execute on docker image that was processed.
*/
run: string[] | undefined,
description: string
}
interface Tasks {
/**
* The image will be built
*/
build: boolean,
/**
* The image will be pushed.
*/
push: boolean,
/**
* We are going to generate readme
*/
generateReadme: boolean
}
namespace Build {
interface Context {
/**
* The image will be built
*/
options: Options,
/**
* Cli
*/
cli: Cli,
/**
* Current generated readme section for tags
*/
readmeTags: string,
/**
* The docker template
*/
dockerFileTemplate: string
}
}
interface Config {
/**
* A description for readme.
*/
description: string | undefined
/**
* A list of commands to execute on docker image that was processed.
*/
run: string[] | undefined,
/**
* Docker image name.
*/
image: string,
/**
* A list of tags to build (and generate docker file).
*/
tags: string[],
}
interface Package {
'wf-docker': Config,
description: string
}
}