diff --git a/changelog.txt b/changelog.txt index 837186d..6601bf0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,8 +3,7 @@ Thanks for upgrading to the latest version of the ALKS CLI! -* Updates readme -* Adds deprecation warnings about role types +* Fixes duration flag for alks sessions open Have feedback? https://github.com/Cox-Automotive/ALKS-CLI/issues diff --git a/dist/changelog.txt b/dist/changelog.txt index 837186d..6601bf0 100644 --- a/dist/changelog.txt +++ b/dist/changelog.txt @@ -3,8 +3,7 @@ Thanks for upgrading to the latest version of the ALKS CLI! -* Updates readme -* Adds deprecation warnings about role types +* Fixes duration flag for alks sessions open Have feedback? https://github.com/Cox-Automotive/ALKS-CLI/issues diff --git a/dist/src/lib/getIamKey.js b/dist/src/lib/getIamKey.js index 65cc2fb..19d1dcd 100644 --- a/dist/src/lib/getIamKey.js +++ b/dist/src/lib/getIamKey.js @@ -60,7 +60,7 @@ function getIamKey(alksAccount, alksRole, forceNewSession = false, filterFavorit role: alksRole, }); const duration = Math.min(loginRole.maxKeyDuration, sessionDuration !== null && sessionDuration !== void 0 ? sessionDuration : 12); - console.error(cli_color_1.white.underline(`Creating new session in "${(_b = awsAccount.label) !== null && _b !== void 0 ? _b : awsAccount.alias}" (id=${awsAccount.id} alias=${awsAccount.alias}) for ${alksRole}`)); + console.error(cli_color_1.white.underline(`Creating new session in "${(_b = awsAccount.label) !== null && _b !== void 0 ? _b : awsAccount.alias}" (id=${awsAccount.id} alias=${awsAccount.alias}) for ${alksRole} expiring in ${duration} hour${duration === 1 ? '' : 's'}`)); let alksKey; try { alksKey = yield alks.getIAMKeys({ diff --git a/dist/src/lib/getIamKey.js.map b/dist/src/lib/getIamKey.js.map index e222590..7f736c5 100644 --- a/dist/src/lib/getIamKey.js.map +++ b/dist/src/lib/getIamKey.js.map @@ -1 +1 @@ -{"version":3,"file":"getIamKey.js","sourceRoot":"","sources":["../../../src/lib/getIamKey.ts"],"names":[],"mappings":";;;;AAAA,yCAAkC;AAClC,2CAAiD;AACjD,uCAAo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C9B,OAAO,EAAE,UAAU,CAAC,EAAE;gBACtB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,QAAQ;aACtB,CAAC,CAAC;SACJ;QAAC,OAAO,CAAC,EAAE;YACV,MAAM,IAAI,KAAK,CAAC,qCAAiB,CAAC,CAAC;SACpC;QACD,MAAM,GAAG,GAAQ;YACf,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,YAAY,EAAE,OAAO,CAAC,YAAY;YAClC,OAAO,EAAE,IAAA,gBAAM,GAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,MAAM,EAAE;YACjD,WAAW,EAAE,UAAU,CAAC,EAAE;YAC1B,QAAQ;YACR,KAAK,EAAE,IAAI;SACZ,CAAC;QAEF,IAAA,SAAG,EAAC,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;YACzC,MAAM,EAAE,IAAI;YACZ,GAAG,EAAE,aAAa;SACnB,CAAC,CAAC;QACH,MAAM,IAAA,eAAM,EACV,GAAG,CAAC,SAAS,EACb,GAAG,CAAC,SAAS,EACb,GAAG,CAAC,YAAY,EAChB,UAAU,CAAC,EAAE,EACb,QAAQ,EACR,GAAG,CAAC,OAAO,EACX,IAAI,EACJ,IAAI,CACL,CAAC;QAEF,OAAO,GAAG,CAAC;;CACZ;AAtHD,8BAsHC"} \ No newline at end of file +{"version":3,"file":"getIamKey.js","sourceRoot":"","sources":["../../../src/lib/getIamKey.ts"],"names":[],"mappings":";;;;AAAA,yCAAkC;AAClC,2CAAiD;AACjD,uCAAoC;AACpC,4DAA4B;AAE5B,+BAA4B;AAC5B,2DAAwD;AAExD,yDAAsD;AACtD,uCAAoC;AACpC,+EAA4E;AAC5E,uCAAoC;AACpC,qCAAkC;AAClC,uEAAoE;AAEpE,SAAsB,SAAS,CAC7B,WAA+B,EAC/B,QAA4B,EAC5B,kBAA2B,KAAK,EAChC,kBAA2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YACV,MAAM,IAAI,KAAK,CAAC,qCAAiB,CAAC,CAAC;SACpC;QACD,MAAM,GAAG,GAAQ;YACf,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,YAAY,EAAE,OAAO,CAAC,YAAY;YAClC,OAAO,EAAE,IAAA,gBAAM,GAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,MAAM,EAAE;YACjD,WAAW,EAAE,UAAU,CAAC,EAAE;YAC1B,QAAQ;YACR,KAAK,EAAE,IAAI;SACZ,CAAC;QAEF,IAAA,SAAG,EAAC,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;YACzC,MAAM,EAAE,IAAI;YACZ,GAAG,EAAE,aAAa;SACnB,CAAC,CAAC;QACH,MAAM,IAAA,eAAM,EACV,GAAG,CAAC,SAAS,EACb,GAAG,CAAC,SAAS,EACb,GAAG,CAAC,YAAY,EAChB,UAAU,CAAC,EAAE,EACb,QAAQ,EACR,GAAG,CAAC,OAAO,EACX,IAAI,EACJ,IAAI,CACL,CAAC;QAEF,OAAO,GAAG,CAAC;;CACZ;AA1HD,8BA0HC"} \ No newline at end of file diff --git a/dist/src/lib/program.js b/dist/src/lib/program.js index 3efe309..d262e58 100644 --- a/dist/src/lib/program.js +++ b/dist/src/lib/program.js @@ -67,7 +67,7 @@ sessions .option('-r, --role ', 'the ALKS IAM role to use to perform the request') .option('-i, --iam', 'create an IAM session. This flag is deprecated since it is no longer needed and will not make a difference in the generated session credentials') .option('-d, --default', 'uses your default account from "alks developer configure"') - .option('-D, --duration', 'the duration of the session in hours. If the duration is over the max duration allowed for the role, the max duration will be used instead', '12') + .option('-D, --duration ', 'the duration of the session in hours. If the duration is over the max duration allowed for the role, the max duration will be used instead', '12') .option('-N, --newSession', 'forces a new session to be generated') .option('-p, --password ', 'my password') .option('-o, --output ', 'output format (' + outputValues.join(', ') + ')') diff --git a/dist/src/lib/program.js.map b/dist/src/lib/program.js.map index 186ffe7..2e2d082 100644 --- a/dist/src/lib/program.js.map +++ b/dist/src/lib/program.js.map @@ -1 +1 @@ -{"version":3,"file":"program.js","sourceRoot":"","sources":["../../../src/lib/program.ts"],"names":[],"mappings":";;AAAA,yCAAoC;AACpC,qDAA6C;AAC7C,4DAIgC;AAChC,2EAA4E;AAC5E,uFAAwF;AACxF,2EAA4E;AAC5E,iFAAkF;AAClF,uEAAwE;AACxE,yEAA0E;AAC1E,iFAAkF;AAClF,2EAA4E;AAC5E,6EAA8E;AAC9E,2EAA4E;AAC5E,uFAAwF;AACxF,6EAA8E;AAC9E,2EAA4E;AAC5E,8EAA+E;AAC/E,qFAAsF;AACtF,uFAAwF;AACxF,6EAA8E;AAC9E,+EAAgF;AAChF,qFAAsF;AACtF,iFAAkF;AAClF,uFAAwF;AACxF,gEAA8D;AAC9D,yCAAgC;AAChC,wEAAyE;AACzE,8EAA+E;AAC/E,sEAAuE;AACvE,0EAA2E;AAC3E,oEAAqE;AAErE,MAAM,YAAY,GAAG,IAAA,iCAAe,GAAE,CAAC;AACvC,MAAM,QAAQ,GAAG,+BAA+B,CAAC;AACjD,MAAM,YAAY,GAAG,6CAA6C,CAAC;AAEnE,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,OAAO,CAAC,YAAY,EAAE,CAAC;AAEvB,OAAO,CAAC,eAAe,CAAC;IACtB,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE;QAChB,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,wBAAwB,CAAC,EAAE;YAC7C,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;SAC3B;IACH,CAAC;CACF,CAAC,CAAC;AAEH,OAAO;KACJ,OAAO,CAAC,sBAAO,EAAE,WAAW,CAAC;KAC7B,MAAM,CAAC,eAAe,EAAE,qCAAqC,CAAC;KAC9D,MAAM,CACL,sBAAsB,EACtB,wEAAwE,CACzE;KACA,I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AAK,CAAC,IAAI,CAAC;KACX,KAAK,CAAC,QAAQ,CAAC;KACf,WAAW,CAAC,qBAAqB,CAAC;KAClC,MAAM,CACL,WAAW,EACX,yFAAyF,CAC1F;KACA,MAAM,CACL,8BAA8B,EAC9B,kHAAkH,CACnH;KACA,MAAM,CACL,yBAAyB,EACzB,6FAA6F,CAC9F;KACA,MAAM,CACL,aAAa,EACb,wDAAwD,CACzD;KACA,MAAM,CAAC,+CAAwB,CAAC,CAAC;AAEpC,QAAQ;KACL,OAAO,CAAC,KAAK,CAAC;KACd,WAAW,CAAC,iBAAiB,CAAC;KAC9B,MAAM,CACL,8BAA8B,EAC9B,kHAAkH,CACnH;KACA,MAAM,CACL,yBAAyB,EACzB,6FAA6F,CAC9F;KACA,MAAM,CAAC,uBAAuB,EAAE,4BAA4B,EAAE,MAAM,CAAC;KACrE,MAAM,CACL,6BAA6B,EAC7B,iFAAiF,EACjF,KAAK,CACN;KACA,MAAM,CAAC,yCAAqB,CAAC,CAAC;AAEjC,kBAAe,OAAO,CAAC"} \ No newline at end of file +{"version":3,"file":"program.js","sourceRoot":"","sources":["../../../src/lib/program.ts"],"names":[],"mappings":";;AAAA,yCAAoC;AACpC,qDAA6C;AAC7C,4DAIgC;AAChC,2EAA4E;AAC5E,uFAAwF;AACxF,2EAA4E;AAC5E,iFAAkF;AAClF,uEAAwE;AACxE,yEAA0E;AAC1E,iFAAkF;AAClF,2EAA4E;AAC5E,6EAA8E;AAC9E,2EAA4E;AAC5E,uFAAwF;AACxF,6EAA8E;AAC9E,2EAA4E;AAC5E,8EAA+E;AAC/E,qFAAsF;AACtF,uFAAwF;AACxF,6EAA8E;AAC9E,+EAAgF;AAChF,qFAAsF;AACtF,iFAAkF;AAClF,uFAAwF;AACxF,gEAA8D;AAC9D,yCAAgC;AAChC,wEAAyE;AACzE,8EAA+E;AAC/E,sEAAuE;AACvE,0EAA2E;AAC3E,oEAAqE;AAErE,MAAM,YAAY,GAAG,IAAA,iCAAe,GAAE,CA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Key.ts b/src/lib/getIamKey.ts index 044535f..ec4248e 100644 --- a/src/lib/getIamKey.ts +++ b/src/lib/getIamKey.ts @@ -91,7 +91,11 @@ export async function getIamKey( white.underline( `Creating new session in "${awsAccount.label ?? awsAccount.alias}" (id=${ awsAccount.id - } alias=${awsAccount.alias}) for ${alksRole}` + } alias=${ + awsAccount.alias + }) for ${alksRole} expiring in ${duration} hour${ + duration === 1 ? '' : 's' + }` ) ); diff --git a/src/lib/program.ts b/src/lib/program.ts index 5ac9884..c4d879f 100644 --- a/src/lib/program.ts +++ b/src/lib/program.ts @@ -97,7 +97,7 @@ sessions 'uses your default account from "alks developer configure"' ) .option( - '-D, --duration', + '-D, --duration ', 'the duration of the session in hours. If the duration is over the max duration allowed for the role, the max duration will be used instead', '12' )