preview method

Future<PulumiCommandResult> preview({
  1. bool nonInteractive = true,
  2. bool check = true,
  3. List<String> extraArgs = const <String>[],
})

Runs pulumi preview for this stack.

Implementation

Future<PulumiCommandResult> preview({
  bool nonInteractive = true,
  bool check = true,
  List<String> extraArgs = const <String>[],
}) async {
  final args = <String>['preview', '--stack', name];
  if (nonInteractive) {
    args.add('--non-interactive');
  }
  args.addAll(extraArgs);
  final (result, _) = await _runStackCommand(
    args,
    check: check,
    captureEvents: false,
  );
  return result;
}