From 2727b840d0d62d2674404f7a33104830db23f728 Mon Sep 17 00:00:00 2001 From: bn-l Date: Thu, 4 Apr 2024 04:50:01 +1100 Subject: [PATCH] test bug fix --- README.md | 8 ++++---- coverage/lcov-report/cli.mts.html | 23 +++++++++++++---------- coverage/lcov-report/index.html | 10 +++++----- coverage/lcov-report/main.mts.html | 2 +- coverage/lcov.info | 21 +++++++++++---------- source/cli.mts | 13 +++++++------ test/cli.unit.test.mts | 11 +++++------ 7 files changed, 46 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index c97f8f3..d52720b 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ ghe -h ### paths One or more paths to download. Can be a whole -repo, a folder or a file. Supports globs. +repo, a folder or a file. Supports globs but the path should be quoted. To exclude use a negative glob ("!" at the beginning). Can mix paths from different repos (conflicts resolved left to right). A trailing slash means a whole folder. @@ -85,7 +85,7 @@ ghe facebook/react ``` Specific folder: ```bash -ghe facebook/react/packages/* +ghe "facebook/react/packages/*" ``` Specify destination: ```bash @@ -109,9 +109,9 @@ ghe -lc -d local/dest facebook/react ``` Specific folder ```bash -ghe -l facebook/react/.circleci/* +ghe -l "facebook/react/.circleci/*" ``` - \ No newline at end of file + diff --git a/coverage/lcov-report/cli.mts.html b/coverage/lcov-report/cli.mts.html index a18c85c..74e7f05 100644 --- a/coverage/lcov-report/cli.mts.html +++ b/coverage/lcov-report/cli.mts.html @@ -25,7 +25,7 @@

All files cli.mts

100% Statements - 132/132 + 133/133
@@ -46,7 +46,7 @@

All files cli.mts

100% Lines - 132/132 + 133/133
@@ -195,7 +195,8 @@

All files cli.mts

130 131 132 -1331x +133 +1341x 1x 1x 1x @@ -270,6 +271,7 @@

All files cli.mts

1x 1x 1x +1x 21x 21x 21x @@ -367,10 +369,11 @@

All files cli.mts

  ${ c.strong("Arguments:") } paths One or more paths to download. Can be a whole - repo, a folder or a file. ${ c.strong("Supports globs") }. - To exclude use a negative glob ("!" at the beginning). - Can mix paths from different repos (conflicts resolved - left to right). A trailing slash means a whole folder. + repo, a folder or a file. ${ c.strong("Supports globs") } + but the path should be quoted. To exclude use a negative + glob ("!" at the beginning). Can mix paths from different + repos (conflicts resolved 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 @@ -388,14 +391,14 @@

All files cli.mts

  ${ c.strong("Download Examples:") } Entire repo ${ c.binColor(name) + " facebook/react" } - Specific folder ${ c.binColor(name) + " facebook/react/packages/*" } + Specific folder ${ c.binColor(name) + " \"facebook/react/packages/*\"" } Specify destination ${ c.binColor(name) + " -d local/dest facebook/react" } Specific files ${ c.binColor(name) + " facebook/react/.circleci/config.yml facebook/react/.github/stale.yml" } Different repos mixed ${ c.binColor(name) + " facebook/react micromatch/picomatch" }   ${ c.strong("List Examples:") } Only conflicts ${ c.binColor(name) + " -lc -d local/dest facebook/react" } - Specific folder ${ c.binColor(name) + " -l facebook/react/.circleci/*" } + Specific folder ${ c.binColor(name) + " -l \"facebook/react/.circleci/*\"" }   For a video demo of usage see: ${ c.strong(docsUrl) } `; @@ -466,7 +469,7 @@

All files cli.mts