mirror of
https://github.com/withastro/astro.git
synced 2025-01-23 11:01:54 -05:00
[ci] format
This commit is contained in:
parent
06eff60cab
commit
2d016d4aba
1 changed files with 4 additions and 4 deletions
|
@ -55,7 +55,7 @@ export async function printInfo({ flags }: InfoOptions) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function copyToClipboard(text: string) {
|
async function copyToClipboard(text: string) {
|
||||||
text = text.trim()
|
text = text.trim();
|
||||||
const system = platform();
|
const system = platform();
|
||||||
let command = '';
|
let command = '';
|
||||||
if (system === 'darwin') {
|
if (system === 'darwin') {
|
||||||
|
@ -66,8 +66,8 @@ async function copyToClipboard(text: string) {
|
||||||
// Unix: check if a supported command is installed
|
// Unix: check if a supported command is installed
|
||||||
const unixCommands = [
|
const unixCommands = [
|
||||||
['xclip', '-sel clipboard -l 1'],
|
['xclip', '-sel clipboard -l 1'],
|
||||||
['wl-copy', '"$0"']
|
['wl-copy', '"$0"'],
|
||||||
]
|
];
|
||||||
for (const [unixCommand, args] of unixCommands) {
|
for (const [unixCommand, args] of unixCommands) {
|
||||||
try {
|
try {
|
||||||
const output = execSync(`which ${unixCommand}`, { encoding: 'utf8', stdio: 'pipe' });
|
const output = execSync(`which ${unixCommand}`, { encoding: 'utf8', stdio: 'pipe' });
|
||||||
|
|
Loading…
Add table
Reference in a new issue