Skip to content

Commit 274fd0b

Browse files
chore: Improve documentation
1 parent 8f793ae commit 274fd0b

File tree

5 files changed

+21
-22
lines changed

5 files changed

+21
-22
lines changed

README.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ The configuration is saved to `lldebugger.config.ts`.
108108
-V, --version output the version number
109109
-r, --remove [option] Remove Lambda Live Debugger infrastructure. Options: 'keep-layer' (default), 'remove-all'. The latest also removes the Lambda Layer
110110
-w, --wizard Program interactively asks for each parameter and saves it to lldebugger.config.ts
111-
-v, --verbose Verbose logs
111+
-v, --verbose Verbose logging
112112
-c, --context <context> AWS CDK context (default: [])
113113
-s, --stage <stage> Serverless Framework stage
114114
-f, --function <function name> Filter by function name. You can use * as a wildcard
@@ -138,7 +138,7 @@ export default {
138138
observable: false,
139139
verbose: false,
140140
//getLambdas: async (foundLambdas) => {
141-
// you can customize the list of lambdas here or create your own
141+
// you can customize the list of Lambdas here or create your own
142142
// return foundLambdas;
143143
//},
144144
} satisfies LldConfigTs;
@@ -218,19 +218,17 @@ Configuration file `lldebugger.config.ts` enables you to modify the list of Lamb
218218

219219
```typescript
220220
getLambdas: async (foundLambdas, config) => {
221-
//you can customize the list of lambdas here or create your own
221+
//you can customize the list of Lambdas here or create your own
222222
return foundLambdas;
223-
},
223+
};
224224
```
225225

226226
**Filter list of functions:**
227227

228228
```typescript
229229
getLambdas: async (foundLambdas, config) => {
230-
return foundLambdas?.filter((l) =>
231-
l.functionName.includes("myfunction"),
232-
);
233-
},
230+
return foundLambdas?.filter((l) => l.functionName.includes('myfunction'));
231+
};
234232
```
235233

236234
**Modify code path:**\
@@ -241,11 +239,11 @@ getLambdas: async (foundLambdas, config) => {
241239
if (foundLambdas) {
242240
for (const lambda of foundLambdas) {
243241
lambda.codePath = lambda.codePath
244-
.replace("/dist/", "/src/")
245-
.replace(".js", ".ts");
242+
.replace('/dist/', '/src/')
243+
.replace('.js', '.ts');
246244
}
247245
}
248-
},
246+
};
249247
```
250248

251249
**Modify esBuild configuration:**
@@ -259,8 +257,9 @@ export default {
259257
if (foundLambdas) {
260258
for (const lambda of foundLambdas) {
261259
lambda.esBuildOptions = {
262-
target: "node14",
263-
};
260+
target: "node14",
261+
};
262+
}
264263
}
265264
}
266265
} satisfies LldConfigTs;
@@ -316,10 +315,10 @@ If you have a new feature idea, please create and issue.
316315
## Reporting an Issue
317316

318317
- Make sure the bug hasn't already been reported. If you fount it has been, add a "+1" comment so I know there are multiple users struggling with the same issue. If possible, add some additional info.
319-
- Use descriptive titles with prefixes like "bug:", "help:", "feature:", or "discussion:".
320-
- Enable verbose logging and provide the full log.
318+
- **Enable verbose logging and provide the full log.**
319+
- **Specify the exact framework version (CDK, SLS, SAM ...) and the exact Lambda Live Debugger version.**
321320
- Describe your setup in detail, or better yet, provide a sample project.
322-
- Specify the exact framework version (CDK, SLS, SAM ...) and the exact Lambda Live Debugger version.
321+
- Use descriptive titles with prefixes like "bug:", "help:", "feature:", or "discussion:".
323322

324323
## Authors:
325324

@@ -328,7 +327,7 @@ If you have a new feature idea, please create and issue.
328327

329328
## Contributors (alphabetical):
330329

331-
- ⭐ Your name here for notable code or documentation contributions, or sample projects submitted with bug reports.
330+
- ⭐ Your name here for notable code or documentation contributions, or sample projects submitted with bug report that contributed to the tool improvement.
332331

333332
## Declarment
334333

src/configuration/getConfigFromCliArgs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export async function getConfigFromCliArgs(
2828
'-w, --wizard',
2929
'Program interactively asks for each parameter and saves it to lldebugger.config.ts',
3030
);
31-
program.option('-v, --verbose', 'Verbose logs');
31+
program.option('-v, --verbose', 'Verbose logging');
3232
program.option(
3333
'-c, --context <context>',
3434
'AWS CDK context',

src/configuration/getConfigFromWizard.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,11 @@ export default {
369369
observable: ${config.observable},
370370
// Observable mode interval
371371
interval: ${config.interval === defaultObservableInterval ? undefined : config.interval},
372-
// Verbose logs
372+
// Verbose logging
373373
verbose: ${config.verbose},
374374
// Modify Lambda function list or support custom framework
375375
//getLambdas: async (foundLambdas) => {
376-
// you can customize the list of lambdas here or create your own
376+
// you can customize the list of Lambdas here or create your own
377377
// return foundLambdas;
378378
//},
379379
} satisfies LldConfigTs;

src/types/lldConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { LambdaResource } from './resourcesDiscovery.js';
33

44
export type LldConfigBase = {
55
/**
6-
* Verbose logs
6+
* Verbose logging
77
* @default false
88
*/
99
verbose?: boolean;

test/cdk-config/lldebugger.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
observable: false,
88
verbose: false,
99
//getLambdas: async (foundLambdas, config) => {
10-
// you can customize the list of lambdas here or create your own
10+
// you can customize the list of Lambdas here or create your own
1111
// return foundLambdas;
1212
//},
1313
} satisfies LldConfigTs;

0 commit comments

Comments
 (0)