-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptions.cs
More file actions
30 lines (21 loc) · 1.47 KB
/
Options.cs
File metadata and controls
30 lines (21 loc) · 1.47 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
using CommandLine;
namespace ContainerUpdater;
public class Options
{
[Option('e', "exclude", Required = false, HelpText = "Exclude any images where the name, repository or both matches values in the list.")]
public IEnumerable<string> Exclude { get; set; } = [];
[Option('i', "include", Required = false, HelpText = "Include only images where the name, repository or both matches values in the list. Excluded values take precedence if used.")]
public IEnumerable<string> Include { get; set; } = [];
[Option('h', "host", Required = false, HelpText = "Connect to a remote Docker host instead using local named pipes.")]
public Uri? Host { get; set; }
[Option('u', "username", Required = false, HelpText = "Connect to the docker host with the specified username.")]
public string Username { get; set; } = string.Empty;
[Option('p', "password", Required = false, HelpText = "Connect to the docker host with the specified password.")]
public string Password { get; set; } = string.Empty;
[Option('d', "digest-only", Required = false, HelpText = "Only update images with new digests and not pinned version numbers.")]
public bool DigestOnly { get; set; }
[Option("interactive", Required = false, HelpText = "Pause and choose which images to update in interactive mode.")]
public bool Interactive { get; set; }
[Option("dry-run", Required = false, HelpText = "Check for updates and log what would happen but do not make any changes.")]
public bool DryRun { get; set; }
}