From ba60d415cf325aadc6ffb6e8a65a86ed9842c3f0 Mon Sep 17 00:00:00 2001 From: Rin Arakaki <rnarkkx@gmail.com> Date: Mon, 13 Feb 2023 03:35:48 +0900 Subject: [PATCH] Update input.js --- src/input.js | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/input.js b/src/input.js index 1b68a6d..b2f40f0 100644 --- a/src/input.js +++ b/src/input.js @@ -7,14 +7,14 @@ import { input } from "action-core"; import stringArgv from "string-argv"; // Parsed action input -export interface Input { - command: string; - toolchain?: string; - args: string[]; - useCross: boolean; -} +// export interface Input { +// command: string; +// toolchain?: string; +// args: string[]; +// useCross: boolean; +// } -export function get(): Input { +export function get() { const command = input.getInput("command", { required: true }); const args = stringArgv(input.getInput("args")); let toolchain = input.getInput("toolchain"); @@ -22,11 +22,10 @@ export function get(): Input { toolchain = toolchain.slice(1); } const useCross = input.getInputBool("use-cross"); - return { - command: command, - args: args, - useCross: useCross, + command, + args, + useCross, toolchain: toolchain || undefined, }; }