fix return value for get_run_details
This commit is contained in:
parent
1a29b57538
commit
606b56c49d
|
@ -1,5 +1,6 @@
|
||||||
// These parameters are all optional.
|
// These parameters are all optional.
|
||||||
// token will use the environment $TOKEN (must be exported) if unspecified
|
// token will use the environment $TOKEN (must be exported) if unspecified.
|
||||||
|
// using the environment variable is the recommended way to declare your token
|
||||||
// downloadDir will use the current directory if unspecified
|
// downloadDir will use the current directory if unspecified
|
||||||
// base_url will use app.terraform.io if unspecified
|
// base_url will use app.terraform.io if unspecified
|
||||||
|
|
||||||
|
|
8
main.js
8
main.js
|
@ -3,4 +3,10 @@ import { get_run_details } from "./tfc-api-functions.mjs";
|
||||||
|
|
||||||
const my_config = normalized_config;
|
const my_config = normalized_config;
|
||||||
|
|
||||||
console.log(my_config)
|
// console.log(my_config);
|
||||||
|
|
||||||
|
console.log(process.argv.slice(2));
|
||||||
|
|
||||||
|
const response = await get_run_details(my_config.base_url, process.argv.slice(2), my_config.token);
|
||||||
|
|
||||||
|
//console.log(response);
|
|
@ -9,4 +9,5 @@ export const get_run_details = async (base_url, run_id, token) => {
|
||||||
headers: {Authorization :`Bearer ${token}`},
|
headers: {Authorization :`Bearer ${token}`},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
return response;
|
||||||
};
|
};
|
Loading…
Reference in a new issue