summaryrefslogtreecommitdiff
path: root/.github/actions/msvc-dev-cmd/node_modules/@actions/core/lib/file-command.js
diff options
context:
space:
mode:
Diffstat (limited to '.github/actions/msvc-dev-cmd/node_modules/@actions/core/lib/file-command.js')
-rw-r--r--.github/actions/msvc-dev-cmd/node_modules/@actions/core/lib/file-command.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/.github/actions/msvc-dev-cmd/node_modules/@actions/core/lib/file-command.js b/.github/actions/msvc-dev-cmd/node_modules/@actions/core/lib/file-command.js
deleted file mode 100644
index 10783c0..0000000
--- a/.github/actions/msvc-dev-cmd/node_modules/@actions/core/lib/file-command.js
+++ /dev/null
@@ -1,29 +0,0 @@
-"use strict";
-// For internal use, subject to change.
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
- return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-// We use any as a valid input type
-/* eslint-disable @typescript-eslint/no-explicit-any */
-const fs = __importStar(require("fs"));
-const os = __importStar(require("os"));
-const utils_1 = require("./utils");
-function issueCommand(command, message) {
- const filePath = process.env[`GITHUB_${command}`];
- if (!filePath) {
- throw new Error(`Unable to find environment variable for file command ${command}`);
- }
- if (!fs.existsSync(filePath)) {
- throw new Error(`Missing file at path: ${filePath}`);
- }
- fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, {
- encoding: 'utf8'
- });
-}
-exports.issueCommand = issueCommand;
-//# sourceMappingURL=file-command.js.map \ No newline at end of file