Skip to content

Commit

Permalink
feat: created custom help message (#126)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Souvikns authored Dec 7, 2021
1 parent 335378e commit 058114c
Show file tree
Hide file tree
Showing 8 changed files with 5,249 additions and 4,178 deletions.
5 changes: 3 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
},
"overrides": [
{
"files": ["*.spec.ts", "*.spec.tsx"],
"files": ["*.spec.ts", "*.spec.tsx", "src/help/command.ts"],
"rules": {
"no-undef": "off",
"security/detect-non-literal-fs-filename": "off",
Expand All @@ -194,7 +194,8 @@
"sonarjs/no-identical-functions": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-use-before-define": "off"
"no-use-before-define": "off",
"sonarjs/cognitive-complexity": "off"
}
}
]
Expand Down
1 change: 0 additions & 1 deletion .sonarcloud.properties

This file was deleted.

Loading

0 comments on commit 058114c

Please sign in to comment.