| // Copyright 2024, the Dart project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| |
| import 'dart:io' as io; |
| |
| import 'command.dart'; |
| |
| Future<void> provenanceReportStage(String stage) async { |
| final command = Command('snoopy_broker', [ |
| '-report-stage', |
| '-stage', |
| stage, |
| ]); |
| await command.run(raise: true); |
| } |
| |
| Future<void> provenanceReportCipd( |
| String name, String digest, String instanceId) async { |
| final command = Command('snoopy_broker', [ |
| '-report-cipd', |
| '-digest', |
| digest, |
| '-pkg-name', |
| name, |
| '-iid', |
| instanceId, |
| ]); |
| await command.run(raise: true); |
| } |