-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathPodmanComposeRunOptions.Generated.cs
More file actions
182 lines (150 loc) · 5.61 KB
/
PodmanComposeRunOptions.Generated.cs
File metadata and controls
182 lines (150 loc) · 5.61 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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
// <auto-generated>
// This file was generated by ModularPipelines.OptionsGenerator.
// Do not edit this file manually.
// </auto-generated>
#nullable enable
using System.CodeDom.Compiler;
using System.Diagnostics.CodeAnalysis;
using ModularPipelines.Attributes;
using ModularPipelines.Podman.Options;
namespace ModularPipelines.Podman.Options;
/// <summary>
/// Run a one-off command on a service
/// </summary>
[GeneratedCode("ModularPipelines.OptionsGenerator", "")]
[ExcludeFromCodeCoverage]
[CliSubCommand("compose", "run")]
public record PodmanComposeRunOptions : PodmanOptions
{
/// <summary>
/// Build image before starting container
/// </summary>
[CliFlag("--build")]
public bool? Build { get; set; }
/// <summary>
/// Add Linux capabilities
/// </summary>
[CliOption("--cap-add", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)]
public IEnumerable<string>? CapAdd { get; set; }
/// <summary>
/// Drop Linux capabilities
/// </summary>
[CliOption("--cap-drop", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)]
public IEnumerable<string>? CapDrop { get; set; }
/// <summary>
/// Run container in background and print container ID
/// </summary>
[CliFlag("--detach", ShortForm = "-d")]
public bool? Detach { get; set; }
/// <summary>
/// Execute command in dry run mode
/// </summary>
[CliFlag("--dry-run")]
public bool? DryRun { get; set; }
/// <summary>
/// Override the entrypoint of the image
/// </summary>
[CliOption("--entrypoint", Format = OptionFormat.EqualsSeparated)]
public string? Entrypoint { get; set; }
/// <summary>
/// Set environment variables
/// </summary>
[CliOption("--env", ShortForm = "-e", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)]
public IEnumerable<string>? Env { get; set; }
/// <summary>
/// Set environment variables from file
/// </summary>
[CliOption("--env-from-file", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)]
public IEnumerable<string>? EnvFromFile { get; set; }
/// <summary>
/// Keep STDIN open even if not attached (default true)
/// </summary>
[CliFlag("--interactive", ShortForm = "-i")]
public bool? Interactive { get; set; }
/// <summary>
/// Add or override a label
/// </summary>
[CliOption("--label", ShortForm = "-l", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)]
public IEnumerable<string>? Label { get; set; }
/// <summary>
/// Assign a name to the container
/// </summary>
[CliOption("--name", Format = OptionFormat.EqualsSeparated)]
public string? Name { get; set; }
/// <summary>
/// Disable pseudo-TTY allocation (default: auto-detected) (default true)
/// </summary>
[CliFlag("--no-TTY", ShortForm = "-T")]
public bool? NoTty { get; set; }
/// <summary>
/// Don't start linked services
/// </summary>
[CliFlag("--no-deps")]
public bool? NoDeps { get; set; }
/// <summary>
/// Publish a container's port(s) to the host
/// </summary>
[CliOption("--publish", ShortForm = "-p", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)]
public IEnumerable<string>? Publish { get; set; }
/// <summary>
/// Pull image before running ("always"|"missing"|"never") (default "policy")
/// </summary>
[CliOption("--pull", Format = OptionFormat.EqualsSeparated)]
public string? Pull { get; set; }
/// <summary>
/// Don't print anything to STDOUT
/// </summary>
[CliFlag("--quiet", ShortForm = "-q")]
public bool? Quiet { get; set; }
/// <summary>
/// Suppress progress output from the build process
/// </summary>
[CliFlag("--quiet-build")]
public bool? QuietBuild { get; set; }
/// <summary>
/// Pull without printing progress information
/// </summary>
[CliFlag("--quiet-pull")]
public bool? QuietPull { get; set; }
/// <summary>
/// Remove containers for services not defined in the Compose file
/// </summary>
[CliFlag("--remove-orphans")]
public bool? RemoveOrphans { get; set; }
/// <summary>
/// Automatically remove the container when it exits
/// </summary>
[CliFlag("--rm")]
public bool? Rm { get; set; }
/// <summary>
/// Run command with all service's ports enabled and mapped to the host
/// </summary>
[CliFlag("--service-ports", ShortForm = "-P")]
public bool? ServicePorts { get; set; }
/// <summary>
/// Use the service's network useAliases in the network(s) the container connects to
/// </summary>
[CliFlag("--use-aliases")]
public bool? UseAliases { get; set; }
/// <summary>
/// Run as specified username or uid
/// </summary>
[CliOption("--user", ShortForm = "-u", Format = OptionFormat.EqualsSeparated)]
public string? User { get; set; }
/// <summary>
/// Bind mount a volume
/// </summary>
[CliOption("--volume", ShortForm = "-v", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)]
public IEnumerable<string>? Volume { get; set; }
/// <summary>
/// Working directory inside the container
/// </summary>
[CliOption("--workdir", ShortForm = "-w", Format = OptionFormat.EqualsSeparated)]
public string? Workdir { get; set; }
[CliArgument(0, Placement = ArgumentPlacement.BeforeOptions)]
public string? Options { get; set; }
[CliArgument(1, Placement = ArgumentPlacement.BeforeOptions)]
public string? Command { get; set; }
[CliArgument(2, Placement = ArgumentPlacement.BeforeOptions)]
public string? Args { get; set; }
}