Feature/add feature print configuration issue 172#203
Open
zwdOr20 wants to merge 5 commits intordagumampan:masterfrom
Open
Feature/add feature print configuration issue 172#203zwdOr20 wants to merge 5 commits intordagumampan:masterfrom
zwdOr20 wants to merge 5 commits intordagumampan:masterfrom
Conversation
- Add ConfigOption.cs and BaseConfigOption.cs files for config cmd options. - Add RunConfigOption method to handle config cmd use case. closes rdagumampan#172
Implment RunConfigurationOption method to handle config command use case. closes rdagumampan#172
- add IPrinter interface - add JsonPrinter class closes rdagumampan#172
- Choose text format for printing configuration variable information. - Add json option (by default the format is table/rows) closes closes rdagumampan#172
rdagumampan
requested changes
Apr 8, 2021
Owner
rdagumampan
left a comment
There was a problem hiding this comment.
Hi @zwdOr20, thank you very much for your interest in yuniql and contribution.
Please see my comments and resubmit changes when you are ready. Have a nice day!
| //yuniql <command> -d | --debug | ||
| [Option('d', "debug", Required = false, HelpText = "Print debug information including all raw scripts.")] | ||
| public bool IsDebug { get; set; } | ||
| public bool? IsDebug { get; set; } |
Owner
There was a problem hiding this comment.
I'm curious why you think this has to be changed. I'm afraid it may introduce bugs not directly related to feature we're implementing. :)
Author
There was a problem hiding this comment.
The raison why I made it nullable is I want to differentiate between two states :
- IsDebug is false && the value wasn't specified by the user (default value for boolean is False doc)
- When the user specify --debug false
In both cases IsDebug set to false but the source of this false is different
- change data-type option name to output - change Source enum values fomat to ALLCAPS - chekout yuniql-platforms/postgresql/PostgreSqlBulkImportService.cs to master.
|
Kudos, SonarCloud Quality Gate passed! |
|
Kudos, SonarCloud Quality Gate passed! |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.








In this PR I tried to implement a solution for the open issue issue, I'm fully open for any suggestions and enhancement !
Ps : I didn't want to write unit tests for my code before discussing the PR!
Implemented use case : yuniql config || yuniql config -o json