-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
List formatters in help command #1798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
aurelien-reeves
merged 30 commits into
cucumber:main
from
TomerPacific:feature/list-formatters-in-help-command-1700
Oct 8, 2021
Merged
Changes from 24 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
9daa87e
feature/list-formatters-in-help-command adding documentation field to…
TomerPacific 96e30e5
feature/list-formatters-in-help-command refactoring getConstructorByT…
TomerPacific a76f231
feature/list-formatters-in-help-command improving return statement to…
TomerPacific ced6ecc
feature/list-formatters-in-help-command after running lint fix
TomerPacific 4c89fea
feature/list-formatters-in-help-command fixing ternary so logic does …
TomerPacific 7e4a398
feature/list-formatters-in-help-command creating class that will hold…
TomerPacific 0b9e4cd
feature/list-formatters-in-help-command adding logic to extract the c…
TomerPacific ba24272
feature/list-formatters-in-help-command reverting changes made by add…
TomerPacific e322a20
feature/list-formatters-in-help-command adding documentation field to…
TomerPacific 36f5856
feature/list-formatters-in-help-command adding documentation member t…
TomerPacific 22d8d6d
feature/list-formatters-in-help-command removing formatterDocumentati…
TomerPacific fb84765
feature/list-formatters-in-help-command adding documentation field to…
TomerPacific 1a6b554
Merge branch 'main' into feature/list-formatters-in-help-command-1700
TomerPacific 1d7b3a5
feature/list-formatters-in-help-command fixing return type of getCons…
TomerPacific 1fd14a1
feature/list-formatters-in-help-command removing unnecessary await
TomerPacific 441fd56
Merge branch 'main' into feature/list-formatters-in-help-command-1700
TomerPacific 2d2c89c
feature/list-formatters-in-help-command creating Formatters class to …
TomerPacific e3baeb7
Merge branch 'main' into feature/list-formatters-in-help-command-1700
TomerPacific fac6492
Merge branch 'main' into feature/list-formatters-in-help-command-1700
TomerPacific c37537c
feature/list-formatters-in-help-command adding documentation field to…
TomerPacific d612918
Merge branch 'feature/list-formatters-in-help-command-1700' of https:…
TomerPacific c600837
feature/list-formatters-in-help-command added method in formatters cl…
TomerPacific f898574
feature/list-formatters-in-help-command used recently added method to…
TomerPacific 1acabd4
Merge branch 'main' into feature/list-formatters-in-help-command-1700
TomerPacific c42c2d2
feature/list-formatters-in-help-command adding documentation to snipp…
TomerPacific 2bdb91a
feature/list-formatters-in-help-command adding new line to format opt…
TomerPacific b422359
feature/list/formatters-in-help-command converting documentation fiel…
TomerPacific 93ae5e5
feature/list/formatters-in-help-command indenting formatters and remo…
TomerPacific 3e9a62b
feature/list-formatters-in-help-command refactoring building the docu…
TomerPacific 58dc26f
feature/list-formatters-in-help-command adding feature to changelog
TomerPacific File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import Formatter from '../.' | ||
import JsonFormatter from '../json_formatter' | ||
import MessageFormatter from '../message_formatter' | ||
import ProgressBarFormatter from '../progress_bar_formatter' | ||
import ProgressFormatter from '../progress_formatter' | ||
import RerunFormatter from '../rerun_formatter' | ||
import SnippetsFormatter from '../snippets_formatter' | ||
import SummaryFormatter from '../summary_formatter' | ||
import UsageFormatter from '../usage_formatter' | ||
import UsageJsonFormatter from '../usage_json_formatter' | ||
import HtmlFormatter from '../html_formatter' | ||
|
||
const Formatters = { | ||
getFormatters(): Record<string, typeof Formatter> { | ||
return { | ||
json: JsonFormatter, | ||
message: MessageFormatter, | ||
html: HtmlFormatter, | ||
progress: ProgressFormatter, | ||
'progress-bar': ProgressBarFormatter, | ||
rerun: RerunFormatter, | ||
snippets: SnippetsFormatter, | ||
summary: SummaryFormatter, | ||
usage: UsageFormatter, | ||
'usage-json': UsageJsonFormatter, | ||
} | ||
}, | ||
buildFormattersDocumentationString(): string { | ||
let concatanatedFormattersDocumentation: string = '' | ||
const formattersDocumentation: Record<string, string> = { | ||
json: JsonFormatter.documentation, | ||
message: MessageFormatter.documentation, | ||
html: HtmlFormatter.documentation, | ||
progress: ProgressFormatter.documentation, | ||
'progress-bar': ProgressBarFormatter.documentation, | ||
rerun: RerunFormatter.documentation, | ||
snippets: SnippetsFormatter.documentation, | ||
summary: SummaryFormatter.documentation, | ||
usage: UsageFormatter.documentation, | ||
'usage-json': UsageJsonFormatter.documentation, | ||
} | ||
|
||
for (const formatter in formattersDocumentation) { | ||
concatanatedFormattersDocumentation += | ||
formatter + ' : ' + formattersDocumentation[formatter] + '\n' | ||
} | ||
|
||
return concatanatedFormattersDocumentation | ||
aurelien-reeves marked this conversation as resolved.
Show resolved
Hide resolved
|
||
}, | ||
} | ||
|
||
export default Formatters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.