-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathPnpm.Generated.cs
More file actions
116 lines (100 loc) · 4.02 KB
/
Pnpm.Generated.cs
File metadata and controls
116 lines (100 loc) · 4.02 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
// <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.Node.Options;
namespace ModularPipelines.Node.Services;
/// <summary>
/// Generated implementation for pnpm CLI commands.
/// </summary>
[GeneratedCode("ModularPipelines.OptionsGenerator", "")]
internal partial class Pnpm : IPnpm
{
private readonly ICommand _command;
/// <summary>
/// Initializes a new instance of the <see cref="Pnpm"/> class.
/// </summary>
public Pnpm(ICommand command)
{
_command = command;
}
#region Commands
/// <inheritdoc />
public virtual async Task<CommandResult> Add(
PnpmAddOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new PnpmAddOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Audit(
PnpmAuditOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new PnpmAuditOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Create(
PnpmCreateOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new PnpmCreateOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Dlx(
PnpmDlxOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new PnpmDlxOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Init(
PnpmInitOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new PnpmInitOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Publish(
PnpmPublishOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new PnpmPublishOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Run(
PnpmRunOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new PnpmRunOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Unlink(
PnpmUnlinkOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new PnpmUnlinkOptions(), executionOptions, cancellationToken);
}
/// <inheritdoc />
public virtual async Task<CommandResult> Why(
PnpmWhyOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new PnpmWhyOptions(), executionOptions, cancellationToken);
}
#endregion
}