exec method

  1. @override
Future<void> exec(
  1. ExecContext context
)
override

Run command.

The contents of katana.yaml and the arguments of the command are passed to context.

コマンドを実行します。

contextにkatana.yamlの内容やコマンドの引数が渡されます。

Implementation

@override
Future<void> exec(ExecContext context) async {
  label("Create status_check.yaml");
  final gitDir = await findGitDirectory(Directory.current);
  await GitStatusCheckActionCliCode(
    workingDirectory: gitDir,
  ).generateFile("action.yaml");
  await GitStatusCheckCliCode(
    workingDirectory: gitDir,
  ).generateFile(
    "status_check.yaml",
    filter: (value) => applyDartDefinesToWorkflow(
      value,
      statusCheckNames:
          dartDefinesEnvironmentNames(kDevelopmentDartDefinesFile),
    ),
  );
}