Skip to content

Commit 058114c

Browse files
authored
feat: created custom help message (#126)
* feat: adding context commands in help message * feat: initial approach * feat: context service created * feat: connected list and current * feat: update the context commands * fix: issue with the file imports This is was causing the test cases to fail. * refactor: contextPath * chore: changed the old format * feat: added required functions in useContextFile * feat: command and subcommand router * feat: auto detect specific spec file in the working directory * feat: created all the component for context. * feat: moved logic to service class and connected the commands to the router * feat: added custom error message for keynotfound error * feat: created context removing logic * feat: auto setting current when adding context for the first tme. * feat: updated router logic * chore: renamed filename from context to Context * chore: cleaned all duplicate code * feat: updated command specification * feat: removed dummy spec paths * feat: added logic to fetch context from flag * feat: updated validate component to work with saved context * feat: updated the test cases for validate component * fix: fixed the bug with deleting context that was set as current context. * fix: fixed the e.location bug * fix: parser error logs. * fix: update help command text * feat: updated documentation and CLI help message * feat: fixing the doc * feat: add context now checks if the path exists. * feat: updated the suggested changes * docs: added info about required --context flag for validation * feat: created return type for useContextFile hook * fix: fixing issue with overwriting global asyncapi file * feat: created custom help message * fix: lint fixes * fix: fixed imports * chore: updating the helpClass config in package.json * fix: start command was not showing in the root help * chore: cleaning up the imports * fix: lint fixes * test: trying to fix issue with pr checks * chore: removing sonar exclusions to see all the sonar warnings * fix: changing filename as suggested by sonarcloud * chore: ignoring certain function from sonar cloud scan * chore: fixing lint errors * chore: ignoring sonarjs warning about large functions
1 parent 335378e commit 058114c

File tree

8 files changed

+5249
-4178
lines changed

8 files changed

+5249
-4178
lines changed

.eslintrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
},
185185
"overrides": [
186186
{
187-
"files": ["*.spec.ts", "*.spec.tsx"],
187+
"files": ["*.spec.ts", "*.spec.tsx", "src/help/command.ts"],
188188
"rules": {
189189
"no-undef": "off",
190190
"security/detect-non-literal-fs-filename": "off",
@@ -194,7 +194,8 @@
194194
"sonarjs/no-identical-functions": "off",
195195
"@typescript-eslint/no-non-null-assertion": "off",
196196
"@typescript-eslint/no-unused-vars": "off",
197-
"no-use-before-define": "off"
197+
"no-use-before-define": "off",
198+
"sonarjs/cognitive-complexity": "off"
198199
}
199200
}
200201
]

.sonarcloud.properties

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)