File tree 13 files changed +18
-19
lines changed 13 files changed +18
-19
lines changed Original file line number Diff line number Diff line change 5
5
6
6
## ⬇️ Installation
7
7
8
- ...
8
+ ``` shell
9
+ npm install -g lambda-console-cli
10
+ ```
9
11
10
12
## 🐚 Usage
11
13
Original file line number Diff line number Diff line change 1
- import Session from "./src/session.js" ;
1
+ #!/usr/bin/env node
2
+
3
+ import Session from "./src/session.mjs" ;
2
4
const session = new Session ( ) ;
3
5
4
6
async function main ( ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " lambda-console-cli" ,
3
- "version" : " 1.0.1 " ,
3
+ "version" : " 1.0.3 " ,
4
4
"description" : " A CLI to run shell commands or interact with your application on Lambda." ,
5
5
"main" : " index.js" ,
6
6
"type" : " module" ,
12
12
"node" : " >=14.0.0"
13
13
},
14
14
"bin" : {
15
- "lambda-console-cli" : " ./index.js "
15
+ "lambda-console-cli" : " ./index.mjs "
16
16
},
17
17
"keywords" : [
18
18
" aws" ,
Original file line number Diff line number Diff line change 1
1
import chalk from "chalk" ;
2
-
3
2
import { STSClient , GetCallerIdentityCommand } from "@aws-sdk/client-sts" ;
4
3
5
4
const sleep = ( ms ) => new Promise ( ( resolve ) => setTimeout ( resolve , ms ) ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import inquirer from "inquirer";
2
2
import inquirerPrompt from "inquirer-autocomplete-prompt" ;
3
3
inquirer . registerPrompt ( "autocomplete" , inquirerPrompt ) ;
4
4
import { createSpinner } from "nanospinner" ;
5
-
6
5
import {
7
6
LambdaClient ,
8
7
paginateListFunctions ,
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
import select from "@inquirer/select" ;
2
-
3
- import ModeRunner from "./mode-runner.js" ;
4
- import ModeInteract from "./mode-interact.js" ;
2
+ import ModeRunner from "./mode-runner.mjs" ;
3
+ import ModeInteract from "./mode-interact.mjs" ;
5
4
6
5
class Mode {
7
6
constructor ( lambda ) {
Original file line number Diff line number Diff line change 1
1
import inquirer from "inquirer" ;
2
2
import inquirerPrompt from "inquirer-autocomplete-prompt" ;
3
3
inquirer . registerPrompt ( "autocomplete" , inquirerPrompt ) ;
4
-
5
4
import { loadSharedConfigFiles } from "@aws-sdk/shared-ini-file-loader" ;
6
5
7
6
class Profiles {
File renamed without changes.
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import inquirer from "inquirer";
2
2
import inquirerPrompt from "inquirer-autocomplete-prompt" ;
3
3
inquirer . registerPrompt ( "autocomplete" , inquirerPrompt ) ;
4
4
import { createSpinner } from "nanospinner" ;
5
-
6
5
import { AccountClient , paginateListRegions } from "@aws-sdk/client-account" ;
7
6
8
7
class Regions {
Original file line number Diff line number Diff line change 1
- import Program from "./program.js " ;
2
- import Welcome from "./welcome.js " ;
3
- import Regions from "./regions.js " ;
4
- import Profiles from "./profiles.js " ;
5
- import Identity from "./identity.js " ;
6
- import Lambda from "./lambda.js " ;
7
- import Mode from "./mode.js " ;
1
+ import Program from "./program.mjs " ;
2
+ import Welcome from "./welcome.mjs " ;
3
+ import Regions from "./regions.mjs " ;
4
+ import Profiles from "./profiles.mjs " ;
5
+ import Identity from "./identity.mjs " ;
6
+ import Lambda from "./lambda.mjs " ;
7
+ import Mode from "./mode.mjs " ;
8
8
9
9
class Session {
10
10
constructor ( ) {
Original file line number Diff line number Diff line change 1
1
import chalk from "chalk" ;
2
-
3
2
import fs from "fs" ;
3
+
4
4
const BANNER = fs . readFileSync ( "./src/banner.txt" , "utf8" ) ;
5
5
6
6
class Welcome {
You can’t perform that action at this time.
0 commit comments