Skip to content

Commit b0e9a8f

Browse files
committed
load env vars for skill exec
1 parent 583fb08 commit b0e9a8f

11 files changed

Lines changed: 22 additions & 0 deletions

skills/cloudsql-postgres-admin/scripts/clone_instance.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17+
require('./load_env');
18+
1719
const { spawn, execSync } = require('child_process');
1820
const path = require('path');
1921
const fs = require('fs');

skills/cloudsql-postgres-admin/scripts/create_backup.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17+
require('./load_env');
18+
1719
const { spawn, execSync } = require('child_process');
1820
const path = require('path');
1921
const fs = require('fs');

skills/cloudsql-postgres-admin/scripts/create_database.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17+
require('./load_env');
18+
1719
const { spawn, execSync } = require('child_process');
1820
const path = require('path');
1921
const fs = require('fs');

skills/cloudsql-postgres-admin/scripts/create_instance.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17+
require('./load_env');
18+
1719
const { spawn, execSync } = require('child_process');
1820
const path = require('path');
1921
const fs = require('fs');

skills/cloudsql-postgres-admin/scripts/create_user.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17+
require('./load_env');
18+
1719
const { spawn, execSync } = require('child_process');
1820
const path = require('path');
1921
const fs = require('fs');

skills/cloudsql-postgres-admin/scripts/get_instance.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17+
require('./load_env');
18+
1719
const { spawn, execSync } = require('child_process');
1820
const path = require('path');
1921
const fs = require('fs');

skills/cloudsql-postgres-admin/scripts/list_databases.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17+
require('./load_env');
18+
1719
const { spawn, execSync } = require('child_process');
1820
const path = require('path');
1921
const fs = require('fs');

skills/cloudsql-postgres-admin/scripts/list_instances.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17+
require('./load_env');
18+
1719
const { spawn, execSync } = require('child_process');
1820
const path = require('path');
1921
const fs = require('fs');

skills/cloudsql-postgres-admin/scripts/postgres_upgrade_precheck.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17+
require('./load_env');
18+
1719
const { spawn, execSync } = require('child_process');
1820
const path = require('path');
1921
const fs = require('fs');

skills/cloudsql-postgres-admin/scripts/restore_backup.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17+
require('./load_env');
18+
1719
const { spawn, execSync } = require('child_process');
1820
const path = require('path');
1921
const fs = require('fs');

0 commit comments

Comments
 (0)