Skip to content

Commit 191fae9

Browse files
thomhurstthomhurst
andauthored
chore: Update pulumi CLI options (#2342)
Co-authored-by: thomhurst <[email protected]>
1 parent b50494a commit 191fae9

File tree

3 files changed

+121
-1
lines changed

3 files changed

+121
-1
lines changed

src/ModularPipelines.Pulumi/AssemblyInfo.Generated.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
using System.Reflection;
77

88
[assembly: AssemblyMetadata("ModularPipelines.OptionsGenerator.Tool", "pulumi")]
9-
[assembly: AssemblyMetadata("ModularPipelines.OptionsGenerator.GeneratedAt", "2026-02-01T03:13:51.8771555Z")]
9+
[assembly: AssemblyMetadata("ModularPipelines.OptionsGenerator.GeneratedAt", "2026-02-08T03:12:30.8014681Z")]
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
// <auto-generated>
2+
// This file was generated by ModularPipelines.OptionsGenerator.
3+
// Do not edit this file manually.
4+
// </auto-generated>
5+
6+
using System.CodeDom.Compiler;
7+
using System.Diagnostics.CodeAnalysis;
8+
using ModularPipelines.Attributes;
9+
using ModularPipelines.Pulumi.Options;
10+
11+
namespace ModularPipelines.Pulumi.Options;
12+
13+
/// <summary>
14+
/// Install required policy packs for a stack.
15+
/// </summary>
16+
[GeneratedCode("ModularPipelines.OptionsGenerator", "")]
17+
[ExcludeFromCodeCoverage]
18+
[CliSubCommand("policy", "install")]
19+
public record PulumiPolicyInstallOptions : PulumiOptions
20+
{
21+
/// <summary>
22+
/// help for install
23+
/// </summary>
24+
[CliFlag("--help", ShortForm = "-h")]
25+
public bool? Help { get; set; }
26+
27+
/// <summary>
28+
/// The name of the stack to operate on. Defaults to the current stack
29+
/// </summary>
30+
[CliOption("--stack", ShortForm = "-s", Format = OptionFormat.EqualsSeparated)]
31+
public string? Stack { get; set; }
32+
33+
/// <summary>
34+
/// Colorize output. Choices are: always, never, raw, auto (default "auto")
35+
/// </summary>
36+
[CliOption("--color", Format = OptionFormat.EqualsSeparated)]
37+
public string? Color { get; set; }
38+
39+
/// <summary>
40+
/// Run pulumi as if it had been started in another directory
41+
/// </summary>
42+
[CliOption("--cwd", ShortForm = "-C", Format = OptionFormat.EqualsSeparated)]
43+
public string? Cwd { get; set; }
44+
45+
/// <summary>
46+
/// Disable integrity checking of checkpoint files
47+
/// </summary>
48+
[CliFlag("--disable-integrity-checking")]
49+
public bool? DisableIntegrityChecking { get; set; }
50+
51+
/// <summary>
52+
/// Enable emojis in the output
53+
/// </summary>
54+
[CliFlag("--emoji", ShortForm = "-e")]
55+
public bool? Emoji { get; set; }
56+
57+
/// <summary>
58+
/// Show fully-qualified stack names
59+
/// </summary>
60+
[CliFlag("--fully-qualify-stack-names", ShortForm = "-Q")]
61+
public bool? FullyQualifyStackNames { get; set; }
62+
63+
/// <summary>
64+
/// Flow log settings to child processes (like plugins)
65+
/// </summary>
66+
[CliFlag("--logflow")]
67+
public bool? Logflow { get; set; }
68+
69+
/// <summary>
70+
/// Log to stderr instead of to files
71+
/// </summary>
72+
[CliFlag("--logtostderr")]
73+
public bool? Logtostderr { get; set; }
74+
75+
/// <summary>
76+
/// Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate
77+
/// </summary>
78+
[CliOption("--memprofilerate", Format = OptionFormat.EqualsSeparated)]
79+
public int? Memprofilerate { get; set; }
80+
81+
/// <summary>
82+
/// Disable interactive mode for all commands
83+
/// </summary>
84+
[CliFlag("--non-interactive")]
85+
public bool? NonInteractive { get; set; }
86+
87+
/// <summary>
88+
/// Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively
89+
/// </summary>
90+
[CliOption("--profiling", Format = OptionFormat.EqualsSeparated)]
91+
public string? Profiling { get; set; }
92+
93+
/// <summary>
94+
/// Emit tracing to the specified endpoint. Use the file: scheme to write tracing data to a local file
95+
/// </summary>
96+
[CliOption("--tracing", Format = OptionFormat.EqualsSeparated)]
97+
public string? Tracing { get; set; }
98+
99+
/// <summary>
100+
/// Enable verbose logging (e.g., v=3); anything &gt;3 is very verbose
101+
/// </summary>
102+
[CliOption("--verbose", ShortForm = "-v", Format = OptionFormat.EqualsSeparated)]
103+
public int? Verbose { get; set; }
104+
105+
}

src/ModularPipelines.Pulumi/Services/PulumiPolicy.Generated.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,21 @@ public virtual async Task<CommandResult> Enable(
8484
return await _command.ExecuteCommandLineTool(options ?? new PulumiPolicyEnableOptions(), executionOptions, cancellationToken);
8585
}
8686

87+
/// <summary>
88+
/// Install required policy packs for a stack.
89+
/// </summary>
90+
/// <param name="options">The command options.</param>
91+
/// <param name="executionOptions">The execution configuration options.</param>
92+
/// <param name="cancellationToken">Cancellation token.</param>
93+
/// <returns>The command result.</returns>
94+
public virtual async Task<CommandResult> Install(
95+
PulumiPolicyInstallOptions options = default,
96+
CommandExecutionOptions executionOptions = null,
97+
CancellationToken cancellationToken = default)
98+
{
99+
return await _command.ExecuteCommandLineTool(options ?? new PulumiPolicyInstallOptions(), executionOptions, cancellationToken);
100+
}
101+
87102
/// <summary>
88103
/// List all Policy Packs for a Pulumi organization
89104
/// </summary>

0 commit comments

Comments
 (0)