mirror of
https://github.com/morten-olsen/with-ssm.git
synced 2026-02-08 00:46:23 +01:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1321ea4748 |
@@ -19,7 +19,7 @@ const argv = await yargs(hideBin(process.argv))
|
|||||||
alias: 'f',
|
alias: 'f',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: 'The file to use for environment variables. (multiple files can be specified)',
|
description: 'The file to use for environment variables. (multiple files can be specified)',
|
||||||
default: ['.env', '.env.with-ssm'],
|
default: ['.env.with-ssm', '.env'],
|
||||||
})
|
})
|
||||||
.demandCommand(1, 'Error: You must provide a command to execute after --')
|
.demandCommand(1, 'Error: You must provide a command to execute after --')
|
||||||
.alias('h', 'help')
|
.alias('h', 'help')
|
||||||
@@ -36,7 +36,10 @@ if (!command) {
|
|||||||
|
|
||||||
const files = argv.file && Array.isArray(argv.file) ? argv.file : [argv.file];
|
const files = argv.file && Array.isArray(argv.file) ? argv.file : [argv.file];
|
||||||
const hostEnv = await getEnv(files);
|
const hostEnv = await getEnv(files);
|
||||||
const env = await replaceParams(hostEnv);
|
const env = await replaceParams(hostEnv, {
|
||||||
|
region: argv.region,
|
||||||
|
profile: argv.profile,
|
||||||
|
});
|
||||||
|
|
||||||
exec({
|
exec({
|
||||||
command,
|
command,
|
||||||
|
|||||||
Reference in New Issue
Block a user