Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Json option to dotnet automation api #11148

Merged
merged 1 commit into from Oct 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -0,0 +1,4 @@
changes:
- type: feat
scope: auto/dotnet
description: Add Json option to UpdateOptions.
5 changes: 5 additions & 0 deletions sdk/dotnet/Pulumi.Automation/UpdateOptions.cs
Expand Up @@ -66,5 +66,10 @@ public class UpdateOptions
/// Print detailed debugging output during resource operations
/// </summary>
public bool? Debug { get; set; }

/// <summary>
/// Format standard output as JSON not text.
/// </summary>
public bool? Json { get; set; }
}
}
5 changes: 5 additions & 0 deletions sdk/dotnet/Pulumi.Automation/WorkspaceStack.cs
Expand Up @@ -800,6 +800,11 @@ static void ApplyUpdateOptions(UpdateOptions options, List<string> args)
{
args.Add("--debug");
}

if (options.Json is true)
{
args.Add("--json");
}
}
}
}