Skip to content

Commit

Permalink
pre pub
Browse files Browse the repository at this point in the history
  • Loading branch information
bn-l committed Apr 3, 2024
1 parent ac597d7 commit a9596d2
Show file tree
Hide file tree
Showing 10 changed files with 83 additions and 83 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ See an Asciinema video of usage (including with [fzf](https://github.com/junegun
left to right). A trailing slash means a whole folder.
Options:
-l, --list List files. Useful as a dry run and with fzf. Does not
download. Will show show conflicts for the current
working directory if -d / --dest is not specified.
download. Will show show conflicts for the current
working directory if -d / --dest is not specified.
-c, --conflicts-only Only show conflicts when listing.
-d, --dest <folder> Destination folder. Defaults to the current directory.
-i, --case-insensitive Ignores case when checking for conflicts. Default is
case-sensitive--i.e. casing matters.
case-sensitive--i.e. casing matters.
-k, --keep-if <condition> "newer" | "existing". Will keep conflicting files
if they exist or are newer. WARNING: The
default is to overwrite existing silently.
if they exist or are newer. WARNING: The
default is to overwrite existing silently.
-q, --quiet No success or error messages.
--colors Use ansi escape characters to color output.
Default true but respects the NO_COLOR env var if set.
Default true but respects the NO_COLOR env var if set.
Download Examples:
Entire repo ghe facebook/react
Expand Down
26 changes: 10 additions & 16 deletions coverage/lcov-report/cli.mts.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h1><a href="index.html">All files</a> cli.mts</h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>134/134</span>
<span class='fraction'>132/132</span>
</div>


Expand All @@ -46,7 +46,7 @@ <h1><a href="index.html">All files</a> cli.mts</h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>134/134</span>
<span class='fraction'>132/132</span>
</div>


Expand Down Expand Up @@ -195,11 +195,7 @@ <h1><a href="index.html">All files</a> cli.mts</h1>
<a name='L130'></a><a href='#L130'>130</a>
<a name='L131'></a><a href='#L131'>131</a>
<a name='L132'></a><a href='#L132'>132</a>
<a name='L133'></a><a href='#L133'>133</a>
<a name='L134'></a><a href='#L134'>134</a>
<a name='L135'></a><a href='#L135'>135</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<a name='L133'></a><a href='#L133'>133</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
Expand Down Expand Up @@ -332,8 +328,6 @@ <h1><a href="index.html">All files</a> cli.mts</h1>
<span class="cline-any cline-yes">20x</span>
<span class="cline-any cline-yes">20x</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&nbsp;
import config from "../getConfig.mjs";
&nbsp;
import chalk from "chalk";
import meow from "meow";
&nbsp;
Expand Down Expand Up @@ -379,18 +373,18 @@ <h1><a href="index.html">All files</a> cli.mts</h1>
left to right). A trailing slash means a whole folder.
${ c.strong("Options:") }
-l, --list List files. Useful as a dry run and with fzf. Does not
download. Will show show conflicts for the current
working directory if -d / --dest is not specified.
download. Will show show conflicts for the current
working directory if -d / --dest is not specified.
-c, --conflicts-only Only show conflicts when listing.
-d, --dest &lt;folder&gt; Destination folder. Defaults to the current directory.
-i, --case-insensitive Ignores case when checking for conflicts. Default is
case-sensitive--i.e. casing matters.
case-sensitive--i.e. casing matters.
-k, --keep-if &lt;condition&gt; "newer" | "existing". Will keep conflicting files
if they exist or are newer. ${ c.careful("WARNING:") } The
default is to overwrite existing silently.
if they exist or are newer. ${ c.careful("WARNING:") } The
default is to overwrite existing silently.
-q, --quiet No success or error messages.
--colors Use ansi escape characters to color output.
Default true but respects the NO_COLOR env var if set.
Default true but respects the NO_COLOR env var if set.
&nbsp;
${ c.strong("Download Examples:") }
Entire repo ${ c.binColor(name) + " facebook/react" }
Expand Down Expand Up @@ -472,7 +466,7 @@ <h1><a href="index.html">All files</a> cli.mts</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-04-03T17:08:49.573Z
at 2024-04-03T17:20:45.939Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
10 changes: 5 additions & 5 deletions coverage/lcov-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h1>All files</h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>297/297</span>
<span class='fraction'>295/295</span>
</div>


Expand All @@ -46,7 +46,7 @@ <h1>All files</h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>297/297</span>
<span class='fraction'>295/295</span>
</div>


Expand Down Expand Up @@ -84,13 +84,13 @@ <h1>All files</h1>
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="134" class="abs high">134/134</td>
<td data-value="132" class="abs high">132/132</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="18" class="abs high">18/18</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="11" class="abs high">11/11</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="134" class="abs high">134/134</td>
<td data-value="132" class="abs high">132/132</td>
</tr>

