Skip to content

Commit a2722bf

Browse files
committed
Move this to brewkit
1 parent 1308d16 commit a2722bf

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/hooks/useMoustaches.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,6 @@ function tokenizeVersion(version: SemVer, prefix = 'version') {
2525
return rv
2626
}
2727

28-
//TODO replace `hw` with `host`
29-
function tokenizeHost() {
30-
const { arch, target, platform } = host()
31-
return [
32-
{ from: "hw.arch", to: arch },
33-
{ from: "hw.target", to: target },
34-
{ from: "hw.platform", to: platform },
35-
{ from: "hw.concurrency", to: os.cpus().length.toString() }
36-
]
37-
}
38-
3928
function apply(input: string, map: { from: string, to: string }[]) {
4029
return map.reduce((acc, {from, to}) =>
4130
acc.replace(new RegExp(`(^\\$)?{{\\s*${from}\\s*}}`, "g"), to),
@@ -48,7 +37,6 @@ export default function() {
4837
apply,
4938
tokenize: {
5039
version: tokenizeVersion,
51-
host: tokenizeHost,
5240
pkg: tokenizePackage
5341
}
5442
}
@@ -69,7 +57,6 @@ export default function() {
6957
...tokenizePackage(pkg),
7058
...pkgx(),
7159
...base.tokenize.version(pkg.version),
72-
...base.tokenize.host(),
7360
]
7461

7562
return {

0 commit comments

Comments
 (0)