Skip to content

Commit 2ec3867

Browse files
fix: using clipboardy
1 parent d77414d commit 2ec3867

File tree

3 files changed

+36
-32
lines changed

3 files changed

+36
-32
lines changed

bin/land.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const childProcess = require('child_process');
66
const https = require('https');
77
const path = require('path');
88
const util = require('util');
9+
const clipboardy = require('clipboardy');
910

1011
const arg = process.argv.slice(2);
1112
const landedBranch = arg[0];
@@ -192,3 +193,8 @@ async function isLandedBranch() {
192193
onLandedBranch();
193194
}
194195
}
196+
197+
(async () => {
198+
clipboardy.write(`Landed in ${await lastCommitHash()}`);
199+
clipboardy.read().then(console.log);
200+
})();

package-lock.json

Lines changed: 27 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,8 @@
4242
"remark-cli": "^6.0.1",
4343
"remark-preset-lint-metarhia": "^1.0.4",
4444
"remark-validate-links": "^8.0.0"
45+
},
46+
"dependencies": {
47+
"clipboardy": "^2.1.0"
4548
}
4649
}

0 commit comments

Comments
 (0)