Skip to content

Commit 122f4de

Browse files
authoredFeb 13, 2020
Allow patterns to match entries that begin with a period (.) (#20)
1 parent af00c3b commit 122f4de

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
 

‎cli.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const cli = meow(`
1212
--parents Preserve path structure
1313
--cwd=<dir> Working directory for files
1414
--rename=<filename> Rename all <source> filenames to <filename>
15+
--dot Allow patterns to match entries that begin with a period (.)
1516
1617
<source> can contain globs if quoted
1718
@@ -37,6 +38,10 @@ const cli = meow(`
3738
},
3839
rename: {
3940
type: 'string'
41+
},
42+
dot: {
43+
type: 'boolean',
44+
default: false
4045
}
4146
}
4247
});
@@ -47,7 +52,8 @@ const cli = meow(`
4752
cwd: cli.flags.cwd,
4853
rename: cli.flags.rename,
4954
parents: cli.flags.parents,
50-
overwrite: cli.flags.overwrite
55+
overwrite: cli.flags.overwrite,
56+
dot: cli.flags.dot
5157
});
5258
} catch (error) {
5359
if (error.name === 'CpyError') {

‎readme.md

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ $ cpy --help
2828
--parents Preserve path structure
2929
--cwd=<dir> Working directory for files
3030
--rename=<filename> Rename all <source> filenames to <filename>
31+
--dot Allow patterns to match entries that begin with a period (.)
3132
3233
<source> can contain globs if quoted
3334

0 commit comments

Comments
 (0)
Please sign in to comment.