createOrSelectInlineStack static method

Future<Stack> createOrSelectInlineStack(
  1. InlineProgramArgs args, {
  2. LocalWorkspaceOptions options = const LocalWorkspaceOptions(),
})

Creates or selects a stack for a source-based inline program.

Implementation

static Future<Stack> createOrSelectInlineStack(
  InlineProgramArgs args, {
  LocalWorkspaceOptions options = const LocalWorkspaceOptions(),
}) async {
  final workDir = await _prepareInlineProject(args);
  return createOrSelectStack(
    LocalProgramArgs(stackName: args.stackName, workDir: workDir),
    options: options.copyWith(workDir: workDir),
  );
}