jk guys I figured it out

This commit is contained in:
worm 2022-12-30 17:19:19 -08:00
parent 3c26eaeed6
commit 3985dc58ab
3 changed files with 1 additions and 3 deletions

1
.gitignore vendored
View file

@ -1 +0,0 @@
config.js

View file

@ -1,5 +1,5 @@
// These parameters are all optional.
// token will use the environment $TOKEN if unspecified
// token will use the environment $TOKEN (must be exported) if unspecified
// downloadDir will use the current directory if unspecified
// base_url will use app.terraform.io if unspecified

View file

@ -5,7 +5,6 @@ const default_base_url = "https://app.terraform.io";
const default_download_dir = process.cwd();
console.log(`Current directory is ${default_download_dir}`);
console.log(process.env);
const normalize_configs = async (default_token, default_base_url, default_download_dir) => {
if(config.base_url === "") {config.base_url = default_base_url};