-
-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
e30f132
commit 3e56745
Showing
11 changed files
with
293 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@effect/cli": patch | ||
--- | ||
|
||
Fix CLI help output to correctly display default values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
packages/cli/test/snapshots/help-output/args-default-object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"_tag": "DescriptionList", | ||
"definitions": [ | ||
[ | ||
{ | ||
"_tag": "Weak", | ||
"value": { | ||
"_tag": "Text", | ||
"value": "<config>", | ||
}, | ||
}, | ||
{ | ||
"_tag": "Sequence", | ||
"left": { | ||
"_tag": "Paragraph", | ||
"value": { | ||
"_tag": "Text", | ||
"value": "A user-defined piece of text.", | ||
}, | ||
}, | ||
"right": { | ||
"_tag": "Paragraph", | ||
"value": { | ||
"_tag": "Text", | ||
"value": "This setting is optional. Defaults to: {"key":"value","number":456}", | ||
}, | ||
}, | ||
}, | ||
], | ||
], | ||
} |
31 changes: 31 additions & 0 deletions
31
packages/cli/test/snapshots/help-output/args-default-primitive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"_tag": "DescriptionList", | ||
"definitions": [ | ||
[ | ||
{ | ||
"_tag": "Weak", | ||
"value": { | ||
"_tag": "Text", | ||
"value": "<value>", | ||
}, | ||
}, | ||
{ | ||
"_tag": "Sequence", | ||
"left": { | ||
"_tag": "Paragraph", | ||
"value": { | ||
"_tag": "Text", | ||
"value": "An integer.", | ||
}, | ||
}, | ||
"right": { | ||
"_tag": "Paragraph", | ||
"value": { | ||
"_tag": "Text", | ||
"value": "This setting is optional. Defaults to: 123", | ||
}, | ||
}, | ||
}, | ||
], | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"_tag": "DescriptionList", | ||
"definitions": [ | ||
[ | ||
{ | ||
"_tag": "Weak", | ||
"value": { | ||
"_tag": "Text", | ||
"value": "<name>", | ||
}, | ||
}, | ||
{ | ||
"_tag": "Sequence", | ||
"left": { | ||
"_tag": "Paragraph", | ||
"value": { | ||
"_tag": "Text", | ||
"value": "A user-defined piece of text.", | ||
}, | ||
}, | ||
"right": { | ||
"_tag": "Paragraph", | ||
"value": { | ||
"_tag": "Text", | ||
"value": "This setting is optional.", | ||
}, | ||
}, | ||
}, | ||
], | ||
], | ||
} |
42 changes: 42 additions & 0 deletions
42
packages/cli/test/snapshots/help-output/options-default-object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"_tag": "DescriptionList", | ||
"definitions": [ | ||
[ | ||
{ | ||
"_tag": "Sequence", | ||
"left": { | ||
"_tag": "Text", | ||
"value": "--config", | ||
}, | ||
"right": { | ||
"_tag": "Sequence", | ||
"left": { | ||
"_tag": "Text", | ||
"value": " ", | ||
}, | ||
"right": { | ||
"_tag": "Text", | ||
"value": "text", | ||
}, | ||
}, | ||
}, | ||
{ | ||
"_tag": "Sequence", | ||
"left": { | ||
"_tag": "Paragraph", | ||
"value": { | ||
"_tag": "Text", | ||
"value": "A user-defined piece of text.", | ||
}, | ||
}, | ||
"right": { | ||
"_tag": "Paragraph", | ||
"value": { | ||
"_tag": "Text", | ||
"value": "This setting is optional. Defaults to: {"key":"value","number":456}", | ||
}, | ||
}, | ||
}, | ||
], | ||
], | ||
} |
42 changes: 42 additions & 0 deletions
42
packages/cli/test/snapshots/help-output/options-default-primitive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"_tag": "DescriptionList", | ||
"definitions": [ | ||
[ | ||
{ | ||
"_tag": "Sequence", | ||
"left": { | ||
"_tag": "Text", | ||
"value": "--value", | ||
}, | ||
"right": { | ||
"_tag": "Sequence", | ||
"left": { | ||
"_tag": "Text", | ||
"value": " ", | ||
}, | ||
"right": { | ||
"_tag": "Text", | ||
"value": "integer", | ||
}, | ||
}, | ||
}, | ||
{ | ||
"_tag": "Sequence", | ||
"left": { | ||
"_tag": "Paragraph", | ||
"value": { | ||
"_tag": "Text", | ||
"value": "An integer.", | ||
}, | ||
}, | ||
"right": { | ||
"_tag": "Paragraph", | ||
"value": { | ||
"_tag": "Text", | ||
"value": "This setting is optional. Defaults to: 123", | ||
}, | ||
}, | ||
}, | ||
], | ||
], | ||
} |
42 changes: 42 additions & 0 deletions
42
packages/cli/test/snapshots/help-output/options-no-default
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"_tag": "DescriptionList", | ||
"definitions": [ | ||
[ | ||
{ | ||
"_tag": "Sequence", | ||
"left": { | ||
"_tag": "Text", | ||
"value": "--name", | ||
}, | ||
"right": { | ||
"_tag": "Sequence", | ||
"left": { | ||
"_tag": "Text", | ||
"value": " ", | ||
}, | ||
"right": { | ||
"_tag": "Text", | ||
"value": "text", | ||
}, | ||
}, | ||
}, | ||
{ | ||
"_tag": "Sequence", | ||
"left": { | ||
"_tag": "Paragraph", | ||
"value": { | ||
"_tag": "Text", | ||
"value": "A user-defined piece of text.", | ||
}, | ||
}, | ||
"right": { | ||
"_tag": "Paragraph", | ||
"value": { | ||
"_tag": "Text", | ||
"value": "This setting is optional.", | ||
}, | ||
}, | ||
}, | ||
], | ||
], | ||
} |