Skip to content

Commit

Permalink
Add Json option to dotnet automation api
Browse files Browse the repository at this point in the history
  • Loading branch information
Frassle committed Oct 25, 2022
1 parent 9133ea4 commit 88cf07e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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");
}
}
}
}

0 comments on commit 88cf07e

Please sign in to comment.