<tr>
Expand All @@ -116,7 +116,7 @@ <h1>All files</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-04-03T17:08:49.573Z
at 2024-04-03T17:20:45.939Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/main.mts.html
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ <h1><a href="index.html">All files</a> main.mts</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-04-03T17:08:49.573Z
at 2024-04-03T17:20:45.939Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
84 changes: 41 additions & 43 deletions coverage/lcov.info
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
TN:
SF:source\cli.mts
FN:8,noColor
FN:12,colorize
FN:15,error
FN:16,warning
FN:17,success
FN:18,info
FN:19,strong
FN:20,careful
FN:21,example
FN:22,binColor
FN:77,getCli
FN:6,noColor
FN:10,colorize
FN:13,error
FN:14,warning
FN:15,success
FN:16,info
FN:17,strong
FN:18,careful
FN:19,example
FN:20,binColor
FN:75,getCli
FNF:11
FNH:11
FNDA:21,noColor
Expand All @@ -34,10 +34,10 @@ DA:7,1
DA:8,1
DA:9,1
DA:10,1
DA:11,1
DA:12,1
DA:13,78
DA:14,78
DA:11,78
DA:12,78
DA:13,1
DA:14,1
DA:15,1
DA:16,1
DA:17,1
Expand Down Expand Up @@ -99,8 +99,8 @@ DA:72,1
DA:73,1
DA:74,1
DA:75,1
DA:76,1
DA:77,1
DA:76,21
DA:77,21
DA:78,21
DA:79,21
DA:80,21
Expand Down Expand Up @@ -151,33 +151,31 @@ DA:124,21
DA:125,21
DA:126,21
DA:127,21
DA:128,21
DA:129,21
DA:128,1
DA:129,1
DA:130,1
DA:131,1
DA:132,1
DA:133,20
DA:134,20
LF:134
LH:134
BRDA:8,0,0,21
BRDA:8,1,0,6
BRDA:12,2,0,78
BRDA:13,3,0,70
BRDA:13,4,0,8
BRDA:15,5,0,2
BRDA:16,6,0,3
BRDA:17,7,0,3
BRDA:18,8,0,2
BRDA:19,9,0,26
BRDA:20,10,0,6
BRDA:21,11,0,2
BRDA:22,12,0,34
BRDA:28,13,0,4
BRDA:77,14,0,21
BRDA:126,15,0,6
BRDA:129,16,0,1
BRDA:132,17,0,20
DA:131,20
DA:132,20
LF:132
LH:132
BRDA:6,0,0,21
BRDA:6,1,0,6
BRDA:10,2,0,78
BRDA:11,3,0,70
BRDA:11,4,0,8
BRDA:13,5,0,2
BRDA:14,6,0,3
BRDA:15,7,0,3
BRDA:16,8,0,2
BRDA:17,9,0,26
BRDA:18,10,0,6
BRDA:19,11,0,2
BRDA:20,12,0,34
BRDA:26,13,0,4
BRDA:75,14,0,21
BRDA:124,15,0,6
BRDA:127,16,0,1
BRDA:130,17,0,20
BRF:18
BRH:18
end_of_record
Expand Down
8 changes: 4 additions & 4 deletions media/coverage-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vitest/coverage-v8": "^1.4.0",
"badgen": "^3.2.3",
"c8": "^9.1.0",
"esbuild": "^0.20.2",
"eslint": "^8.57.0",
Expand Down
4 changes: 2 additions & 2 deletions scripts/coverage-badge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ const svg = badgen({
color,
});

fs.mkdirSync("./docs/images/", { recursive: true });
fs.mkdirSync("./media/", { recursive: true });

fs.writeFileSync("./docs/images/coverage-badge.svg", svg);
fs.writeFileSync("./media/coverage-badge.svg", svg);

fs.rmSync(summaryPath);
12 changes: 6 additions & 6 deletions source/cli.mts
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,18 @@ export const helpText = `
left to right). A trailing slash means a whole folder.
${ c.strong("Options:") }
-l, --list List files. Useful as a dry run and with fzf. Does not
download. Will show show conflicts for the current
working directory if -d / --dest is not specified.
download. Will show show conflicts for the current
working directory if -d / --dest is not specified.
-c, --conflicts-only Only show conflicts when listing.
-d, --dest <folder> Destination folder. Defaults to the current directory.
-i, --case-insensitive Ignores case when checking for conflicts. Default is
case-sensitive--i.e. casing matters.
case-sensitive--i.e. casing matters.
-k, --keep-if <condition> "newer" | "existing". Will keep conflicting files
if they exist or are newer. ${ c.careful("WARNING:") } The
default is to overwrite existing silently.
if they exist or are newer. ${ c.careful("WARNING:") } The
default is to overwrite existing silently.
-q, --quiet No success or error messages.
--colors Use ansi escape characters to color output.
Default true but respects the NO_COLOR env var if set.
Default true but respects the NO_COLOR env var if set.
${ c.strong("Download Examples:") }
Entire repo ${ c.binColor(name) + " facebook/react" }
Expand Down

0 comments on commit a9596d2

Please sign in to comment.