CommandDefinition: IsRequired property doesn't work

Issue #142 resolved
Evgeny Kralko repo owner created an issue

When IsRequired = “No” is set - parameter should be eliminated and replaced by nothing.

Example:

@@ -1,25 +0,0 @@
{
    "Name": "Difference",
    "DisplayName": "View difference",
    "Description": "Run external difference tool",
    "IsService": true,
    "CmdFormatText": "git difftool --no-prompt {commit} -- {file}",
    "Category": "Git",
    "Parameters": [
        {
            "Name": "commit",
            "Description": "Commit",
            "Type": "String",
            "Domain": "Commit",
            "IsRequired": "No",
            "DefaultValue": ""
        },
        {
            "Name": "file",
            "Description": "File path",
            "Type": "String",
            "Domain": "FileSystemPath",
            "IsRequired": "Yes"
        }
    ]
}

Comments (3)

  1. Log in to comment