Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32159380
get-clang-paths-cli.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
546 B
Referenced Files
None
Subscribers
None
get-clang-paths-cli.js
View Options
/* eslint-disable flowtype/require-valid-file-annotation */
const
{
clangPaths
}
=
require
(
'./get-clang-paths.js'
);
(()
=>
{
let
command
=
'('
;
clangPaths
.
forEach
(
pathItem
=>
{
const
{
path
,
extensions
,
excludes
}
=
pathItem
;
command
+=
`find
${
path
}
`
;
command
+=
extensions
.
map
(
extension
=>
`-name '*.
${
extension
}
' `
)
.
join
(
'-o '
);
if
(
excludes
)
{
command
+=
`| grep -v '
${
excludes
.
map
(
exclude
=>
exclude
).
join
(
'\\|'
)
}
'`
;
}
command
+=
'; '
;
});
command
+=
')'
;
console
.
log
(
command
);
})();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 7, 4:30 PM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5435935
Default Alt Text
get-clang-paths-cli.js (546 B)
Attached To
Mode
rCOMM Comm
Attached
Detach File
Event Timeline
Log In to Comment