Passing command input to the cargo invocation

This commit is contained in:
svartalf 2019-09-13 00:13:57 +03:00
parent 7562f78615
commit d73b4029fd
2 changed files with 3 additions and 2 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View file

@ -30,12 +30,13 @@ async function run() {
program = 'cargo';
}
let args: string[] = [];
let args: string[] = [actionInput.command];
if (actionInput.toolchain) {
args.push(`+${actionInput.toolchain}`);
}
args = args.concat(actionInput.args);
console.log(program, args);
try {
await exec.exec(program, args);