-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathCargo.Generated.cs
More file actions
179 lines (156 loc) · 6.6 KB
/
Cargo.Generated.cs
File metadata and controls
179 lines (156 loc) · 6.6 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
// <auto-generated>
// This file was generated by ModularPipelines.OptionsGenerator.
// Do not edit this file manually.
// </auto-generated>
#nullable enable
using System.CodeDom.Compiler;
using ModularPipelines.Context;
using ModularPipelines.Models;
using ModularPipelines.Options;
using ModularPipelines.Rust.Options;
namespace ModularPipelines.Rust.Services;
/// <summary>
/// Generated implementation for cargo CLI commands.
/// </summary>
[GeneratedCode("ModularPipelines.OptionsGenerator", "")]
internal partial class Cargo : ICargo
{
private readonly ICommand _command;
/// <summary>
/// Initializes a new instance of the <see cref="Cargo"/> class.
/// </summary>
public Cargo(ICommand command)
{
_command = command;
}
#region Commands
/// <inheritdoc />
public virtual async Task<CommandResult> Add(
CargoAddOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new CargoAddOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Bench(
CargoBenchOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new CargoBenchOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Build(
CargoBuildOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new CargoBuildOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Check(
CargoCheckOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new CargoCheckOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Clean(
CargoCleanOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new CargoCleanOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Doc(
CargoDocOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new CargoDocOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Init(
CargoInitOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new CargoInitOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Install(
CargoInstallOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new CargoInstallOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> New(
CargoNewOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new CargoNewOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Publish(
CargoPublishOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new CargoPublishOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Remove(
CargoRemoveOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new CargoRemoveOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Run(
CargoRunOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new CargoRunOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Search(
CargoSearchOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new CargoSearchOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Test(
CargoTestOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new CargoTestOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Uninstall(
CargoUninstallOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new CargoUninstallOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Update(
CargoUpdateOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new CargoUpdateOptions(), executionOptions, cancellationToken);
}
#endregion
}