From e8dffc77a3a31647d540d4580c1930283e2d373c Mon Sep 17 00:00:00 2001 From: divyeshio <79130336+divyeshio@users.noreply.github.com> Date: Wed, 4 Mar 2026 13:33:04 +0530 Subject: [PATCH 1/3] Refactor tool configuration schemas and UI components to handle optional fields - Updated JSON schemas for subfinder, urlfinder, and yt-dlp to remove unnecessary fields and make enumValues, dependencies, and validations optional. - Modified commandly nested and main types to reflect optional properties for enumValues, validations, and dependencies. - Enhanced UI components to safely access optional properties, preventing potential runtime errors. - Adjusted tool editor dialogs to accommodate changes in parameter handling, ensuring smooth updates and rendering of enum values. - Cleaned up manual new tool component by removing unused state properties. --- public/specification/flat.json | 4 +- public/specification/nested.json | 12 +- public/tools-collection/asnmap.json | 73 +- public/tools-collection/cdncheck.json | 111 +-- public/tools-collection/dnsx.json | 212 +---- public/tools-collection/httpx.json | 776 ++++-------------- public/tools-collection/katana.json | 356 ++------ public/tools-collection/shuffledns.json | 116 +-- public/tools-collection/subfinder.json | 160 +--- public/tools-collection/urlfinder.json | 80 +- public/tools-collection/yt-dlp.json | 206 +---- .../commandly/lib/types/commandly-nested.ts | 10 +- registry/commandly/lib/types/commandly.ts | 6 +- .../commandly/lib/utils/commandly-nested.ts | 22 +- registry/commandly/runtime-preview.tsx | 2 +- .../dialogs/parameter-details-dialog.tsx | 12 +- .../dialogs/tool-details-dialog.tsx | 4 +- registry/commandly/tool-editor/help-menu.tsx | 4 +- .../tool-editor/tool-editor.store.ts | 18 +- .../tool-editor-ui/manual-new-tool.tsx | 3 - 20 files changed, 430 insertions(+), 1757 deletions(-) diff --git a/public/specification/flat.json b/public/specification/flat.json index 4b66c6b..66c62f1 100644 --- a/public/specification/flat.json +++ b/public/specification/flat.json @@ -312,9 +312,7 @@ "name", "displayName", "commands", - "parameters", - "exclusionGroups", - "metadata" + "parameters" ], "additionalProperties": false } \ No newline at end of file diff --git a/public/specification/nested.json b/public/specification/nested.json index fd59245..d418b5d 100644 --- a/public/specification/nested.json +++ b/public/specification/nested.json @@ -185,9 +185,7 @@ "isRepeatable", "isGlobal", "longFlag", - "enumValues", - "validations", - "dependencies" + "enumValues" ], "additionalProperties": false } @@ -240,9 +238,7 @@ "name", "displayName", "globalParameters", - "commands", - "exclusionGroups", - "metadata" + "commands" ], "additionalProperties": false, "$defs": { @@ -428,9 +424,7 @@ "isRepeatable", "isGlobal", "longFlag", - "enumValues", - "validations", - "dependencies" + "enumValues" ], "additionalProperties": false } diff --git a/public/tools-collection/asnmap.json b/public/tools-collection/asnmap.json index bc5ac08..89bab70 100644 --- a/public/tools-collection/asnmap.json +++ b/public/tools-collection/asnmap.json @@ -40,11 +40,8 @@ "sortOrder": 1, "arraySeparator": ",", "keyValueSeparator": " ", - "enumValues": [], "key": "asn", - "commandKey": "asnmap", - "validations": [], - "dependencies": [] + "commandKey": "asnmap" }, { "name": "Ip", @@ -65,11 +62,8 @@ "sortOrder": 2, "arraySeparator": ",", "keyValueSeparator": " ", - "enumValues": [], "key": "ip", - "commandKey": "asnmap", - "validations": [], - "dependencies": [] + "commandKey": "asnmap" }, { "name": "Domain", @@ -90,11 +84,8 @@ "sortOrder": 3, "arraySeparator": ",", "keyValueSeparator": " ", - "enumValues": [], "key": "domain", - "commandKey": "asnmap", - "validations": [], - "dependencies": [] + "commandKey": "asnmap" }, { "name": "Org", @@ -114,11 +105,8 @@ "sortOrder": 4, "arraySeparator": ",", "keyValueSeparator": " ", - "enumValues": [], "key": "org", - "commandKey": "asnmap", - "validations": [], - "dependencies": [] + "commandKey": "asnmap" }, { "name": "File", @@ -139,11 +127,8 @@ "sortOrder": 5, "arraySeparator": ",", "keyValueSeparator": " ", - "enumValues": [], "key": "file", - "commandKey": "asnmap", - "validations": [], - "dependencies": [] + "commandKey": "asnmap" }, { "name": "Config", @@ -162,11 +147,8 @@ "longFlag": "-config", "sortOrder": 6, "keyValueSeparator": " ", - "enumValues": [], "key": "config", - "commandKey": "asnmap", - "validations": [], - "dependencies": [] + "commandKey": "asnmap" }, { "name": "Resolvers", @@ -187,11 +169,8 @@ "sortOrder": 7, "arraySeparator": ",", "keyValueSeparator": " ", - "enumValues": [], "key": "resolvers", - "commandKey": "asnmap", - "validations": [], - "dependencies": [] + "commandKey": "asnmap" }, { "name": "Up", @@ -210,11 +189,8 @@ "shortFlag": "-up", "longFlag": "-update", "sortOrder": 8, - "enumValues": [], "key": "update", - "commandKey": "asnmap", - "validations": [], - "dependencies": [] + "commandKey": "asnmap" }, { "name": "Duc", @@ -233,11 +209,8 @@ "shortFlag": "-duc", "longFlag": "-disable-update-check", "sortOrder": 9, - "enumValues": [], "key": "disable-update-check", - "commandKey": "asnmap", - "validations": [], - "dependencies": [] + "commandKey": "asnmap" }, { "name": "Output File", @@ -257,9 +230,6 @@ "longFlag": "-output", "sortOrder": 10, "keyValueSeparator": " ", - "enumValues": [], - "validations": [], - "dependencies": [], "key": "output", "commandKey": "asnmap" }, @@ -280,9 +250,6 @@ "shortFlag": "-j", "longFlag": "-json", "sortOrder": 11, - "enumValues": [], - "validations": [], - "dependencies": [], "key": "json", "commandKey": "asnmap" }, @@ -303,9 +270,6 @@ "shortFlag": "-c", "longFlag": "-csv", "sortOrder": 12, - "enumValues": [], - "validations": [], - "dependencies": [], "key": "csv", "commandKey": "asnmap" }, @@ -325,11 +289,8 @@ "defaultValue": "", "longFlag": "-v6", "sortOrder": 13, - "enumValues": [], "key": "v6", - "commandKey": "asnmap", - "validations": [], - "dependencies": [] + "commandKey": "asnmap" }, { "name": "Verbose Output", @@ -348,9 +309,6 @@ "shortFlag": "-v", "longFlag": "-verbose", "sortOrder": 14, - "enumValues": [], - "validations": [], - "dependencies": [], "key": "verbose", "commandKey": "asnmap" }, @@ -370,11 +328,8 @@ "defaultValue": "", "longFlag": "-silent", "sortOrder": 15, - "enumValues": [], "key": "silent", - "commandKey": "asnmap", - "validations": [], - "dependencies": [] + "commandKey": "asnmap" }, { "name": "Version", @@ -392,12 +347,10 @@ "defaultValue": "", "longFlag": "-version", "sortOrder": 16, - "enumValues": [], "key": "version", - "commandKey": "asnmap", - "validations": [], - "dependencies": [] + "commandKey": "asnmap" } ], "exclusionGroups": [] } + diff --git a/public/tools-collection/cdncheck.json b/public/tools-collection/cdncheck.json index ce90d0a..6c5518f 100644 --- a/public/tools-collection/cdncheck.json +++ b/public/tools-collection/cdncheck.json @@ -32,11 +32,8 @@ "shortFlag": "-i", "longFlag": "-input", "sortOrder": 1, - "enumValues": [], "key": "input", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "Cdn", @@ -48,11 +45,8 @@ "isGlobal": false, "longFlag": "-cdn", "sortOrder": 2, - "enumValues": [], "key": "cdn", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "Cloud", @@ -64,11 +58,8 @@ "isGlobal": false, "longFlag": "-cloud", "sortOrder": 3, - "enumValues": [], "key": "cloud", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "Waf", @@ -80,11 +71,8 @@ "isGlobal": false, "longFlag": "-waf", "sortOrder": 4, - "enumValues": [], "key": "waf", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "Match Cdn", @@ -97,11 +85,8 @@ "shortFlag": "-mcdn", "longFlag": "-match-cdn", "sortOrder": 5, - "enumValues": [], "key": "match-cdn", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "Match Cloud", @@ -114,11 +99,8 @@ "shortFlag": "-mcloud", "longFlag": "-match-cloud", "sortOrder": 6, - "enumValues": [], "key": "match-cloud", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "Match Waf", @@ -131,11 +113,8 @@ "shortFlag": "-mwaf", "longFlag": "-match-waf", "sortOrder": 7, - "enumValues": [], "key": "match-waf", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "Filter Cdn", @@ -148,11 +127,8 @@ "shortFlag": "-fcdn", "longFlag": "-filter-cdn", "sortOrder": 8, - "enumValues": [], "key": "filter-cdn", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "Filter Cloud", @@ -165,11 +141,8 @@ "shortFlag": "-fcloud", "longFlag": "-filter-cloud", "sortOrder": 9, - "enumValues": [], "key": "filter-cloud", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "Filter Waf", @@ -182,11 +155,8 @@ "shortFlag": "-fwaf", "longFlag": "-filter-waf", "sortOrder": 10, - "enumValues": [], "key": "filter-waf", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "Resp", @@ -198,11 +168,8 @@ "isGlobal": false, "longFlag": "-resp", "sortOrder": 11, - "enumValues": [], "key": "resp", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "Output", @@ -215,11 +182,8 @@ "shortFlag": "-o", "longFlag": "-output", "sortOrder": 12, - "enumValues": [], "key": "output", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "Verbose", @@ -232,11 +196,8 @@ "shortFlag": "-v", "longFlag": "-verbose", "sortOrder": 13, - "enumValues": [], "key": "verbose", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "Jsonl", @@ -248,11 +209,8 @@ "isGlobal": false, "longFlag": "-jsonl", "sortOrder": 14, - "enumValues": [], "key": "jsonl", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "No Color", @@ -265,11 +223,8 @@ "shortFlag": "-nc", "longFlag": "-no-color", "sortOrder": 15, - "enumValues": [], "key": "no-color", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "Version", @@ -281,11 +236,8 @@ "isGlobal": false, "longFlag": "-version", "sortOrder": 16, - "enumValues": [], "key": "version", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "Silent", @@ -297,11 +249,8 @@ "isGlobal": false, "longFlag": "-silent", "sortOrder": 17, - "enumValues": [], "key": "silent", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "Resolver", @@ -314,11 +263,8 @@ "shortFlag": "-r", "longFlag": "-resolver", "sortOrder": 18, - "enumValues": [], "key": "resolver", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "Exclude", @@ -331,11 +277,8 @@ "shortFlag": "-e", "longFlag": "-exclude", "sortOrder": 19, - "enumValues": [], "key": "exclude", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "Retry", @@ -348,11 +291,8 @@ "defaultValue": "2", "longFlag": "-retry", "sortOrder": 20, - "enumValues": [], "key": "retry", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "Update", @@ -365,11 +305,8 @@ "shortFlag": "-up", "longFlag": "-update", "sortOrder": 21, - "enumValues": [], "key": "update", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" }, { "name": "Disable Update Check", @@ -382,11 +319,8 @@ "shortFlag": "-duc", "longFlag": "-disable-update-check", "sortOrder": 22, - "enumValues": [], "key": "disable-update-check", - "commandKey": "cdncheck", - "validations": [], - "dependencies": [] + "commandKey": "cdncheck" } ], "exclusionGroups": [ @@ -414,3 +348,4 @@ } ] } + diff --git a/public/tools-collection/dnsx.json b/public/tools-collection/dnsx.json index 46721dc..08bf369 100644 --- a/public/tools-collection/dnsx.json +++ b/public/tools-collection/dnsx.json @@ -31,12 +31,8 @@ "isGlobal": false, "shortFlag": "-l", "longFlag": "-list", - "enumValues": [], - "metadata": {}, "key": "list", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "Domain", @@ -48,12 +44,8 @@ "isGlobal": false, "shortFlag": "-d", "longFlag": "-domain", - "enumValues": [], - "metadata": {}, "key": "domain", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "Wordlist", @@ -65,12 +57,8 @@ "isGlobal": false, "shortFlag": "-w", "longFlag": "-wordlist", - "enumValues": [], - "metadata": {}, "key": "wordlist", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "A", @@ -81,12 +69,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-a", - "enumValues": [], - "metadata": {}, "key": "a", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "AAAA", @@ -97,12 +81,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-aaaa", - "enumValues": [], - "metadata": {}, "key": "aaaa", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "CNAME", @@ -113,12 +93,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-cname", - "enumValues": [], - "metadata": {}, "key": "cname", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "NS", @@ -129,12 +105,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-ns", - "enumValues": [], - "metadata": {}, "key": "ns", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "TXT", @@ -145,12 +117,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-txt", - "enumValues": [], - "metadata": {}, "key": "txt", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "SRV", @@ -161,12 +129,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-srv", - "enumValues": [], - "metadata": {}, "key": "srv", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "PTR", @@ -177,12 +141,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-ptr", - "enumValues": [], - "metadata": {}, "key": "ptr", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "MX", @@ -193,12 +153,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-mx", - "enumValues": [], - "metadata": {}, "key": "mx", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "SOA", @@ -209,12 +165,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-soa", - "enumValues": [], - "metadata": {}, "key": "soa", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "ANY", @@ -225,12 +177,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-any", - "enumValues": [], - "metadata": {}, "key": "any", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "AXFR", @@ -241,12 +189,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-axfr", - "enumValues": [], - "metadata": {}, "key": "axfr", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "CAA", @@ -257,12 +201,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-caa", - "enumValues": [], - "metadata": {}, "key": "caa", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "Recon", @@ -273,12 +213,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-recon", - "enumValues": [], - "metadata": {}, "key": "recon", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "ExcludeType", @@ -291,12 +227,8 @@ "defaultValue": "none", "shortFlag": "-e", "longFlag": "-exclude-type", - "enumValues": [], - "metadata": {}, "key": "exclude-type", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "Resp", @@ -308,12 +240,8 @@ "isGlobal": false, "shortFlag": "-re", "longFlag": "-resp", - "enumValues": [], - "metadata": {}, "key": "resp", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "RespOnly", @@ -325,12 +253,8 @@ "isGlobal": false, "shortFlag": "-ro", "longFlag": "-resp-only", - "enumValues": [], - "metadata": {}, "key": "resp-only", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "Rcode", @@ -342,12 +266,8 @@ "isGlobal": false, "shortFlag": "-rc", "longFlag": "-rcode", - "enumValues": [], - "metadata": {}, "key": "rcode", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "Cdn", @@ -358,12 +278,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-cdn", - "enumValues": [], - "metadata": {}, "key": "cdn", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "Asn", @@ -374,12 +290,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-asn", - "enumValues": [], - "metadata": {}, "key": "asn", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "Threads", @@ -392,12 +304,8 @@ "defaultValue": "100", "shortFlag": "-t", "longFlag": "-threads", - "enumValues": [], - "metadata": {}, "key": "threads", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "RateLimit", @@ -410,12 +318,8 @@ "defaultValue": "-1", "shortFlag": "-rl", "longFlag": "-rate-limit", - "enumValues": [], - "metadata": {}, "key": "rate-limit", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "Update", @@ -427,12 +331,8 @@ "isGlobal": false, "shortFlag": "-up", "longFlag": "-update", - "enumValues": [], - "metadata": {}, "key": "update", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "DisableUpdateCheck", @@ -444,12 +344,8 @@ "isGlobal": false, "shortFlag": "-duc", "longFlag": "-disable-update-check", - "enumValues": [], - "metadata": {}, "key": "disable-update-check", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "Output", @@ -461,12 +357,8 @@ "isGlobal": false, "shortFlag": "-o", "longFlag": "-output", - "enumValues": [], - "metadata": {}, "key": "output", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "Json", @@ -478,12 +370,8 @@ "isGlobal": false, "shortFlag": "-j", "longFlag": "-json", - "enumValues": [], - "metadata": {}, "key": "json", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "OmitRaw", @@ -495,12 +383,8 @@ "isGlobal": false, "shortFlag": "-omit-raw", "longFlag": "-or", - "enumValues": [], - "metadata": {}, "key": "or", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "HealthCheck", @@ -511,12 +395,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-health-check", - "enumValues": [], - "metadata": {}, "key": "health-check", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "Verbose", @@ -528,12 +408,8 @@ "isGlobal": false, "shortFlag": "-v", "longFlag": "-verbose", - "enumValues": [], - "metadata": {}, "key": "verbose", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "NoColor", @@ -544,12 +420,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-no-color", - "enumValues": [], - "metadata": {}, "key": "no-color", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "Silent", @@ -561,12 +433,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-silent", - "enumValues": [], - "metadata": {}, "key": "silent", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "Version", @@ -578,12 +446,8 @@ "isGlobal": false, "shortFlag": "-version", "longFlag": "-v", - "enumValues": [], - "metadata": {}, "key": "v", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" }, { "name": "ShowConfig", @@ -594,12 +458,10 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-sc", - "enumValues": [], - "metadata": {}, "key": "sc", - "commandKey": "dnsx", - "validations": [], - "dependencies": [] + "commandKey": "dnsx" } ] } + + diff --git a/public/tools-collection/httpx.json b/public/tools-collection/httpx.json index 4e5873d..156f584 100644 --- a/public/tools-collection/httpx.json +++ b/public/tools-collection/httpx.json @@ -40,11 +40,8 @@ "shortFlag": "-l", "longFlag": "--list", "sortOrder": 1, - "enumValues": [], "key": "list", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Request", @@ -63,11 +60,8 @@ "shortFlag": "-rr", "longFlag": "--request", "sortOrder": 2, - "enumValues": [], "key": "request", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Target", @@ -86,11 +80,8 @@ "shortFlag": "-u", "longFlag": "--target", "sortOrder": 3, - "enumValues": [], "key": "target", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Status code", @@ -108,11 +99,8 @@ "shortFlag": "-sc", "longFlag": "--status-code", "sortOrder": 4, - "enumValues": [], "key": "status-code", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Content length", @@ -130,11 +118,8 @@ "shortFlag": "-cl", "longFlag": "--content-length", "sortOrder": 5, - "enumValues": [], "key": "content-length", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Content type", @@ -152,11 +137,8 @@ "shortFlag": "-ct", "longFlag": "--content-type", "sortOrder": 6, - "enumValues": [], "key": "content-type", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Location", @@ -173,11 +155,8 @@ "isGlobal": false, "longFlag": "--location", "sortOrder": 7, - "enumValues": [], "key": "location", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Favicon", @@ -194,11 +173,8 @@ "isGlobal": false, "longFlag": "--favicon", "sortOrder": 8, - "enumValues": [], "key": "favicon", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Hash", @@ -215,11 +191,8 @@ "isGlobal": false, "longFlag": "--hash", "sortOrder": 9, - "enumValues": [], "key": "hash", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Jarm", @@ -236,11 +209,8 @@ "isGlobal": false, "longFlag": "--jarm", "sortOrder": 10, - "enumValues": [], "key": "jarm", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Response time", @@ -258,11 +228,8 @@ "shortFlag": "-rt", "longFlag": "--response-time", "sortOrder": 11, - "enumValues": [], "key": "response-time", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Line count", @@ -280,11 +247,8 @@ "shortFlag": "-lc", "longFlag": "--line-count", "sortOrder": 12, - "enumValues": [], "key": "line-count", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Word count", @@ -302,11 +266,8 @@ "shortFlag": "-wc", "longFlag": "--word-count", "sortOrder": 13, - "enumValues": [], "key": "word-count", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Title", @@ -323,11 +284,8 @@ "isGlobal": false, "longFlag": "--title", "sortOrder": 14, - "enumValues": [], "key": "title", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Body preview", @@ -345,11 +303,8 @@ "shortFlag": "-bp", "longFlag": "--body-preview", "sortOrder": 15, - "enumValues": [], "key": "body-preview", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Server", @@ -367,11 +322,8 @@ "shortFlag": "-server", "longFlag": "--server", "sortOrder": 16, - "enumValues": [], "key": "server", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Tech detect", @@ -389,11 +341,8 @@ "shortFlag": "-td", "longFlag": "--tech-detect", "sortOrder": 17, - "enumValues": [], "key": "tech-detect", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Method", @@ -410,11 +359,8 @@ "isGlobal": false, "longFlag": "--method", "sortOrder": 18, - "enumValues": [], "key": "method", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Websocket", @@ -431,11 +377,8 @@ "isGlobal": false, "longFlag": "--websocket", "sortOrder": 19, - "enumValues": [], "key": "websocket", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Ip", @@ -452,11 +395,8 @@ "isGlobal": false, "longFlag": "--ip", "sortOrder": 20, - "enumValues": [], "key": "ip", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Cname", @@ -473,11 +413,8 @@ "isGlobal": false, "longFlag": "--cname", "sortOrder": 21, - "enumValues": [], "key": "cname", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Extract fqdn", @@ -495,11 +432,8 @@ "shortFlag": "-efqdn", "longFlag": "--extract-fqdn", "sortOrder": 22, - "enumValues": [], "key": "extract-fqdn", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Asn", @@ -516,11 +450,8 @@ "isGlobal": false, "longFlag": "--asn", "sortOrder": 23, - "enumValues": [], "key": "asn", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Cdn", @@ -537,11 +468,8 @@ "isGlobal": false, "longFlag": "--cdn", "sortOrder": 24, - "enumValues": [], "key": "cdn", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Probe", @@ -558,11 +486,8 @@ "isGlobal": false, "longFlag": "--probe", "sortOrder": 25, - "enumValues": [], "key": "probe", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Screenshot", @@ -580,11 +505,8 @@ "shortFlag": "-ss", "longFlag": "--screenshot", "sortOrder": 26, - "enumValues": [], "key": "screenshot", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "System chrome", @@ -601,11 +523,8 @@ "isGlobal": false, "longFlag": "--system-chrome", "sortOrder": 27, - "enumValues": [], "key": "system-chrome", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Headless options", @@ -623,11 +542,8 @@ "shortFlag": "-ho", "longFlag": "--headless-options", "sortOrder": 28, - "enumValues": [], "key": "headless-options", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Exclude screenshot bytes", @@ -645,11 +561,8 @@ "shortFlag": "-esb", "longFlag": "--exclude-screenshot-bytes", "sortOrder": 29, - "enumValues": [], "key": "exclude-screenshot-bytes", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "No screenshot full page", @@ -666,11 +579,8 @@ "isGlobal": false, "longFlag": "--no-screenshot-full-page", "sortOrder": 30, - "enumValues": [], "key": "no-screenshot-full-page", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Exclude headless body", @@ -688,11 +598,8 @@ "shortFlag": "-ehb", "longFlag": "--exclude-headless-body", "sortOrder": 31, - "enumValues": [], "key": "exclude-headless-body", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Screenshot timeout", @@ -710,11 +617,8 @@ "shortFlag": "-st", "longFlag": "--screenshot-timeout", "sortOrder": 32, - "enumValues": [], "key": "screenshot-timeout", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Screenshot idle", @@ -732,11 +636,8 @@ "shortFlag": "-sid", "longFlag": "--screenshot-idle", "sortOrder": 33, - "enumValues": [], "key": "screenshot-idle", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Match code", @@ -754,11 +655,8 @@ "shortFlag": "-mc", "longFlag": "--match-code", "sortOrder": 34, - "enumValues": [], "key": "match-code", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Match length", @@ -776,11 +674,8 @@ "shortFlag": "-ml", "longFlag": "--match-length", "sortOrder": 35, - "enumValues": [], "key": "match-length", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Match line count", @@ -798,11 +693,8 @@ "shortFlag": "-mlc", "longFlag": "--match-line-count", "sortOrder": 36, - "enumValues": [], "key": "match-line-count", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Match word count", @@ -820,11 +712,8 @@ "shortFlag": "-mwc", "longFlag": "--match-word-count", "sortOrder": 37, - "enumValues": [], "key": "match-word-count", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Match favicon", @@ -842,11 +731,8 @@ "shortFlag": "-mfc", "longFlag": "--match-favicon", "sortOrder": 38, - "enumValues": [], "key": "match-favicon", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Match string", @@ -864,11 +750,8 @@ "shortFlag": "-ms", "longFlag": "--match-string", "sortOrder": 39, - "enumValues": [], "key": "match-string", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Match regex", @@ -886,11 +769,8 @@ "shortFlag": "-mr", "longFlag": "--match-regex", "sortOrder": 40, - "enumValues": [], "key": "match-regex", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Match cdn", @@ -908,11 +788,8 @@ "shortFlag": "-mcdn", "longFlag": "--match-cdn", "sortOrder": 41, - "enumValues": [], "key": "match-cdn", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Match response time", @@ -930,11 +807,8 @@ "shortFlag": "-mrt", "longFlag": "--match-response-time", "sortOrder": 42, - "enumValues": [], "key": "match-response-time", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Match condition", @@ -952,11 +826,8 @@ "shortFlag": "-mdc", "longFlag": "--match-condition", "sortOrder": 43, - "enumValues": [], "key": "match-condition", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Extract regex", @@ -974,11 +845,8 @@ "shortFlag": "-er", "longFlag": "--extract-regex", "sortOrder": 44, - "enumValues": [], "key": "extract-regex", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Extract preset", @@ -996,11 +864,8 @@ "shortFlag": "-ep", "longFlag": "--extract-preset", "sortOrder": 45, - "enumValues": [], "key": "extract-preset", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Filter code", @@ -1018,11 +883,8 @@ "shortFlag": "-fc", "longFlag": "--filter-code", "sortOrder": 46, - "enumValues": [], "key": "filter-code", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Filter error page", @@ -1040,11 +902,8 @@ "shortFlag": "-fep", "longFlag": "--filter-error-page", "sortOrder": 47, - "enumValues": [], "key": "filter-error-page", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Filter duplicates", @@ -1062,11 +921,8 @@ "shortFlag": "-fd", "longFlag": "--filter-duplicates", "sortOrder": 48, - "enumValues": [], "key": "filter-duplicates", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Filter length", @@ -1084,11 +940,8 @@ "shortFlag": "-fl", "longFlag": "--filter-length", "sortOrder": 49, - "enumValues": [], "key": "filter-length", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Filter line count", @@ -1106,11 +959,8 @@ "shortFlag": "-flc", "longFlag": "--filter-line-count", "sortOrder": 50, - "enumValues": [], "key": "filter-line-count", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Filter word count", @@ -1128,11 +978,8 @@ "shortFlag": "-fwc", "longFlag": "--filter-word-count", "sortOrder": 51, - "enumValues": [], "key": "filter-word-count", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Filter favicon", @@ -1150,11 +997,8 @@ "shortFlag": "-ffc", "longFlag": "--filter-favicon", "sortOrder": 52, - "enumValues": [], "key": "filter-favicon", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Filter string", @@ -1172,11 +1016,8 @@ "shortFlag": "-fs", "longFlag": "--filter-string", "sortOrder": 53, - "enumValues": [], "key": "filter-string", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Filter regex", @@ -1194,11 +1035,8 @@ "shortFlag": "-fe", "longFlag": "--filter-regex", "sortOrder": 54, - "enumValues": [], "key": "filter-regex", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Filter cdn", @@ -1216,11 +1054,8 @@ "shortFlag": "-fcdn", "longFlag": "--filter-cdn", "sortOrder": 55, - "enumValues": [], "key": "filter-cdn", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Filter response time", @@ -1238,11 +1073,8 @@ "shortFlag": "-frt", "longFlag": "--filter-response-time", "sortOrder": 56, - "enumValues": [], "key": "filter-response-time", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Filter condition", @@ -1260,11 +1092,8 @@ "shortFlag": "-fdc", "longFlag": "--filter-condition", "sortOrder": 57, - "enumValues": [], "key": "filter-condition", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Strip", @@ -1281,16 +1110,12 @@ "isGlobal": false, "longFlag": "--strip", "sortOrder": 58, - "enumValues": [], "key": "strip", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Threads", "description": "Number of threads to use (default 50).", - "metadata": {}, "parameterType": "Option", "dataType": "Number", "isRequired": false, @@ -1299,16 +1124,12 @@ "shortFlag": "-t", "longFlag": "--threads", "sortOrder": 59, - "enumValues": [], "key": "threads", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Rate limit", "description": "Maximum requests to send per second (default 150).", - "metadata": {}, "parameterType": "Option", "dataType": "Number", "isRequired": false, @@ -1317,16 +1138,12 @@ "shortFlag": "-rl", "longFlag": "--rate-limit", "sortOrder": 60, - "enumValues": [], "key": "rate-limit", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Rate limit minute", "description": "Maximum number of requests to send per minute.", - "metadata": {}, "parameterType": "Option", "dataType": "Number", "isRequired": false, @@ -1335,16 +1152,12 @@ "shortFlag": "-rlm", "longFlag": "--rate-limit-minute", "sortOrder": 61, - "enumValues": [], "key": "rate-limit-minute", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Probe all ips", "description": "Probe all the ips associated with same host.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -1353,16 +1166,12 @@ "shortFlag": "-pa", "longFlag": "--probe-all-ips", "sortOrder": 62, - "enumValues": [], "key": "probe-all-ips", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Ports", "description": "Ports to probe (nmap syntax: eg http:1,2-10,11,https:80).", - "metadata": {}, "parameterType": "Option", "dataType": "String", "isRequired": false, @@ -1371,16 +1180,12 @@ "shortFlag": "-p", "longFlag": "--ports", "sortOrder": 63, - "enumValues": [], "key": "ports", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Path", "description": "Path or list of paths to probe (comma-separated, file).", - "metadata": {}, "parameterType": "Option", "dataType": "String", "isRequired": false, @@ -1388,16 +1193,12 @@ "isGlobal": false, "longFlag": "--path", "sortOrder": 64, - "enumValues": [], "key": "path", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Tls probe", "description": "Send http probes on the extracted TLS domains (dns_name).", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -1405,16 +1206,12 @@ "isGlobal": false, "longFlag": "--tls-probe", "sortOrder": 65, - "enumValues": [], "key": "tls-probe", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Csp probe", "description": "Send http probes on the extracted CSP domains.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -1422,16 +1219,12 @@ "isGlobal": false, "longFlag": "--csp-probe", "sortOrder": 66, - "enumValues": [], "key": "csp-probe", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Tls grab", "description": "Perform TLS(SSL) data grabbing.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -1439,16 +1232,12 @@ "isGlobal": false, "longFlag": "--tls-grab", "sortOrder": 67, - "enumValues": [], "key": "tls-grab", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Pipeline", "description": "Probe and display server supporting HTTP1.1 pipeline.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -1456,16 +1245,12 @@ "isGlobal": false, "longFlag": "--pipeline", "sortOrder": 68, - "enumValues": [], "key": "pipeline", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Http2", "description": "Probe and display server supporting HTTP2.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -1473,16 +1258,12 @@ "isGlobal": false, "longFlag": "--http2", "sortOrder": 69, - "enumValues": [], "key": "http2", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Vhost", "description": "Probe and display server supporting VHOST.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -1490,16 +1271,12 @@ "isGlobal": false, "longFlag": "--vhost", "sortOrder": 70, - "enumValues": [], "key": "vhost", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "List dsl variables", "description": "List json output field keys name that support dsl matcher/filter.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -1508,11 +1285,8 @@ "shortFlag": "-ldv", "longFlag": "--list-dsl-variables", "sortOrder": 71, - "enumValues": [], "key": "list-dsl-variables", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Update", @@ -1530,11 +1304,8 @@ "shortFlag": "-up", "longFlag": "--update", "sortOrder": 72, - "enumValues": [], "key": "update", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Disable update check", @@ -1552,11 +1323,8 @@ "shortFlag": "-duc", "longFlag": "--disable-update-check", "sortOrder": 73, - "enumValues": [], "key": "disable-update-check", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Output", @@ -1575,11 +1343,8 @@ "shortFlag": "-o", "longFlag": "--output", "sortOrder": 74, - "enumValues": [], "key": "output", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Output all", @@ -1598,11 +1363,8 @@ "shortFlag": "-oa", "longFlag": "--output-all", "sortOrder": 75, - "enumValues": [], "key": "output-all", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Store response", @@ -1621,11 +1383,8 @@ "shortFlag": "-sr", "longFlag": "--store-response", "sortOrder": 76, - "enumValues": [], "key": "store-response", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Store response dir", @@ -1644,11 +1403,8 @@ "shortFlag": "-srd", "longFlag": "--store-response-dir", "sortOrder": 77, - "enumValues": [], "key": "store-response-dir", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Omit body", @@ -1666,11 +1422,8 @@ "shortFlag": "-ob", "longFlag": "--omit-body", "sortOrder": 78, - "enumValues": [], "key": "omit-body", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Csv", @@ -1687,11 +1440,8 @@ "isGlobal": false, "longFlag": "--csv", "sortOrder": 79, - "enumValues": [], "key": "csv", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Csv output encoding", @@ -1709,11 +1459,8 @@ "shortFlag": "-csvo", "longFlag": "--csv-output-encoding", "sortOrder": 80, - "enumValues": [], "key": "csv-output-encoding", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Json", @@ -1731,11 +1478,8 @@ "shortFlag": "-j", "longFlag": "--json", "sortOrder": 81, - "enumValues": [], "key": "json", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Include response header", @@ -1753,11 +1497,8 @@ "shortFlag": "-irh", "longFlag": "--include-response-header", "sortOrder": 82, - "enumValues": [], "key": "include-response-header", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Include response", @@ -1775,11 +1516,8 @@ "shortFlag": "-irr", "longFlag": "--include-response", "sortOrder": 83, - "enumValues": [], "key": "include-response", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Include response base64", @@ -1797,11 +1535,8 @@ "shortFlag": "-irrb", "longFlag": "--include-response-base64", "sortOrder": 84, - "enumValues": [], "key": "include-response-base64", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Include chain", @@ -1818,11 +1553,8 @@ "isGlobal": false, "longFlag": "--include-chain", "sortOrder": 85, - "enumValues": [], "key": "include-chain", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Store chain", @@ -1839,11 +1571,8 @@ "isGlobal": false, "longFlag": "--store-chain", "sortOrder": 86, - "enumValues": [], "key": "store-chain", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Store vision recon cluster", @@ -1861,16 +1590,12 @@ "shortFlag": "-svrc", "longFlag": "--store-vision-recon-cluster", "sortOrder": 87, - "enumValues": [], "key": "store-vision-recon-cluster", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Protocol", "description": "Protocol to use (unknown, http11).", - "metadata": {}, "parameterType": "Option", "dataType": "String", "isRequired": false, @@ -1879,11 +1604,8 @@ "shortFlag": "-pr", "longFlag": "--protocol", "sortOrder": 88, - "enumValues": [], "key": "protocol", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Filter error page path", @@ -1902,11 +1624,8 @@ "shortFlag": "-fepp", "longFlag": "--filter-error-page-path", "sortOrder": 89, - "enumValues": [], "key": "filter-error-page-path", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Config", @@ -1923,16 +1642,12 @@ "isGlobal": false, "longFlag": "--config", "sortOrder": 90, - "enumValues": [], "key": "config", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Resolvers", "description": "List of custom resolver (file or comma separated).", - "metadata": {}, "parameterType": "Option", "dataType": "String", "isRequired": false, @@ -1941,16 +1656,12 @@ "shortFlag": "-r", "longFlag": "--resolvers", "sortOrder": 91, - "enumValues": [], "key": "resolvers", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Allow", "description": "Allowed list of IP/CIDR's to process (file or comma separated).", - "metadata": {}, "parameterType": "Option", "dataType": "String", "isRequired": false, @@ -1958,16 +1669,12 @@ "isGlobal": false, "longFlag": "--allow", "sortOrder": 92, - "enumValues": [], "key": "allow", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Deny", "description": "Denied list of IP/CIDR's to process (file or comma separated).", - "metadata": {}, "parameterType": "Option", "dataType": "String", "isRequired": false, @@ -1975,16 +1682,12 @@ "isGlobal": false, "longFlag": "--deny", "sortOrder": 93, - "enumValues": [], "key": "deny", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Sni name", "description": "Custom TLS SNI name.", - "metadata": {}, "parameterType": "Option", "dataType": "String", "isRequired": false, @@ -1993,16 +1696,12 @@ "shortFlag": "-sni", "longFlag": "--sni-name", "sortOrder": 94, - "enumValues": [], "key": "sni-name", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Random agent", "description": "Enable Random User-Agent to use (default true).", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2010,16 +1709,12 @@ "isGlobal": false, "longFlag": "--random-agent", "sortOrder": 95, - "enumValues": [], "key": "random-agent", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Header", "description": "Custom http headers to send with request.", - "metadata": {}, "parameterType": "Option", "dataType": "String", "isRequired": false, @@ -2028,16 +1723,12 @@ "shortFlag": "-H", "longFlag": "--header", "sortOrder": 96, - "enumValues": [], "key": "header", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Http proxy", "description": "Http proxy to use (eg http://127.0.0.1:8080).", - "metadata": {}, "parameterType": "Option", "dataType": "String", "isRequired": false, @@ -2045,16 +1736,12 @@ "isGlobal": false, "longFlag": "--http-proxy", "sortOrder": 97, - "enumValues": [], "key": "http-proxy", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Proxy", "description": "Http proxy to use (eg http://127.0.0.1:8080).", - "metadata": {}, "parameterType": "Option", "dataType": "String", "isRequired": false, @@ -2062,16 +1749,12 @@ "isGlobal": false, "longFlag": "--proxy", "sortOrder": 98, - "enumValues": [], "key": "proxy", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Unsafe", "description": "Send raw requests skipping golang normalization.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2079,16 +1762,12 @@ "isGlobal": false, "longFlag": "--unsafe", "sortOrder": 99, - "enumValues": [], "key": "unsafe", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Resume", "description": "Resume scan using resume.cfg.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2096,16 +1775,12 @@ "isGlobal": false, "longFlag": "--resume", "sortOrder": 100, - "enumValues": [], "key": "resume", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Follow redirects", "description": "Follow http redirects.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2114,16 +1789,12 @@ "shortFlag": "-fr", "longFlag": "--follow-redirects", "sortOrder": 101, - "enumValues": [], "key": "follow-redirects", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Max redirects", "description": "Max number of redirects to follow per host (default 10).", - "metadata": {}, "parameterType": "Option", "dataType": "Number", "isRequired": false, @@ -2132,16 +1803,12 @@ "shortFlag": "-maxr", "longFlag": "--max-redirects", "sortOrder": 102, - "enumValues": [], "key": "max-redirects", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Follow host redirects", "description": "Follow redirects on the same host.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2150,16 +1817,12 @@ "shortFlag": "-fhr", "longFlag": "--follow-host-redirects", "sortOrder": 103, - "enumValues": [], "key": "follow-host-redirects", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Respect hsts", "description": "Respect HSTS response headers for redirect requests.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2168,16 +1831,12 @@ "shortFlag": "-rhsts", "longFlag": "--respect-hsts", "sortOrder": 104, - "enumValues": [], "key": "respect-hsts", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Vhost input", "description": "Get a list of vhosts as input.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2185,16 +1844,12 @@ "isGlobal": false, "longFlag": "--vhost-input", "sortOrder": 105, - "enumValues": [], "key": "vhost-input", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "X", "description": "Request methods to probe, use 'all' to probe all HTTP methods.", - "metadata": {}, "parameterType": "Option", "dataType": "String", "isRequired": false, @@ -2202,16 +1857,12 @@ "isGlobal": false, "longFlag": "--x", "sortOrder": 106, - "enumValues": [], "key": "x", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Body", "description": "Post body to include in http request.", - "metadata": {}, "parameterType": "Option", "dataType": "String", "isRequired": false, @@ -2219,16 +1870,12 @@ "isGlobal": false, "longFlag": "--body", "sortOrder": 107, - "enumValues": [], "key": "body", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Stream", "description": "Stream mode - start elaborating input targets without sorting.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2237,16 +1884,12 @@ "shortFlag": "-s", "longFlag": "--stream", "sortOrder": 108, - "enumValues": [], "key": "stream", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Skip dedupe", "description": "Disable dedupe input items (only used with stream mode).", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2255,16 +1898,12 @@ "shortFlag": "-sd", "longFlag": "--skip-dedupe", "sortOrder": 109, - "enumValues": [], "key": "skip-dedupe", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Leave default ports", "description": "Leave default http/https ports in host header (eg. http://host:80 - https://host:443).", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2273,16 +1912,12 @@ "shortFlag": "-ldp", "longFlag": "--leave-default-ports", "sortOrder": 110, - "enumValues": [], "key": "leave-default-ports", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Ztls", "description": "Use ztls library with autofallback to standard one for tls13.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2290,16 +1925,12 @@ "isGlobal": false, "longFlag": "--ztls", "sortOrder": 111, - "enumValues": [], "key": "ztls", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "No decode", "description": "Avoid decoding body.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2307,16 +1938,12 @@ "isGlobal": false, "longFlag": "--no-decode", "sortOrder": 112, - "enumValues": [], "key": "no-decode", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Tls impersonate", "description": "Enable experimental client hello (ja3) tls randomization.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2325,16 +1952,12 @@ "shortFlag": "-tlsi", "longFlag": "--tls-impersonate", "sortOrder": 113, - "enumValues": [], "key": "tls-impersonate", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "No stdin", "description": "Disable Stdin processing.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2342,16 +1965,12 @@ "isGlobal": false, "longFlag": "--no-stdin", "sortOrder": 114, - "enumValues": [], "key": "no-stdin", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Http api endpoint", "description": "Experimental http api endpoint.", - "metadata": {}, "parameterType": "Option", "dataType": "String", "isRequired": false, @@ -2360,16 +1979,12 @@ "shortFlag": "-hae", "longFlag": "--http-api-endpoint", "sortOrder": 115, - "enumValues": [], "key": "http-api-endpoint", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Health check", "description": "Run diagnostic check up.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2378,16 +1993,12 @@ "shortFlag": "-hc", "longFlag": "--health-check", "sortOrder": 116, - "enumValues": [], "key": "health-check", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Debug", "description": "Display request/response content in cli.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2395,16 +2006,12 @@ "isGlobal": false, "longFlag": "--debug", "sortOrder": 117, - "enumValues": [], "key": "debug", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Debug req", "description": "Display request content in cli.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2412,16 +2019,12 @@ "isGlobal": false, "longFlag": "--debug-req", "sortOrder": 118, - "enumValues": [], "key": "debug-req", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Debug resp", "description": "Display response content in cli.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2429,16 +2032,12 @@ "isGlobal": false, "longFlag": "--debug-resp", "sortOrder": 119, - "enumValues": [], "key": "debug-resp", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Version", "description": "Display httpx version.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2446,11 +2045,8 @@ "isGlobal": false, "longFlag": "--version", "sortOrder": 120, - "enumValues": [], "key": "version", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Stats", @@ -2467,16 +2063,12 @@ "isGlobal": false, "longFlag": "--stats", "sortOrder": 121, - "enumValues": [], "key": "stats", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Profile mem", "description": "Optional httpx memory profile dump file.", - "metadata": {}, "parameterType": "Option", "dataType": "String", "isRequired": false, @@ -2484,11 +2076,8 @@ "isGlobal": false, "longFlag": "--profile-mem", "sortOrder": 122, - "enumValues": [], "key": "profile-mem", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Silent", @@ -2505,11 +2094,8 @@ "isGlobal": false, "longFlag": "--silent", "sortOrder": 123, - "enumValues": [], "key": "silent", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Verbose", @@ -2527,11 +2113,8 @@ "shortFlag": "-v", "longFlag": "--verbose", "sortOrder": 124, - "enumValues": [], "key": "verbose", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Stats interval", @@ -2549,11 +2132,8 @@ "shortFlag": "-si", "longFlag": "--stats-interval", "sortOrder": 125, - "enumValues": [], "key": "stats-interval", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "No color", @@ -2571,16 +2151,12 @@ "shortFlag": "-nc", "longFlag": "--no-color", "sortOrder": 126, - "enumValues": [], "key": "no-color", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Trace", "description": "Trace.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2589,16 +2165,12 @@ "shortFlag": "-tr", "longFlag": "--trace", "sortOrder": 127, - "enumValues": [], "key": "trace", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "No fallback", "description": "Display both probed protocol (HTTPS and HTTP).", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2607,16 +2179,12 @@ "shortFlag": "-nf", "longFlag": "--no-fallback", "sortOrder": 128, - "enumValues": [], "key": "no-fallback", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "No fallback scheme", "description": "Probe with protocol scheme specified in input.", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2625,16 +2193,12 @@ "shortFlag": "-nfs", "longFlag": "--no-fallback-scheme", "sortOrder": 129, - "enumValues": [], "key": "no-fallback-scheme", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Max host error", "description": "Max error count per host before skipping remaining path/s (default 30).", - "metadata": {}, "parameterType": "Option", "dataType": "Number", "isRequired": false, @@ -2643,16 +2207,12 @@ "shortFlag": "-maxhr", "longFlag": "--max-host-error", "sortOrder": 130, - "enumValues": [], "key": "max-host-error", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Exclude", "description": "Exclude host matching specified filter ('cdn', 'private-ips', cidr, ip, regex).", - "metadata": {}, "parameterType": "Option", "dataType": "String", "isRequired": false, @@ -2661,16 +2221,12 @@ "shortFlag": "-e", "longFlag": "--exclude", "sortOrder": 131, - "enumValues": [], "key": "exclude", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Retries", "description": "Number of retries.", - "metadata": {}, "parameterType": "Option", "dataType": "Number", "isRequired": false, @@ -2678,16 +2234,12 @@ "isGlobal": false, "longFlag": "--retries", "sortOrder": 132, - "enumValues": [], "key": "retries", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Timeout", "description": "Timeout in seconds (default 10).", - "metadata": {}, "parameterType": "Option", "dataType": "Number", "isRequired": false, @@ -2695,16 +2247,12 @@ "isGlobal": false, "longFlag": "--timeout", "sortOrder": 133, - "enumValues": [], "key": "timeout", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Delay", "description": "Duration between each http request (eg: 200ms, 1s) (default -1ns).", - "metadata": {}, "parameterType": "Option", "dataType": "String", "isRequired": false, @@ -2712,16 +2260,12 @@ "isGlobal": false, "longFlag": "--delay", "sortOrder": 134, - "enumValues": [], "key": "delay", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Response size to save", "description": "Max response size to save in bytes (default 2147483647).", - "metadata": {}, "parameterType": "Option", "dataType": "Number", "isRequired": false, @@ -2730,16 +2274,12 @@ "shortFlag": "-rsts", "longFlag": "--response-size-to-save", "sortOrder": 135, - "enumValues": [], "key": "response-size-to-save", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Response size to read", "description": "Max response size to read in bytes (default 2147483647).", - "metadata": {}, "parameterType": "Option", "dataType": "Number", "isRequired": false, @@ -2748,16 +2288,12 @@ "shortFlag": "-rstr", "longFlag": "--response-size-to-read", "sortOrder": 136, - "enumValues": [], "key": "response-size-to-read", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Auth", "description": "Configure projectdiscovery cloud (pdcp) api key (default true).", - "metadata": {}, "parameterType": "Flag", "dataType": "Boolean", "isRequired": false, @@ -2765,11 +2301,8 @@ "isGlobal": false, "longFlag": "--auth", "sortOrder": 137, - "enumValues": [], "key": "auth", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Auth config", @@ -2787,11 +2320,8 @@ "shortFlag": "-ac", "longFlag": "--auth-config", "sortOrder": 138, - "enumValues": [], "key": "auth-config", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Dashboard", @@ -2809,16 +2339,12 @@ "shortFlag": "-pd", "longFlag": "--dashboard", "sortOrder": 139, - "enumValues": [], "key": "dashboard", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Team id", "description": "Upload asset results to given team id (optional).", - "metadata": {}, "parameterType": "Option", "dataType": "String", "isRequired": false, @@ -2827,16 +2353,12 @@ "shortFlag": "-tid", "longFlag": "--team-id", "sortOrder": 140, - "enumValues": [], "key": "team-id", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Asset id", "description": "Upload new assets to existing asset id (optional).", - "metadata": {}, "parameterType": "Option", "dataType": "String", "isRequired": false, @@ -2845,16 +2367,12 @@ "shortFlag": "-aid", "longFlag": "--asset-id", "sortOrder": 141, - "enumValues": [], "key": "asset-id", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Asset name", "description": "Assets group name to set (optional).", - "metadata": {}, "parameterType": "Option", "dataType": "String", "isRequired": false, @@ -2863,11 +2381,8 @@ "shortFlag": "-aname", "longFlag": "--asset-name", "sortOrder": 142, - "enumValues": [], "key": "asset-name", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" }, { "name": "Dashboard upload", @@ -2886,12 +2401,11 @@ "shortFlag": "-pdu", "longFlag": "--dashboard-upload", "sortOrder": 143, - "enumValues": [], "key": "dashboard-upload", - "commandKey": "httpx", - "validations": [], - "dependencies": [] + "commandKey": "httpx" } ], "exclusionGroups": [] } + + diff --git a/public/tools-collection/katana.json b/public/tools-collection/katana.json index 40776fb..81efc29 100644 --- a/public/tools-collection/katana.json +++ b/public/tools-collection/katana.json @@ -39,11 +39,8 @@ "isGlobal": false, "shortFlag": "-u", "longFlag": "-list", - "enumValues": [], "key": "list", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Resume", @@ -54,11 +51,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-resume", - "enumValues": [], "key": "resume", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Exclude", @@ -76,11 +70,8 @@ "isGlobal": false, "shortFlag": "-e", "longFlag": "-exclude", - "enumValues": [], "key": "exclude", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Resolvers", @@ -97,11 +88,8 @@ "isGlobal": false, "shortFlag": "-r", "longFlag": "-resolvers", - "enumValues": [], "key": "resolvers", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Depth", @@ -114,11 +102,8 @@ "defaultValue": "3", "shortFlag": "-d", "longFlag": "-depth", - "enumValues": [], "key": "depth", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Js-crawl", @@ -130,11 +115,8 @@ "isGlobal": false, "shortFlag": "-jc", "longFlag": "-js-crawl", - "enumValues": [], "key": "js-crawl", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Jsluice", @@ -146,11 +128,8 @@ "isGlobal": false, "shortFlag": "-jsl", "longFlag": "-jsluice", - "enumValues": [], "key": "jsluice", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Crawl-duration", @@ -163,11 +142,8 @@ "defaultValue": "s", "shortFlag": "-ct", "longFlag": "-crawl-duration", - "enumValues": [], "key": "crawl-duration", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Known-files", @@ -179,11 +155,8 @@ "isGlobal": false, "shortFlag": "-kf", "longFlag": "-known-files", - "enumValues": [], "key": "known-files", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Max-response-size", @@ -196,11 +169,8 @@ "defaultValue": "4194304", "shortFlag": "-mrs", "longFlag": "-max-response-size", - "enumValues": [], "key": "max-response-size", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Timeout", @@ -212,11 +182,8 @@ "isGlobal": false, "defaultValue": "10", "longFlag": "-timeout", - "enumValues": [], "key": "timeout", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Automatic-form-fill", @@ -228,11 +195,8 @@ "isGlobal": false, "shortFlag": "-aff", "longFlag": "-automatic-form-fill", - "enumValues": [], "key": "automatic-form-fill", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Form-extraction", @@ -244,11 +208,8 @@ "isGlobal": false, "shortFlag": "-fx", "longFlag": "-form-extraction", - "enumValues": [], "key": "form-extraction", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Retry", @@ -260,11 +221,8 @@ "isGlobal": false, "defaultValue": "1", "longFlag": "-retry", - "enumValues": [], "key": "retry", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Proxy", @@ -275,11 +233,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-proxy", - "enumValues": [], "key": "proxy", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Tech-detect", @@ -291,11 +246,8 @@ "isGlobal": false, "shortFlag": "-td", "longFlag": "-tech-detect", - "enumValues": [], "key": "tech-detect", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Headers", @@ -312,11 +264,8 @@ "isGlobal": false, "shortFlag": "-H", "longFlag": "-headers", - "enumValues": [], "key": "headers", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Config", @@ -332,11 +281,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-config", - "enumValues": [], "key": "config", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Form-config", @@ -353,11 +299,8 @@ "isGlobal": false, "shortFlag": "-fc", "longFlag": "-form-config", - "enumValues": [], "key": "form-config", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Field-config", @@ -374,11 +317,8 @@ "isGlobal": false, "shortFlag": "-flc", "longFlag": "-field-config", - "enumValues": [], "key": "field-config", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Strategy", @@ -391,11 +331,8 @@ "defaultValue": "depth-first", "shortFlag": "-s", "longFlag": "-strategy", - "enumValues": [], "key": "strategy", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Ignore-query-params", @@ -407,11 +344,8 @@ "isGlobal": false, "shortFlag": "-iqp", "longFlag": "-ignore-query-params", - "enumValues": [], "key": "ignore-query-params", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Tls-impersonate", @@ -423,11 +357,8 @@ "isGlobal": false, "shortFlag": "-tlsi", "longFlag": "-tls-impersonate", - "enumValues": [], "key": "tls-impersonate", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Disable-redirects", @@ -440,11 +371,8 @@ "defaultValue": "false", "shortFlag": "-dr", "longFlag": "-disable-redirects", - "enumValues": [], "key": "disable-redirects", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Health-check", @@ -456,11 +384,8 @@ "isGlobal": false, "shortFlag": "-hc", "longFlag": "-health-check", - "enumValues": [], "key": "health-check", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Error-log", @@ -477,11 +402,8 @@ "isGlobal": false, "shortFlag": "-elog", "longFlag": "-error-log", - "enumValues": [], "key": "error-log", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Pprof-server", @@ -492,11 +414,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-pprof-server", - "enumValues": [], "key": "pprof-server", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Headless", @@ -508,11 +427,8 @@ "isGlobal": false, "shortFlag": "-hl", "longFlag": "-headless", - "enumValues": [], "key": "headless", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "System-chrome", @@ -524,11 +440,8 @@ "isGlobal": false, "shortFlag": "-sc", "longFlag": "-system-chrome", - "enumValues": [], "key": "system-chrome", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Show-browser", @@ -540,11 +453,8 @@ "isGlobal": false, "shortFlag": "-sb", "longFlag": "-show-browser", - "enumValues": [], "key": "show-browser", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Headless-options", @@ -556,11 +466,8 @@ "isGlobal": false, "shortFlag": "-ho", "longFlag": "-headless-options", - "enumValues": [], "key": "headless-options", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "No-sandbox", @@ -572,11 +479,8 @@ "isGlobal": false, "shortFlag": "-nos", "longFlag": "-no-sandbox", - "enumValues": [], "key": "no-sandbox", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Chrome-data-dir", @@ -593,11 +497,8 @@ "isGlobal": false, "shortFlag": "-cdd", "longFlag": "-chrome-data-dir", - "enumValues": [], "key": "chrome-data-dir", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "System-chrome-path", @@ -609,11 +510,8 @@ "isGlobal": false, "shortFlag": "-scp", "longFlag": "-system-chrome-path", - "enumValues": [], "key": "system-chrome-path", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "No-incognito", @@ -625,11 +523,8 @@ "isGlobal": false, "shortFlag": "-noi", "longFlag": "-no-incognito", - "enumValues": [], "key": "no-incognito", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Chrome-ws-url", @@ -641,11 +536,8 @@ "isGlobal": false, "shortFlag": "-cwu", "longFlag": "-chrome-ws-url", - "enumValues": [], "key": "chrome-ws-url", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Xhr-extraction", @@ -657,11 +549,8 @@ "isGlobal": false, "shortFlag": "-xhr", "longFlag": "-xhr-extraction", - "enumValues": [], "key": "xhr-extraction", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Crawl-scope", @@ -679,11 +568,8 @@ "isGlobal": false, "shortFlag": "-cs", "longFlag": "-crawl-scope", - "enumValues": [], "key": "crawl-scope", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Crawl-out-scope", @@ -701,11 +587,8 @@ "isGlobal": false, "shortFlag": "-cos", "longFlag": "-crawl-out-scope", - "enumValues": [], "key": "crawl-out-scope", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Field-scope", @@ -718,11 +601,8 @@ "defaultValue": "rdn", "shortFlag": "-fs", "longFlag": "-field-scope", - "enumValues": [], "key": "field-scope", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "No-scope", @@ -734,11 +614,8 @@ "isGlobal": false, "shortFlag": "-ns", "longFlag": "-no-scope", - "enumValues": [], "key": "no-scope", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Display-out-scope", @@ -750,11 +627,8 @@ "isGlobal": false, "shortFlag": "-do", "longFlag": "-display-out-scope", - "enumValues": [], "key": "display-out-scope", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Match-regex", @@ -766,11 +640,8 @@ "isGlobal": false, "shortFlag": "-mr", "longFlag": "-match-regex", - "enumValues": [], "key": "match-regex", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Filter-regex", @@ -782,11 +653,8 @@ "isGlobal": false, "shortFlag": "-fr", "longFlag": "-filter-regex", - "enumValues": [], "key": "filter-regex", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Field", @@ -803,11 +671,8 @@ "isGlobal": false, "shortFlag": "-f", "longFlag": "-field", - "enumValues": [], "key": "field", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Store-field", @@ -824,11 +689,8 @@ "isGlobal": false, "shortFlag": "-sf", "longFlag": "-store-field", - "enumValues": [], "key": "store-field", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Extension-match", @@ -840,11 +702,8 @@ "isGlobal": false, "shortFlag": "-em", "longFlag": "-extension-match", - "enumValues": [], "key": "extension-match", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Extension-filter", @@ -856,11 +715,8 @@ "isGlobal": false, "shortFlag": "-ef", "longFlag": "-extension-filter", - "enumValues": [], "key": "extension-filter", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Match-condition", @@ -872,11 +728,8 @@ "isGlobal": false, "shortFlag": "-mdc", "longFlag": "-match-condition", - "enumValues": [], "key": "match-condition", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Filter-condition", @@ -888,11 +741,8 @@ "isGlobal": false, "shortFlag": "-fdc", "longFlag": "-filter-condition", - "enumValues": [], "key": "filter-condition", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Concurrency", @@ -905,11 +755,8 @@ "defaultValue": "10", "shortFlag": "-c", "longFlag": "-concurrency", - "enumValues": [], "key": "concurrency", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Parallelism", @@ -922,11 +769,8 @@ "defaultValue": "10", "shortFlag": "-p", "longFlag": "-parallelism", - "enumValues": [], "key": "parallelism", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Delay", @@ -938,11 +782,8 @@ "isGlobal": false, "shortFlag": "-rd", "longFlag": "-delay", - "enumValues": [], "key": "delay", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Rate-limit", @@ -955,11 +796,8 @@ "defaultValue": "150", "shortFlag": "-rl", "longFlag": "-rate-limit", - "enumValues": [], "key": "rate-limit", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Rate-limit-minute", @@ -971,11 +809,8 @@ "isGlobal": false, "shortFlag": "-rlm", "longFlag": "-rate-limit-minute", - "enumValues": [], "key": "rate-limit-minute", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Update", @@ -987,11 +822,8 @@ "isGlobal": false, "shortFlag": "-up", "longFlag": "-update", - "enumValues": [], "key": "update", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Disable-update-check", @@ -1008,11 +840,8 @@ "isGlobal": false, "shortFlag": "-duc", "longFlag": "-disable-update-check", - "enumValues": [], "key": "disable-update-check", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Output", @@ -1030,11 +859,8 @@ "isGlobal": false, "shortFlag": "-o", "longFlag": "-output", - "enumValues": [], "key": "output", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Output-template", @@ -1051,11 +877,8 @@ "isGlobal": false, "shortFlag": "-ot", "longFlag": "-output-template", - "enumValues": [], "key": "output-template", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Store-response", @@ -1067,11 +890,8 @@ "isGlobal": false, "shortFlag": "-sr", "longFlag": "-store-response", - "enumValues": [], "key": "store-response", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Store-response-dir", @@ -1088,11 +908,8 @@ "isGlobal": false, "shortFlag": "-srd", "longFlag": "-store-response-dir", - "enumValues": [], "key": "store-response-dir", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "No-clobber", @@ -1104,11 +921,8 @@ "isGlobal": false, "shortFlag": "-ncb", "longFlag": "-no-clobber", - "enumValues": [], "key": "no-clobber", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Store-field-dir", @@ -1125,11 +939,8 @@ "isGlobal": false, "shortFlag": "-sfd", "longFlag": "-store-field-dir", - "enumValues": [], "key": "store-field-dir", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Omit-raw", @@ -1146,11 +957,8 @@ "isGlobal": false, "shortFlag": "-or", "longFlag": "-omit-raw", - "enumValues": [], "key": "omit-raw", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Omit-body", @@ -1167,11 +975,8 @@ "isGlobal": false, "shortFlag": "-ob", "longFlag": "-omit-body", - "enumValues": [], "key": "omit-body", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Jsonl", @@ -1188,11 +993,8 @@ "isGlobal": false, "shortFlag": "-j", "longFlag": "-jsonl", - "enumValues": [], "key": "jsonl", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "No-color", @@ -1209,11 +1011,8 @@ "isGlobal": false, "shortFlag": "-nc", "longFlag": "-no-color", - "enumValues": [], "key": "no-color", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Silent", @@ -1229,11 +1028,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-silent", - "enumValues": [], "key": "silent", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Verbose", @@ -1250,11 +1046,8 @@ "isGlobal": false, "shortFlag": "-v", "longFlag": "-verbose", - "enumValues": [], "key": "verbose", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Debug", @@ -1270,11 +1063,8 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-debug", - "enumValues": [], "key": "debug", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" }, { "name": "Version", @@ -1290,12 +1080,10 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-version", - "enumValues": [], "key": "version", - "commandKey": "katana", - "validations": [], - "dependencies": [] + "commandKey": "katana" } ], "exclusionGroups": [] } + diff --git a/public/tools-collection/shuffledns.json b/public/tools-collection/shuffledns.json index c279ad7..ec1633f 100644 --- a/public/tools-collection/shuffledns.json +++ b/public/tools-collection/shuffledns.json @@ -32,11 +32,8 @@ "shortFlag": "-d", "longFlag": "-domain", "sortOrder": 1, - "enumValues": [], "key": "domain", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "List", @@ -49,11 +46,8 @@ "shortFlag": "-l", "longFlag": "-list", "sortOrder": 2, - "enumValues": [], "key": "list", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "Wordlist", @@ -66,11 +60,8 @@ "shortFlag": "-w", "longFlag": "-wordlist", "sortOrder": 3, - "enumValues": [], "key": "wordlist", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "Resolver", @@ -83,11 +74,8 @@ "shortFlag": "-r", "longFlag": "-resolver", "sortOrder": 4, - "enumValues": [], "key": "resolver", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "Trusted Resolver", @@ -100,11 +88,8 @@ "shortFlag": "-tr", "longFlag": "-trusted-resolver", "sortOrder": 5, - "enumValues": [], "key": "trusted-resolver", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "Raw Input", @@ -117,11 +102,8 @@ "shortFlag": "-ri", "longFlag": "-raw-input", "sortOrder": 6, - "enumValues": [], "key": "raw-input", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "Mode", @@ -133,11 +115,8 @@ "isGlobal": false, "longFlag": "-mode", "sortOrder": 7, - "enumValues": [], "key": "mode", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "T", @@ -151,11 +130,8 @@ "shortFlag": "-t", "longFlag": "-t", "sortOrder": 8, - "enumValues": [], "key": "t", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "Update", @@ -168,11 +144,8 @@ "shortFlag": "-up", "longFlag": "-update", "sortOrder": 9, - "enumValues": [], "key": "update", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "Disable Update Check", @@ -185,11 +158,8 @@ "shortFlag": "-duc", "longFlag": "-disable-update-check", "sortOrder": 10, - "enumValues": [], "key": "disable-update-check", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "Output", @@ -202,11 +172,8 @@ "shortFlag": "-o", "longFlag": "-output", "sortOrder": 11, - "enumValues": [], "key": "output", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "Json", @@ -219,11 +186,8 @@ "shortFlag": "-j", "longFlag": "-json", "sortOrder": 12, - "enumValues": [], "key": "json", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "Wildcard Output", @@ -236,11 +200,8 @@ "shortFlag": "-wo", "longFlag": "-wildcard-output", "sortOrder": 13, - "enumValues": [], "key": "wildcard-output", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "Massdns", @@ -253,11 +214,8 @@ "shortFlag": "-m", "longFlag": "-massdns", "sortOrder": 14, - "enumValues": [], "key": "massdns", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "Massdns Cmd", @@ -270,11 +228,8 @@ "shortFlag": "-mcmd", "longFlag": "-massdns-cmd", "sortOrder": 15, - "enumValues": [], "key": "massdns-cmd", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "Directory", @@ -286,11 +241,8 @@ "isGlobal": false, "longFlag": "-directory", "sortOrder": 16, - "enumValues": [], "key": "directory", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "Retries", @@ -303,11 +255,8 @@ "defaultValue": "5", "longFlag": "-retries", "sortOrder": 17, - "enumValues": [], "key": "retries", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "Strict Wildcard", @@ -320,11 +269,8 @@ "shortFlag": "-sw", "longFlag": "-strict-wildcard", "sortOrder": 18, - "enumValues": [], "key": "strict-wildcard", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "Wt", @@ -337,11 +283,8 @@ "defaultValue": "250", "longFlag": "-wt", "sortOrder": 19, - "enumValues": [], "key": "wt", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "Silent", @@ -353,11 +296,8 @@ "isGlobal": false, "longFlag": "-silent", "sortOrder": 20, - "enumValues": [], "key": "silent", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "Version", @@ -369,11 +309,8 @@ "isGlobal": false, "longFlag": "-version", "sortOrder": 21, - "enumValues": [], "key": "version", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "Verbose", @@ -386,11 +323,8 @@ "shortFlag": "-v", "longFlag": "-v", "sortOrder": 22, - "enumValues": [], "key": "v", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" }, { "name": "No Color", @@ -403,12 +337,10 @@ "shortFlag": "-nc", "longFlag": "-no-color", "sortOrder": 23, - "enumValues": [], "key": "no-color", - "commandKey": "shuffledns", - "validations": [], - "dependencies": [] + "commandKey": "shuffledns" } ], "exclusionGroups": [] } + diff --git a/public/tools-collection/subfinder.json b/public/tools-collection/subfinder.json index 3b27364..31600c9 100644 --- a/public/tools-collection/subfinder.json +++ b/public/tools-collection/subfinder.json @@ -38,9 +38,6 @@ "non-configurable" ] }, - "enumValues": [], - "dependencies": [], - "validations": [], "key": "domain", "commandKey": "domain" }, @@ -55,12 +52,8 @@ "isRequired": false, "isRepeatable": true, "isGlobal": false, - "metadata": {}, - "enumValues": [], "key": "sources", - "commandKey": "domain", - "validations": [], - "dependencies": [] + "commandKey": "domain" }, { "name": "Recursive", @@ -72,12 +65,8 @@ "isRequired": false, "isRepeatable": false, "isGlobal": false, - "metadata": {}, - "enumValues": [], "key": "recursive", - "commandKey": "domain", - "validations": [], - "dependencies": [] + "commandKey": "domain" }, { "name": "Target Domains List", @@ -95,9 +84,6 @@ "target-list" ] }, - "enumValues": [], - "dependencies": [], - "validations": [], "key": "list", "commandKey": "domain" }, @@ -117,9 +103,6 @@ "non-configurable" ] }, - "enumValues": [], - "dependencies": [], - "validations": [], "key": "output-dir", "commandKey": "domain" }, @@ -138,9 +121,6 @@ "non-configurable" ] }, - "enumValues": [], - "dependencies": [], - "validations": [], "key": "stats", "commandKey": "domain" }, @@ -154,12 +134,8 @@ "isRequired": false, "isRepeatable": false, "isGlobal": false, - "metadata": {}, - "enumValues": [], "key": "timeout", - "commandKey": "domain", - "validations": [], - "dependencies": [] + "commandKey": "domain" }, { "name": "Resolvers File", @@ -171,12 +147,8 @@ "isRequired": false, "isRepeatable": false, "isGlobal": false, - "metadata": {}, - "enumValues": [], "key": "rlist", - "commandKey": "domain", - "validations": [], - "dependencies": [] + "commandKey": "domain" }, { "name": "Update", @@ -194,9 +166,6 @@ "non-configurable" ] }, - "enumValues": [], - "dependencies": [], - "validations": [], "key": "update", "commandKey": "domain" }, @@ -215,9 +184,6 @@ "non-configurable" ] }, - "enumValues": [], - "dependencies": [], - "validations": [], "key": "version", "commandKey": "domain" }, @@ -232,12 +198,8 @@ "isRequired": false, "isRepeatable": false, "isGlobal": false, - "metadata": {}, - "enumValues": [], "key": "exclude-ip", - "commandKey": "domain", - "validations": [], - "dependencies": [] + "commandKey": "domain" }, { "name": "Proxy", @@ -248,12 +210,8 @@ "isRequired": false, "isRepeatable": false, "isGlobal": false, - "metadata": {}, - "enumValues": [], "key": "proxy", - "commandKey": "domain", - "validations": [], - "dependencies": [] + "commandKey": "domain" }, { "name": "No Colour in Output", @@ -271,9 +229,6 @@ "non-configurable" ] }, - "enumValues": [], - "dependencies": [], - "validations": [], "key": "no-color", "commandKey": "domain" }, @@ -288,12 +243,8 @@ "isRequired": false, "isRepeatable": true, "isGlobal": false, - "metadata": {}, - "enumValues": [], "key": "match", - "commandKey": "domain", - "validations": [], - "dependencies": [] + "commandKey": "domain" }, { "name": "Include IP", @@ -306,12 +257,8 @@ "isRequired": false, "isRepeatable": false, "isGlobal": false, - "metadata": {}, - "enumValues": [], "key": "ip", - "commandKey": "domain", - "validations": [], - "dependencies": [] + "commandKey": "domain" }, { "name": "Active Domains Only", @@ -324,12 +271,8 @@ "isRequired": false, "isRepeatable": false, "isGlobal": false, - "metadata": {}, - "enumValues": [], "key": "active", - "commandKey": "domain", - "validations": [], - "dependencies": [] + "commandKey": "domain" }, { "name": "Rate Limits", @@ -342,12 +285,8 @@ "isRequired": false, "isRepeatable": false, "isGlobal": false, - "metadata": {}, - "enumValues": [], "key": "rate-limits", - "commandKey": "domain", - "validations": [], - "dependencies": [] + "commandKey": "domain" }, { "name": "Disable Update Check", @@ -365,9 +304,6 @@ "non-configurable" ] }, - "enumValues": [], - "dependencies": [], - "validations": [], "key": "disable-update-check", "commandKey": "domain" }, @@ -382,12 +318,8 @@ "isRequired": false, "isRepeatable": false, "isGlobal": false, - "metadata": {}, - "enumValues": [], "key": "collect-sources", - "commandKey": "domain", - "validations": [], - "dependencies": [] + "commandKey": "domain" }, { "name": "Output File", @@ -404,9 +336,6 @@ "output-file" ] }, - "enumValues": [], - "dependencies": [], - "validations": [], "key": "output", "commandKey": "domain" }, @@ -425,9 +354,6 @@ "non-configurable" ] }, - "enumValues": [], - "dependencies": [], - "validations": [], "key": "v", "commandKey": "domain" }, @@ -441,12 +367,8 @@ "isRequired": false, "isRepeatable": true, "isGlobal": false, - "metadata": {}, - "enumValues": [], "key": "r", - "commandKey": "domain", - "validations": [], - "dependencies": [] + "commandKey": "domain" }, { "name": "Json", @@ -459,12 +381,8 @@ "isRequired": false, "isRepeatable": false, "isGlobal": false, - "metadata": {}, - "enumValues": [], "key": "json", - "commandKey": "domain", - "validations": [], - "dependencies": [] + "commandKey": "domain" }, { "name": "Configuration file", @@ -481,9 +399,6 @@ "configuration-file" ] }, - "enumValues": [], - "dependencies": [], - "validations": [], "key": "config", "commandKey": "domain" }, @@ -497,12 +412,8 @@ "isRequired": false, "isRepeatable": false, "isGlobal": false, - "metadata": {}, - "enumValues": [], "key": "rate-limit", - "commandKey": "domain", - "validations": [], - "dependencies": [] + "commandKey": "domain" }, { "name": "Filter", @@ -515,12 +426,8 @@ "isRequired": false, "isRepeatable": true, "isGlobal": false, - "metadata": {}, - "enumValues": [], "key": "filter", - "commandKey": "domain", - "validations": [], - "dependencies": [] + "commandKey": "domain" }, { "name": "Silent", @@ -532,11 +439,7 @@ "isRequired": false, "isRepeatable": false, "isGlobal": false, - "metadata": {}, - "enumValues": [], "shortFlag": "", - "dependencies": [], - "validations": [], "key": "silent", "commandKey": "domain" }, @@ -550,10 +453,6 @@ "isRequired": false, "isRepeatable": false, "isGlobal": false, - "metadata": {}, - "enumValues": [], - "dependencies": [], - "validations": [], "key": "all", "commandKey": "domain" }, @@ -568,12 +467,8 @@ "isRequired": false, "isRepeatable": false, "isGlobal": false, - "metadata": {}, - "enumValues": [], "key": "list-sources", - "commandKey": "domain", - "validations": [], - "dependencies": [] + "commandKey": "domain" }, { "name": "Exclude Sources", @@ -586,12 +481,8 @@ "isRequired": false, "isRepeatable": true, "isGlobal": false, - "metadata": {}, - "enumValues": [], "key": "exclude-sources", - "commandKey": "domain", - "validations": [], - "dependencies": [] + "commandKey": "domain" }, { "name": "Max time", @@ -603,12 +494,8 @@ "isRequired": false, "isRepeatable": false, "isGlobal": false, - "metadata": {}, - "enumValues": [], "key": "max-time", - "commandKey": "domain", - "validations": [], - "dependencies": [] + "commandKey": "domain" }, { "name": "Threads", @@ -620,12 +507,8 @@ "isRequired": false, "isRepeatable": false, "isGlobal": false, - "metadata": {}, - "enumValues": [], "key": "t", - "commandKey": "domain", - "validations": [], - "dependencies": [] + "commandKey": "domain" }, { "name": "Provider Configuration file", @@ -643,12 +526,11 @@ "configuration-file" ] }, - "enumValues": [], - "dependencies": [], - "validations": [], "key": "provider-config", "commandKey": "domain" } ], "exclusionGroups": [] } + + diff --git a/public/tools-collection/urlfinder.json b/public/tools-collection/urlfinder.json index fd20d1c..7f2445d 100644 --- a/public/tools-collection/urlfinder.json +++ b/public/tools-collection/urlfinder.json @@ -38,9 +38,6 @@ "shortFlag": "", "longFlag": "-d", "arraySeparator": "", - "enumValues": [], - "dependencies": [], - "validations": [], "key": "d", "commandKey": "urlfinder" }, @@ -60,9 +57,6 @@ "shortFlag": "", "longFlag": "-list", "arraySeparator": ",", - "enumValues": [], - "dependencies": [], - "validations": [], "key": "list", "commandKey": "urlfinder" }, @@ -80,9 +74,6 @@ "shortFlag": "-s", "longFlag": "-sources", "arraySeparator": ",", - "enumValues": [], - "dependencies": [], - "validations": [], "key": "sources", "commandKey": "urlfinder" }, @@ -100,9 +91,6 @@ "shortFlag": "-es", "longFlag": "-exclude-sources", "arraySeparator": ",", - "enumValues": [], - "dependencies": [], - "validations": [], "key": "exclude-sources", "commandKey": "urlfinder" }, @@ -119,9 +107,6 @@ "isRepeatable": false, "isGlobal": false, "longFlag": "-all", - "enumValues": [], - "dependencies": [], - "validations": [], "key": "all", "commandKey": "urlfinder" }, @@ -141,9 +126,6 @@ "shortFlag": "-us", "longFlag": "-url-scope", "arraySeparator": ",", - "enumValues": [], - "dependencies": [], - "validations": [], "key": "url-scope", "commandKey": "urlfinder" }, @@ -163,11 +145,8 @@ "shortFlag": "-uos", "longFlag": "-url-out-scope", "arraySeparator": ",", - "enumValues": [], "key": "url-out-scope", - "commandKey": "urlfinder", - "validations": [], - "dependencies": [] + "commandKey": "urlfinder" }, { "name": "Field-scope", @@ -185,11 +164,8 @@ "defaultValue": "", "shortFlag": "-fs", "longFlag": "-field-scope", - "enumValues": [], "key": "field-scope", - "commandKey": "urlfinder", - "validations": [], - "dependencies": [] + "commandKey": "urlfinder" }, { "name": "No-scope", @@ -206,11 +182,8 @@ "isGlobal": false, "shortFlag": "-ns", "longFlag": "-no-scope", - "enumValues": [], "key": "no-scope", - "commandKey": "urlfinder", - "validations": [], - "dependencies": [] + "commandKey": "urlfinder" }, { "name": "Display-out-scope", @@ -227,11 +200,8 @@ "isGlobal": false, "shortFlag": "-do", "longFlag": "-display-out-scope", - "enumValues": [], "key": "display-out-scope", - "commandKey": "urlfinder", - "validations": [], - "dependencies": [] + "commandKey": "urlfinder" }, { "name": "Match", @@ -249,11 +219,8 @@ "shortFlag": "-m", "longFlag": "-match", "arraySeparator": ",", - "enumValues": [], "key": "match", - "commandKey": "urlfinder", - "validations": [], - "dependencies": [] + "commandKey": "urlfinder" }, { "name": "Filter", @@ -271,11 +238,8 @@ "shortFlag": "-f", "longFlag": "-filter", "arraySeparator": ",", - "enumValues": [], "key": "filter", - "commandKey": "urlfinder", - "validations": [], - "dependencies": [] + "commandKey": "urlfinder" }, { "name": "Rate-limit", @@ -292,11 +256,8 @@ "isGlobal": false, "shortFlag": "-rl", "longFlag": "-rate-limit", - "enumValues": [], "key": "rate-limit", - "commandKey": "urlfinder", - "validations": [], - "dependencies": [] + "commandKey": "urlfinder" }, { "name": "Rate-limits", @@ -313,11 +274,8 @@ "isGlobal": false, "shortFlag": "-rls", "longFlag": "-rate-limits", - "enumValues": [], "key": "rate-limits", - "commandKey": "urlfinder", - "validations": [], - "dependencies": [] + "commandKey": "urlfinder" }, { "name": "Update", @@ -334,9 +292,6 @@ "isGlobal": false, "shortFlag": "-up", "longFlag": "-update", - "enumValues": [], - "dependencies": [], - "validations": [], "defaultValue": "false", "key": "update", "commandKey": "urlfinder" @@ -356,9 +311,6 @@ "isGlobal": false, "shortFlag": "-v", "longFlag": "-verbose", - "enumValues": [], - "dependencies": [], - "validations": [], "defaultValue": "false", "key": "verbose", "commandKey": "urlfinder" @@ -378,9 +330,6 @@ "isGlobal": false, "shortFlag": "-s", "longFlag": "-silent", - "enumValues": [], - "dependencies": [], - "validations": [], "defaultValue": "true", "key": "silent", "commandKey": "urlfinder" @@ -400,9 +349,6 @@ "isGlobal": false, "shortFlag": "-to", "longFlag": "-timeout", - "enumValues": [], - "dependencies": [], - "validations": [], "defaultValue": "5", "key": "timeout", "commandKey": "urlfinder" @@ -422,9 +368,6 @@ "isGlobal": false, "shortFlag": "-j", "longFlag": "-json", - "enumValues": [], - "dependencies": [], - "validations": [], "defaultValue": "false", "key": "json", "commandKey": "urlfinder" @@ -444,9 +387,6 @@ "isGlobal": false, "shortFlag": "-csv", "longFlag": "-csv", - "enumValues": [], - "dependencies": [], - "validations": [], "defaultValue": "false", "key": "csv", "commandKey": "urlfinder" @@ -466,12 +406,10 @@ "isGlobal": false, "shortFlag": "-vrs", "longFlag": "-version", - "enumValues": [], - "dependencies": [], - "validations": [], "defaultValue": "false", "key": "version", "commandKey": "urlfinder" } ] } + diff --git a/public/tools-collection/yt-dlp.json b/public/tools-collection/yt-dlp.json index f231900..53caacf 100644 --- a/public/tools-collection/yt-dlp.json +++ b/public/tools-collection/yt-dlp.json @@ -29,10 +29,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--help", - "enumValues": [], - "key": "help", - "validations": [], - "dependencies": [] + "key": "help" }, { "name": "Version", @@ -43,10 +40,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--version", - "enumValues": [], - "key": "version", - "validations": [], - "dependencies": [] + "key": "version" }, { "name": "Update", @@ -57,10 +51,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--update", - "enumValues": [], - "key": "update", - "validations": [], - "dependencies": [] + "key": "update" }, { "name": "No Update", @@ -71,10 +62,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--no-update", - "enumValues": [], - "key": "no-update", - "validations": [], - "dependencies": [] + "key": "no-update" }, { "name": "Update To Version", @@ -85,10 +73,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--update-to", - "enumValues": [], - "key": "update-to", - "validations": [], - "dependencies": [] + "key": "update-to" }, { "name": "Ignore Errors", @@ -99,10 +84,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--ignore-errors", - "enumValues": [], - "key": "ignore-errors", - "validations": [], - "dependencies": [] + "key": "ignore-errors" }, { "name": "No Abort On Error", @@ -113,10 +95,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--no-abort-on-error", - "enumValues": [], - "key": "no-abort-on-error", - "validations": [], - "dependencies": [] + "key": "no-abort-on-error" }, { "name": "Abort On Error", @@ -127,10 +106,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--abort-on-error", - "enumValues": [], - "key": "abort-on-error", - "validations": [], - "dependencies": [] + "key": "abort-on-error" }, { "name": "Dump User Agent", @@ -141,10 +117,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--dump-user-agent", - "enumValues": [], - "key": "dump-user-agent", - "validations": [], - "dependencies": [] + "key": "dump-user-agent" }, { "name": "List Extractors", @@ -155,10 +128,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--list-extractors", - "enumValues": [], - "key": "list-extractors", - "validations": [], - "dependencies": [] + "key": "list-extractors" }, { "name": "Extractor Descriptions", @@ -169,10 +139,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--extractor-descriptions", - "enumValues": [], - "key": "extractor-descriptions", - "validations": [], - "dependencies": [] + "key": "extractor-descriptions" }, { "name": "Use Extractors", @@ -183,10 +150,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--use-extractors", - "enumValues": [], - "key": "use-extractors", - "validations": [], - "dependencies": [] + "key": "use-extractors" }, { "name": "Default Search", @@ -197,10 +161,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--default-search", - "enumValues": [], - "key": "default-search", - "validations": [], - "dependencies": [] + "key": "default-search" }, { "name": "Ignore Config", @@ -211,10 +172,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--ignore-config", - "enumValues": [], - "key": "ignore-config", - "validations": [], - "dependencies": [] + "key": "ignore-config" }, { "name": "No Config Locations", @@ -225,10 +183,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--no-config-locations", - "enumValues": [], - "key": "no-config-locations", - "validations": [], - "dependencies": [] + "key": "no-config-locations" }, { "name": "Config Locations", @@ -239,10 +194,7 @@ "isRepeatable": true, "isGlobal": true, "longFlag": "--config-locations", - "enumValues": [], - "key": "config-locations", - "validations": [], - "dependencies": [] + "key": "config-locations" }, { "name": "Plugin Dirs", @@ -253,10 +205,7 @@ "isRepeatable": true, "isGlobal": true, "longFlag": "--plugin-dirs", - "enumValues": [], - "key": "plugin-dirs", - "validations": [], - "dependencies": [] + "key": "plugin-dirs" }, { "name": "No Plugin Dirs", @@ -267,10 +216,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--no-plugin-dirs", - "enumValues": [], - "key": "no-plugin-dirs", - "validations": [], - "dependencies": [] + "key": "no-plugin-dirs" }, { "name": "Flat Playlist", @@ -281,10 +227,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--flat-playlist", - "enumValues": [], - "key": "flat-playlist", - "validations": [], - "dependencies": [] + "key": "flat-playlist" }, { "name": "No Flat Playlist", @@ -295,10 +238,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--no-flat-playlist", - "enumValues": [], - "key": "no-flat-playlist", - "validations": [], - "dependencies": [] + "key": "no-flat-playlist" }, { "name": "Preset Alias", @@ -309,10 +249,7 @@ "isRepeatable": true, "isGlobal": true, "longFlag": "--preset-alias", - "enumValues": [], - "key": "preset-alias", - "validations": [], - "dependencies": [] + "key": "preset-alias" }, { "name": "Proxy", @@ -323,10 +260,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--proxy", - "enumValues": [], - "key": "proxy", - "validations": [], - "dependencies": [] + "key": "proxy" }, { "name": "Socket Timeout", @@ -337,10 +271,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--socket-timeout", - "enumValues": [], - "key": "socket-timeout", - "validations": [], - "dependencies": [] + "key": "socket-timeout" }, { "name": "Source Address", @@ -351,10 +282,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--source-address", - "enumValues": [], - "key": "source-address", - "validations": [], - "dependencies": [] + "key": "source-address" }, { "name": "Impersonate", @@ -365,10 +293,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--impersonate", - "enumValues": [], - "key": "impersonate", - "validations": [], - "dependencies": [] + "key": "impersonate" }, { "name": "List Impersonate Targets", @@ -379,10 +304,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--list-impersonate-targets", - "enumValues": [], - "key": "list-impersonate-targets", - "validations": [], - "dependencies": [] + "key": "list-impersonate-targets" }, { "name": "Force IPv4", @@ -393,10 +315,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--force-ipv4", - "enumValues": [], - "key": "force-ipv4", - "validations": [], - "dependencies": [] + "key": "force-ipv4" }, { "name": "Force IPv6", @@ -407,10 +326,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--force-ipv6", - "enumValues": [], - "key": "force-ipv6", - "validations": [], - "dependencies": [] + "key": "force-ipv6" }, { "name": "Enable File URLs", @@ -421,10 +337,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--enable-file-urls", - "enumValues": [], - "key": "enable-file-urls", - "validations": [], - "dependencies": [] + "key": "enable-file-urls" }, { "name": "Geo Verification Proxy", @@ -435,10 +348,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--geo-verification-proxy", - "enumValues": [], - "key": "geo-verification-proxy", - "validations": [], - "dependencies": [] + "key": "geo-verification-proxy" }, { "name": "Fake X-Forwarded-For", @@ -449,10 +359,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--xff", - "enumValues": [], - "key": "xff", - "validations": [], - "dependencies": [] + "key": "xff" }, { "name": "Playlist Items", @@ -464,10 +371,7 @@ "isGlobal": true, "longFlag": "--playlist-items", "shortFlag": "-I", - "enumValues": [], - "key": "playlist-items", - "validations": [], - "dependencies": [] + "key": "playlist-items" }, { "name": "Min Filesize", @@ -478,10 +382,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--min-filesize", - "enumValues": [], - "key": "min-filesize", - "validations": [], - "dependencies": [] + "key": "min-filesize" }, { "name": "Max Filesize", @@ -492,10 +393,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--max-filesize", - "enumValues": [], - "key": "max-filesize", - "validations": [], - "dependencies": [] + "key": "max-filesize" }, { "name": "Date", @@ -506,10 +404,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--date", - "enumValues": [], - "key": "date", - "validations": [], - "dependencies": [] + "key": "date" }, { "name": "Date Before", @@ -520,10 +415,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--datebefore", - "enumValues": [], - "key": "datebefore", - "validations": [], - "dependencies": [] + "key": "datebefore" }, { "name": "Date After", @@ -534,10 +426,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--dateafter", - "enumValues": [], - "key": "dateafter", - "validations": [], - "dependencies": [] + "key": "dateafter" }, { "name": "Match Filters", @@ -548,10 +437,7 @@ "isRepeatable": true, "isGlobal": true, "longFlag": "--match-filters", - "enumValues": [], - "key": "match-filters", - "validations": [], - "dependencies": [] + "key": "match-filters" }, { "name": "No Match Filters", @@ -562,10 +448,7 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--no-match-filters", - "enumValues": [], - "key": "no-match-filters", - "validations": [], - "dependencies": [] + "key": "no-match-filters" }, { "name": "Break Match Filters", @@ -576,10 +459,7 @@ "isRepeatable": true, "isGlobal": true, "longFlag": "--break-match-filters", - "enumValues": [], - "key": "break-match-filters", - "validations": [], - "dependencies": [] + "key": "break-match-filters" }, { "name": "No Break Match Filters", @@ -590,11 +470,9 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--no-break-match-filters", - "enumValues": [], - "key": "no-break-match-filters", - "validations": [], - "dependencies": [] + "key": "no-break-match-filters" } ], "exclusionGroups": [] } + diff --git a/registry/commandly/lib/types/commandly-nested.ts b/registry/commandly/lib/types/commandly-nested.ts index f4123fb..29ad166 100644 --- a/registry/commandly/lib/types/commandly-nested.ts +++ b/registry/commandly/lib/types/commandly-nested.ts @@ -45,9 +45,9 @@ export const NestedParameterSchema: z.ZodType = z.lazy(() => sortOrder: z.number().optional(), arraySeparator: z.string().optional(), keyValueSeparator: z.string().optional(), - enumValues: z.array(NestedParameterEnumValueSchema), - validations: z.array(NestedParameterValidationSchema), - dependencies: z.array(NestedParameterDependencySchema), + enumValues: z.array(NestedParameterEnumValueSchema).optional(), + validations: z.array(NestedParameterValidationSchema).optional(), + dependencies: z.array(NestedParameterDependencySchema).optional(), }), ); export type NestedParameter = z.infer; @@ -82,7 +82,7 @@ export const NestedToolSchema = z.object({ url: z.url().optional(), globalParameters: z.array(NestedParameterSchema), commands: z.array(NestedCommandSchema), - exclusionGroups: z.array(NestedExclusionGroupSchema), - metadata: NestedToolMetadataSchema, + exclusionGroups: z.array(NestedExclusionGroupSchema).optional().nullable(), + metadata: NestedToolMetadataSchema.optional(), }); export type NestedTool = z.infer; diff --git a/registry/commandly/lib/types/commandly.ts b/registry/commandly/lib/types/commandly.ts index 6ebb8d6..df3eb62 100644 --- a/registry/commandly/lib/types/commandly.ts +++ b/registry/commandly/lib/types/commandly.ts @@ -80,7 +80,7 @@ export const ParameterSchema = z.object({ sortOrder: z.number().optional(), arraySeparator: z.string().optional(), keyValueSeparator: z.string().optional(), - enumValues: z.array(ParameterEnumValueSchema), + enumValues: z.array(ParameterEnumValueSchema).optional(), validations: z.array(ParameterValidationSchema).optional(), dependencies: z.array(ParameterDependencySchema).optional(), }); @@ -117,8 +117,8 @@ export const ToolSchema = z.object({ url: z.url().optional(), commands: z.array(CommandSchema), parameters: z.array(ParameterSchema), - exclusionGroups: z.array(ExclusionGroupSchema), - metadata: ToolMetadataSchema, + exclusionGroups: z.array(ExclusionGroupSchema).optional(), + metadata: ToolMetadataSchema.optional(), }); export type Tool = z.infer; diff --git a/registry/commandly/lib/utils/commandly-nested.ts b/registry/commandly/lib/utils/commandly-nested.ts index 1a70093..4025734 100644 --- a/registry/commandly/lib/utils/commandly-nested.ts +++ b/registry/commandly/lib/utils/commandly-nested.ts @@ -53,16 +53,18 @@ export const convertToNestedStructure = (tool: Tool): NestedTool => { }); }; - const nestedExclusionGroups: NestedExclusionGroup[] = tool.exclusionGroups.map((group) => { - return { - name: group.name, - exclusionType: group.exclusionType, - parameters: group.parameterKeys.map((pk) => { - const param = tool.parameters.find((p) => p.key === pk); - return param?.longFlag || ""; - }), - }; - }); + const nestedExclusionGroups: NestedExclusionGroup[] | undefined = tool.exclusionGroups?.map( + (group) => { + return { + name: group.name, + exclusionType: group.exclusionType, + parameters: group.parameterKeys.map((pk) => { + const param = tool.parameters.find((p) => p.key === pk); + return param?.longFlag || ""; + }), + }; + }, + ); return { name: tool.name, diff --git a/registry/commandly/runtime-preview.tsx b/registry/commandly/runtime-preview.tsx index ab3e71b..9434d41 100644 --- a/registry/commandly/runtime-preview.tsx +++ b/registry/commandly/runtime-preview.tsx @@ -124,7 +124,7 @@ function OptionEnumInput({ parameter, value, onUpdate }: ParameterInputProps) { - {parameter.enumValues.map((enumValue) => ( + {parameter.enumValues?.map((enumValue) => ( - {parameter.enumValues.map((enumValue) => ( + {parameter.enumValues?.map((enumValue) => (
{ - const updatedEnumValues = parameter.enumValues.map((ev) => + const updatedEnumValues = parameter.enumValues?.map((ev) => ev.key === enumValue.key ? { ...ev, value: e.target.value, key: slugify(e.target.value) } : ev, @@ -608,7 +608,7 @@ export function ParameterDetailsDialog() { { - const updatedEnumValues = parameter.enumValues.map((ev) => + const updatedEnumValues = parameter.enumValues?.map((ev) => ev.key === enumValue.key ? { ...ev, displayName: e.target.value } : ev, ); updateParameter({ @@ -621,7 +621,7 @@ export function ParameterDetailsDialog() { { - const updatedEnumValues = parameter.enumValues.map((ev) => + const updatedEnumValues = parameter.enumValues?.map((ev) => ev.key === enumValue.key ? { ...ev, isDefault: checked } : ev, ); updateParameter({ @@ -633,7 +633,7 @@ export function ParameterDetailsDialog() { size="sm" variant="ghost" onClick={() => { - const updatedEnumValues = parameter.enumValues.filter( + const updatedEnumValues = parameter.enumValues?.filter( (ev) => ev.key !== enumValue.key, ); updateParameter({ diff --git a/registry/commandly/tool-editor/dialogs/tool-details-dialog.tsx b/registry/commandly/tool-editor/dialogs/tool-details-dialog.tsx index e3d6ce8..b0d95bb 100644 --- a/registry/commandly/tool-editor/dialogs/tool-details-dialog.tsx +++ b/registry/commandly/tool-editor/dialogs/tool-details-dialog.tsx @@ -101,7 +101,7 @@ export function ToolDetailsDialog() { }, }) } - defaultValue={tool.metadata.supportedInput} + defaultValue={tool.metadata?.supportedInput} placeholder="Select input types" variant="default" maxCount={0} @@ -119,7 +119,7 @@ export function ToolDetailsDialog() { }, }) } - defaultValue={tool.metadata.supportedOutput} + defaultValue={tool.metadata?.supportedOutput} placeholder="Select output types" variant="default" maxCount={0} diff --git a/registry/commandly/tool-editor/help-menu.tsx b/registry/commandly/tool-editor/help-menu.tsx index 19049a3..43665e2 100644 --- a/registry/commandly/tool-editor/help-menu.tsx +++ b/registry/commandly/tool-editor/help-menu.tsx @@ -92,9 +92,7 @@ export function HelpMenu() { const required = arg.isRequired ? "Required: " : ""; preview += `${indent} ${arg.name.padEnd(18)} ${required}${arg.description}\n`; if (arg.dataType === "Enum") { - preview += `${indent} ${" ".repeat(18)} Values: ${arg.enumValues - .map((e) => e.value) - .join(", ")}\n`; + preview += `${indent} ${" ".repeat(18)} Values: ${arg.enumValues?.map((e) => e.value).join(", ")}\n`; } }); } diff --git a/registry/commandly/tool-editor/tool-editor.store.ts b/registry/commandly/tool-editor/tool-editor.store.ts index b085aac..0044de3 100644 --- a/registry/commandly/tool-editor/tool-editor.store.ts +++ b/registry/commandly/tool-editor/tool-editor.store.ts @@ -59,9 +59,11 @@ export const toolBuilderSelectors = { }, getExclusionGroupsForCommand: (state: ToolBuilderState, commandKey: string): ExclusionGroup[] => { - return state.tool.exclusionGroups.filter((group: ExclusionGroup) => { - return group.commandKey === commandKey; - }); + return ( + state.tool.exclusionGroups?.filter((group: ExclusionGroup) => { + return group.commandKey === commandKey; + }) ?? [] + ); }, }; @@ -112,7 +114,7 @@ export const toolBuilderActions = { parameters: state.tool.parameters.filter( (param) => !commandsToDelete.includes(param.commandKey || ""), ), - exclusionGroups: state.tool.exclusionGroups.filter( + exclusionGroups: state.tool.exclusionGroups?.filter( (group) => !commandsToDelete.includes(group.commandKey || ""), ), }, @@ -158,7 +160,7 @@ export const toolBuilderActions = { tool: { ...state.tool, parameters: state.tool.parameters.filter((param) => param.key !== parameterKey), - exclusionGroups: state.tool.exclusionGroups.map((group) => ({ + exclusionGroups: state.tool.exclusionGroups?.map((group) => ({ ...group, parameterKeys: group.parameterKeys.filter((key) => key !== parameterKey), })), @@ -217,7 +219,7 @@ export const toolBuilderActions = { ...state, tool: { ...state.tool, - exclusionGroups: [...state.tool.exclusionGroups, newGroup], + exclusionGroups: [...(state.tool.exclusionGroups ?? []), newGroup], }, }; }); @@ -232,7 +234,7 @@ export const toolBuilderActions = { ...state, tool: { ...state.tool, - exclusionGroups: state.tool.exclusionGroups.map((group) => + exclusionGroups: state.tool.exclusionGroups?.map((group) => group.key === updatedGroup.key ? updatedGroup : group, ), }, @@ -248,7 +250,7 @@ export const toolBuilderActions = { ...state, tool: { ...state.tool, - exclusionGroups: state.tool.exclusionGroups.filter((group) => group.key !== groupKey), + exclusionGroups: state.tool.exclusionGroups?.filter((group) => group.key !== groupKey), }, })); diff --git a/src/components/tool-editor-ui/manual-new-tool.tsx b/src/components/tool-editor-ui/manual-new-tool.tsx index fbcc01d..e20f64f 100644 --- a/src/components/tool-editor-ui/manual-new-tool.tsx +++ b/src/components/tool-editor-ui/manual-new-tool.tsx @@ -9,9 +9,6 @@ export function ManualNewToolComponent({ onSubmit }: { onSubmit: (tool: Tool | n const [manualNewTool, setManualTool] = useState({ name: "", displayName: "", - description: "", - version: "", - url: "", }); useEffect(() => onSubmit(null), [onSubmit]); From 0772ad439a37b9f7c6f0b82cc33d1c26156de67c Mon Sep 17 00:00:00 2001 From: divyeshio <79130336+divyeshio@users.noreply.github.com> Date: Wed, 4 Mar 2026 15:51:45 +0530 Subject: [PATCH 2/3] Add tests for exportToStructuredJSON and convertToNestedStructure functions --- public/specification/flat.json | 14 +-- public/specification/nested.json | 75 ++++++++-------- .../commandly/__tests__/json-output.test.tsx | 85 ++++++++++++++++++- registry/commandly/lib/types/commandly.ts | 14 +-- .../commandly/lib/utils/commandly-nested.ts | 4 +- registry/commandly/lib/utils/commandly.ts | 25 +----- .../dialogs/parameter-details-dialog.tsx | 1 - 7 files changed, 135 insertions(+), 83 deletions(-) diff --git a/public/specification/flat.json b/public/specification/flat.json index 66c62f1..396d59e 100644 --- a/public/specification/flat.json +++ b/public/specification/flat.json @@ -53,10 +53,7 @@ }, "required": [ "key", - "name", - "description", - "isDefault", - "sortOrder" + "name" ], "additionalProperties": false } @@ -168,10 +165,7 @@ "key", "parameterKey", "value", - "displayName", - "description", - "isDefault", - "sortOrder" + "displayName" ], "additionalProperties": false } @@ -252,14 +246,12 @@ "required": [ "key", "name", - "description", "parameterType", "dataType", "isRequired", "isRepeatable", "isGlobal", - "longFlag", - "enumValues" + "longFlag" ], "additionalProperties": false } diff --git a/public/specification/nested.json b/public/specification/nested.json index d418b5d..acb957e 100644 --- a/public/specification/nested.json +++ b/public/specification/nested.json @@ -111,10 +111,7 @@ }, "required": [ "value", - "displayName", - "description", - "isDefault", - "sortOrder" + "displayName" ], "additionalProperties": false } @@ -184,8 +181,7 @@ "isRequired", "isRepeatable", "isGlobal", - "longFlag", - "enumValues" + "longFlag" ], "additionalProperties": false } @@ -197,34 +193,41 @@ } }, "exclusionGroups": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "exclusionType": { - "type": "string", - "enum": [ - "mutual_exclusive", - "required_one_of" - ] - }, - "parameters": { - "type": "array", - "items": { - "type": "string" - } + "anyOf": [ + { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "exclusionType": { + "type": "string", + "enum": [ + "mutual_exclusive", + "required_one_of" + ] + }, + "parameters": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "name", + "exclusionType", + "parameters" + ], + "additionalProperties": false } }, - "required": [ - "name", - "exclusionType", - "parameters" - ], - "additionalProperties": false - } + { + "type": "null" + } + ] }, "metadata": { "type": "object", @@ -350,10 +353,7 @@ }, "required": [ "value", - "displayName", - "description", - "isDefault", - "sortOrder" + "displayName" ], "additionalProperties": false } @@ -423,8 +423,7 @@ "isRequired", "isRepeatable", "isGlobal", - "longFlag", - "enumValues" + "longFlag" ], "additionalProperties": false } diff --git a/registry/commandly/__tests__/json-output.test.tsx b/registry/commandly/__tests__/json-output.test.tsx index 0276e80..ef09b24 100644 --- a/registry/commandly/__tests__/json-output.test.tsx +++ b/registry/commandly/__tests__/json-output.test.tsx @@ -1,7 +1,11 @@ import { JsonOutput } from "../json-output"; -import { defaultTool } from "@/registry/commandly/lib/utils/commandly"; +import { defaultTool, exportToStructuredJSON } from "@/registry/commandly/lib/utils/commandly"; +import { convertToNestedStructure } from "@/registry/commandly/lib/utils/commandly-nested"; import { render, screen } from "@testing-library/react"; import { OnUrlUpdateFunction, withNuqsTestingAdapter } from "nuqs/adapters/testing"; +import type { Tool } from "@/registry/commandly/lib/types/commandly"; + +const toJSON = (value: unknown) => JSON.parse(JSON.stringify(value)); describe("JsonOutput", () => { it("renders output type label", () => { @@ -16,3 +20,82 @@ describe("JsonOutput", () => { expect(screen.getByText(/Output type/)).toBeInTheDocument(); }); }); + +describe("exportToStructuredJSON", () => { + it("omits enumValues, validations, dependencies when empty", () => { + const result = toJSON(exportToStructuredJSON(defaultTool())); + result.parameters.forEach((param: Record) => { + expect(param).not.toHaveProperty("enumValues"); + expect(param).not.toHaveProperty("validations"); + expect(param).not.toHaveProperty("dependencies"); + }); + }); + + it("omits exclusionGroups when empty", () => { + const result = toJSON(exportToStructuredJSON(defaultTool())); + expect(result).not.toHaveProperty("exclusionGroups"); + }); + + it("includes enumValues when non-empty", () => { + const tool = defaultTool(); + tool.parameters[0].enumValues = [ + { key: "ev1", parameterKey: "--help", value: "val", displayName: "Val", description: "", isDefault: true, sortOrder: 0 }, + ]; + const result = exportToStructuredJSON(tool); + expect(result.parameters[0].enumValues).toHaveLength(1); + }); + + it("includes validations when non-empty", () => { + const tool = defaultTool(); + tool.parameters[0].validations = [ + { key: "v1", parameterKey: "--help", validationType: "min_length", validationValue: "3", errorMessage: "Too short" }, + ]; + const result = exportToStructuredJSON(tool); + expect(result.parameters[0].validations).toHaveLength(1); + }); + + it("includes exclusionGroups when non-empty", () => { + const tool = defaultTool(); + tool.exclusionGroups = [ + { key: "eg1", name: "Group 1", exclusionType: "required_one_of", parameterKeys: ["--help"] }, + ]; + const result = exportToStructuredJSON(tool); + expect(result.exclusionGroups).toHaveLength(1); + }); +}); + +describe("convertToNestedStructure", () => { + it("omits validations and dependencies when empty", () => { + const result = toJSON(convertToNestedStructure(defaultTool())); + result.globalParameters.forEach((param: Record) => { + expect(param).not.toHaveProperty("validations"); + expect(param).not.toHaveProperty("dependencies"); + }); + }); + + it("omits exclusionGroups when empty", () => { + const result = toJSON(convertToNestedStructure(defaultTool())); + expect(result).not.toHaveProperty("exclusionGroups"); + }); + + it("includes validations when non-empty", () => { + const tool = defaultTool(); + tool.parameters[0].validations = [ + { key: "v1", parameterKey: "--help", validationType: "min_length", validationValue: "3", errorMessage: "Too short" }, + ]; + const result = convertToNestedStructure(tool); + expect((result.globalParameters[0] as Record).validations).toHaveLength(1); + }); + + it("includes exclusionGroups when non-empty", () => { + const tool: Tool = { + ...defaultTool(), + exclusionGroups: [ + { key: "eg1", name: "Group 1", exclusionType: "mutual_exclusive", parameterKeys: ["--help"] }, + ], + }; + const result = convertToNestedStructure(tool); + expect(result.exclusionGroups).toHaveLength(1); + expect(result.exclusionGroups![0].parameters).toContain("--help"); + }); +}); diff --git a/registry/commandly/lib/types/commandly.ts b/registry/commandly/lib/types/commandly.ts index df3eb62..fd2fd83 100644 --- a/registry/commandly/lib/types/commandly.ts +++ b/registry/commandly/lib/types/commandly.ts @@ -4,9 +4,9 @@ export const CommandSchema = z.object({ key: z.string(), parentCommandKey: z.string().optional(), name: z.string(), - description: z.string(), - isDefault: z.boolean(), - sortOrder: z.number(), + description: z.string().optional(), + isDefault: z.boolean().optional(), + sortOrder: z.number().optional(), }); export type Command = z.infer; @@ -15,9 +15,9 @@ export const ParameterEnumValueSchema = z.object({ parameterKey: z.string(), value: z.string(), displayName: z.string(), - description: z.string(), - isDefault: z.boolean(), - sortOrder: z.number(), + description: z.string().optional(), + isDefault: z.boolean().optional(), + sortOrder: z.number().optional(), }); export type ParameterEnumValue = z.infer; @@ -66,7 +66,7 @@ export const ParameterSchema = z.object({ key: z.string(), name: z.string(), commandKey: z.string().optional(), - description: z.string(), + description: z.string().optional(), metadata: ParameterMetadataSchema.optional(), parameterType: ParameterTypeSchema, dataType: ParameterDataTypeSchema, diff --git a/registry/commandly/lib/utils/commandly-nested.ts b/registry/commandly/lib/utils/commandly-nested.ts index 4025734..bbd55da 100644 --- a/registry/commandly/lib/utils/commandly-nested.ts +++ b/registry/commandly/lib/utils/commandly-nested.ts @@ -20,7 +20,7 @@ export const convertToNestedStructure = (tool: Tool): NestedTool => { validationValue: v.validationValue, errorMessage: v.errorMessage, }; - }) || [], + }), metadata: param.metadata, dataType: param.dataType, dependencies: @@ -31,7 +31,7 @@ export const convertToNestedStructure = (tool: Tool): NestedTool => { dependencyType: dep.dependencyType, conditionValue: dep.conditionValue, }; - }) || [], + }), }; }; diff --git a/registry/commandly/lib/utils/commandly.ts b/registry/commandly/lib/utils/commandly.ts index ecd1414..ce4756c 100644 --- a/registry/commandly/lib/utils/commandly.ts +++ b/registry/commandly/lib/utils/commandly.ts @@ -7,7 +7,7 @@ import type { } from "@/registry/commandly/lib/types/commandly"; export const buildCommandHierarchy = (commands: Command[]): Command[] => { - return commands.sort((a, b) => a.sortOrder - b.sortOrder); + return commands.sort((a, b) => (a.sortOrder ?? commands.indexOf(a)) - (b.sortOrder ?? commands.indexOf(b))); }; export const slugify = (text: string): string => { @@ -98,7 +98,6 @@ export const flattenImportedData = (importedData: Record): Tool const { name, displayName, - parameters = [], commands = [], exclusionGroups = [], metadata = { @@ -114,7 +113,7 @@ export const flattenImportedData = (importedData: Record): Tool metadata?: Tool["metadata"]; }; - const allParameters: Parameter[] = [...parameters]; + const allParameters: Parameter[] = []; const flattenCommandParameters = ( command: Record, @@ -172,8 +171,6 @@ export const defaultTool = (toolName?: string, displayName?: string): Tool => { return { name: finalToolName, displayName: displayName || "My Tool", - description: undefined, - version: "", commands: [ { key: slugify(finalToolName), @@ -195,16 +192,8 @@ export const defaultTool = (toolName?: string, displayName?: string): Tool => { shortFlag: "-h", longFlag: "--help", isRepeatable: false, - enumValues: [], - validations: [], - dependencies: [], }, ], - exclusionGroups: [], - metadata: { - supportedInput: ["StandardInput"], - supportedOutput: ["StandardOutput"], - }, }; }; @@ -287,7 +276,6 @@ export const createNewCommand = (parentKey?: string): Command => { key: slugify(name), parentCommandKey: parentKey, name, - description: "", isDefault: false, sortOrder: 1, }; @@ -298,21 +286,12 @@ export const createNewParameter = (isGlobal: boolean, commandKey?: string): Para key: "", name: "", commandKey: isGlobal ? undefined : commandKey, - description: "", parameterType: "Option", dataType: "String", isRequired: false, isRepeatable: false, isGlobal, - defaultValue: "", - shortFlag: "", longFlag: "", - sortOrder: 0, - arraySeparator: ",", - keyValueSeparator: " ", - enumValues: [], - validations: [], - dependencies: [], }; }; diff --git a/registry/commandly/tool-editor/dialogs/parameter-details-dialog.tsx b/registry/commandly/tool-editor/dialogs/parameter-details-dialog.tsx index 758bd47..f4500bd 100644 --- a/registry/commandly/tool-editor/dialogs/parameter-details-dialog.tsx +++ b/registry/commandly/tool-editor/dialogs/parameter-details-dialog.tsx @@ -174,7 +174,6 @@ export function ParameterDetailsDialog() { parameterKey: parameter.key, value, displayName: "New Value", - description: "", isDefault: false, sortOrder: 0, }; From 5f1dfdbc7cc633b229472cbbe948fc71403f69c3 Mon Sep 17 00:00:00 2001 From: divyeshio <79130336+divyeshio@users.noreply.github.com> Date: Wed, 4 Mar 2026 16:01:15 +0530 Subject: [PATCH 3/3] Refactor tests and utility functions for improved readability and maintainability --- .../commandly/__tests__/json-output.test.tsx | 35 ++++++++++++++++--- .../commandly/lib/utils/commandly-nested.ts | 32 ++++++++--------- registry/commandly/lib/utils/commandly.ts | 4 ++- registry/commandly/runtime-preview.tsx | 2 +- 4 files changed, 49 insertions(+), 24 deletions(-) diff --git a/registry/commandly/__tests__/json-output.test.tsx b/registry/commandly/__tests__/json-output.test.tsx index ef09b24..26d0bb8 100644 --- a/registry/commandly/__tests__/json-output.test.tsx +++ b/registry/commandly/__tests__/json-output.test.tsx @@ -1,9 +1,9 @@ import { JsonOutput } from "../json-output"; +import type { Tool } from "@/registry/commandly/lib/types/commandly"; import { defaultTool, exportToStructuredJSON } from "@/registry/commandly/lib/utils/commandly"; import { convertToNestedStructure } from "@/registry/commandly/lib/utils/commandly-nested"; import { render, screen } from "@testing-library/react"; import { OnUrlUpdateFunction, withNuqsTestingAdapter } from "nuqs/adapters/testing"; -import type { Tool } from "@/registry/commandly/lib/types/commandly"; const toJSON = (value: unknown) => JSON.parse(JSON.stringify(value)); @@ -39,7 +39,15 @@ describe("exportToStructuredJSON", () => { it("includes enumValues when non-empty", () => { const tool = defaultTool(); tool.parameters[0].enumValues = [ - { key: "ev1", parameterKey: "--help", value: "val", displayName: "Val", description: "", isDefault: true, sortOrder: 0 }, + { + key: "ev1", + parameterKey: "--help", + value: "val", + displayName: "Val", + description: "", + isDefault: true, + sortOrder: 0, + }, ]; const result = exportToStructuredJSON(tool); expect(result.parameters[0].enumValues).toHaveLength(1); @@ -48,7 +56,13 @@ describe("exportToStructuredJSON", () => { it("includes validations when non-empty", () => { const tool = defaultTool(); tool.parameters[0].validations = [ - { key: "v1", parameterKey: "--help", validationType: "min_length", validationValue: "3", errorMessage: "Too short" }, + { + key: "v1", + parameterKey: "--help", + validationType: "min_length", + validationValue: "3", + errorMessage: "Too short", + }, ]; const result = exportToStructuredJSON(tool); expect(result.parameters[0].validations).toHaveLength(1); @@ -81,7 +95,13 @@ describe("convertToNestedStructure", () => { it("includes validations when non-empty", () => { const tool = defaultTool(); tool.parameters[0].validations = [ - { key: "v1", parameterKey: "--help", validationType: "min_length", validationValue: "3", errorMessage: "Too short" }, + { + key: "v1", + parameterKey: "--help", + validationType: "min_length", + validationValue: "3", + errorMessage: "Too short", + }, ]; const result = convertToNestedStructure(tool); expect((result.globalParameters[0] as Record).validations).toHaveLength(1); @@ -91,7 +111,12 @@ describe("convertToNestedStructure", () => { const tool: Tool = { ...defaultTool(), exclusionGroups: [ - { key: "eg1", name: "Group 1", exclusionType: "mutual_exclusive", parameterKeys: ["--help"] }, + { + key: "eg1", + name: "Group 1", + exclusionType: "mutual_exclusive", + parameterKeys: ["--help"], + }, ], }; const result = convertToNestedStructure(tool); diff --git a/registry/commandly/lib/utils/commandly-nested.ts b/registry/commandly/lib/utils/commandly-nested.ts index bbd55da..29ac31c 100644 --- a/registry/commandly/lib/utils/commandly-nested.ts +++ b/registry/commandly/lib/utils/commandly-nested.ts @@ -13,25 +13,23 @@ export const convertToNestedStructure = (tool: Tool): NestedTool => { const { ...rest } = param; return { ...rest, - validations: - param.validations?.map((v) => { - return { - validationType: v.validationType, - validationValue: v.validationValue, - errorMessage: v.errorMessage, - }; - }), + validations: param.validations?.map((v) => { + return { + validationType: v.validationType, + validationValue: v.validationValue, + errorMessage: v.errorMessage, + }; + }), metadata: param.metadata, dataType: param.dataType, - dependencies: - param.dependencies?.map((dep) => { - const dependsOnParam = tool.parameters.find((p) => p.key === dep.dependsOnParameterKey); - return { - dependsOnParameter: dependsOnParam?.longFlag || "", - dependencyType: dep.dependencyType, - conditionValue: dep.conditionValue, - }; - }), + dependencies: param.dependencies?.map((dep) => { + const dependsOnParam = tool.parameters.find((p) => p.key === dep.dependsOnParameterKey); + return { + dependsOnParameter: dependsOnParam?.longFlag || "", + dependencyType: dep.dependencyType, + conditionValue: dep.conditionValue, + }; + }), }; }; diff --git a/registry/commandly/lib/utils/commandly.ts b/registry/commandly/lib/utils/commandly.ts index ce4756c..93bf1fe 100644 --- a/registry/commandly/lib/utils/commandly.ts +++ b/registry/commandly/lib/utils/commandly.ts @@ -7,7 +7,9 @@ import type { } from "@/registry/commandly/lib/types/commandly"; export const buildCommandHierarchy = (commands: Command[]): Command[] => { - return commands.sort((a, b) => (a.sortOrder ?? commands.indexOf(a)) - (b.sortOrder ?? commands.indexOf(b))); + return commands.sort( + (a, b) => (a.sortOrder ?? commands.indexOf(a)) - (b.sortOrder ?? commands.indexOf(b)), + ); }; export const slugify = (text: string): string => { diff --git a/registry/commandly/runtime-preview.tsx b/registry/commandly/runtime-preview.tsx index 9434d41..0a22519 100644 --- a/registry/commandly/runtime-preview.tsx +++ b/registry/commandly/runtime-preview.tsx @@ -33,7 +33,7 @@ interface ParameterLabelProps { shortFlag?: string; isRequired?: boolean; isGlobal?: boolean; - description: string; + description?: string; className?: string; children?: React.ReactNode; }