centy 0.7.9 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/run.js +0 -24
- package/oclif.manifest.json +64 -64
- package/package.json +1 -1
package/bin/run.js
CHANGED
|
@@ -2,30 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { execute } from '@oclif/core'
|
|
4
4
|
|
|
5
|
-
// Bun optimization: re-exec with Bun if available (but not already running under Bun)
|
|
6
|
-
if (typeof Bun === 'undefined') {
|
|
7
|
-
const { execSync, spawnSync } = await import('child_process')
|
|
8
|
-
try {
|
|
9
|
-
// Check if bun is installed (5s timeout to avoid hanging)
|
|
10
|
-
execSync('bun --version', { stdio: 'ignore', timeout: 5000 })
|
|
11
|
-
// Re-exec with bun and exit with its exit code
|
|
12
|
-
const result = spawnSync(
|
|
13
|
-
'bun',
|
|
14
|
-
[import.meta.filename, ...process.argv.slice(2)],
|
|
15
|
-
{
|
|
16
|
-
stdio: 'inherit',
|
|
17
|
-
}
|
|
18
|
-
)
|
|
19
|
-
process.exit(
|
|
20
|
-
result.status !== null && result.status !== undefined ? result.status : 0
|
|
21
|
-
)
|
|
22
|
-
} catch {
|
|
23
|
-
// Bun not installed or version check timed out, continue with Node
|
|
24
|
-
// eslint-disable-next-line default/no-hardcoded-urls
|
|
25
|
-
console.error('Tip: Install Bun for faster CLI performance: https://bun.sh')
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
5
|
// Check if running with --version/-v flag
|
|
30
6
|
const args = process.argv.slice(2)
|
|
31
7
|
const isVersion = args.includes('--version') || args.includes('-v')
|
package/oclif.manifest.json
CHANGED
|
@@ -1419,69 +1419,6 @@
|
|
|
1419
1419
|
"status.js"
|
|
1420
1420
|
]
|
|
1421
1421
|
},
|
|
1422
|
-
"delete:asset": {
|
|
1423
|
-
"aliases": [],
|
|
1424
|
-
"args": {
|
|
1425
|
-
"filename": {
|
|
1426
|
-
"description": "Asset filename",
|
|
1427
|
-
"name": "filename",
|
|
1428
|
-
"required": true
|
|
1429
|
-
}
|
|
1430
|
-
},
|
|
1431
|
-
"description": "Delete an asset",
|
|
1432
|
-
"examples": [
|
|
1433
|
-
"<%= config.bin %> delete asset screenshot.png --issue 1",
|
|
1434
|
-
"<%= config.bin %> delete asset logo.svg --shared",
|
|
1435
|
-
"<%= config.bin %> delete asset old-image.png --issue 1 --force",
|
|
1436
|
-
"<%= config.bin %> delete asset screenshot.png --issue 1 --project centy-daemon"
|
|
1437
|
-
],
|
|
1438
|
-
"flags": {
|
|
1439
|
-
"issue": {
|
|
1440
|
-
"char": "i",
|
|
1441
|
-
"description": "Issue ID or display number",
|
|
1442
|
-
"name": "issue",
|
|
1443
|
-
"hasDynamicHelp": false,
|
|
1444
|
-
"multiple": false,
|
|
1445
|
-
"type": "option"
|
|
1446
|
-
},
|
|
1447
|
-
"shared": {
|
|
1448
|
-
"char": "s",
|
|
1449
|
-
"description": "Delete a shared asset",
|
|
1450
|
-
"name": "shared",
|
|
1451
|
-
"allowNo": false,
|
|
1452
|
-
"type": "boolean"
|
|
1453
|
-
},
|
|
1454
|
-
"force": {
|
|
1455
|
-
"char": "f",
|
|
1456
|
-
"description": "Skip confirmation prompt",
|
|
1457
|
-
"name": "force",
|
|
1458
|
-
"allowNo": false,
|
|
1459
|
-
"type": "boolean"
|
|
1460
|
-
},
|
|
1461
|
-
"project": {
|
|
1462
|
-
"description": "Project name or path (defaults to current directory)",
|
|
1463
|
-
"name": "project",
|
|
1464
|
-
"hasDynamicHelp": false,
|
|
1465
|
-
"multiple": false,
|
|
1466
|
-
"type": "option"
|
|
1467
|
-
}
|
|
1468
|
-
},
|
|
1469
|
-
"hasDynamicHelp": false,
|
|
1470
|
-
"hiddenAliases": [],
|
|
1471
|
-
"id": "delete:asset",
|
|
1472
|
-
"pluginAlias": "centy",
|
|
1473
|
-
"pluginName": "centy",
|
|
1474
|
-
"pluginType": "core",
|
|
1475
|
-
"strict": true,
|
|
1476
|
-
"enableJsonFlag": false,
|
|
1477
|
-
"isESM": true,
|
|
1478
|
-
"relativePath": [
|
|
1479
|
-
"dist",
|
|
1480
|
-
"commands",
|
|
1481
|
-
"delete",
|
|
1482
|
-
"asset.js"
|
|
1483
|
-
]
|
|
1484
|
-
},
|
|
1485
1422
|
"get:asset": {
|
|
1486
1423
|
"aliases": [
|
|
1487
1424
|
"show:asset"
|
|
@@ -1588,6 +1525,69 @@
|
|
|
1588
1525
|
"project.js"
|
|
1589
1526
|
]
|
|
1590
1527
|
},
|
|
1528
|
+
"delete:asset": {
|
|
1529
|
+
"aliases": [],
|
|
1530
|
+
"args": {
|
|
1531
|
+
"filename": {
|
|
1532
|
+
"description": "Asset filename",
|
|
1533
|
+
"name": "filename",
|
|
1534
|
+
"required": true
|
|
1535
|
+
}
|
|
1536
|
+
},
|
|
1537
|
+
"description": "Delete an asset",
|
|
1538
|
+
"examples": [
|
|
1539
|
+
"<%= config.bin %> delete asset screenshot.png --issue 1",
|
|
1540
|
+
"<%= config.bin %> delete asset logo.svg --shared",
|
|
1541
|
+
"<%= config.bin %> delete asset old-image.png --issue 1 --force",
|
|
1542
|
+
"<%= config.bin %> delete asset screenshot.png --issue 1 --project centy-daemon"
|
|
1543
|
+
],
|
|
1544
|
+
"flags": {
|
|
1545
|
+
"issue": {
|
|
1546
|
+
"char": "i",
|
|
1547
|
+
"description": "Issue ID or display number",
|
|
1548
|
+
"name": "issue",
|
|
1549
|
+
"hasDynamicHelp": false,
|
|
1550
|
+
"multiple": false,
|
|
1551
|
+
"type": "option"
|
|
1552
|
+
},
|
|
1553
|
+
"shared": {
|
|
1554
|
+
"char": "s",
|
|
1555
|
+
"description": "Delete a shared asset",
|
|
1556
|
+
"name": "shared",
|
|
1557
|
+
"allowNo": false,
|
|
1558
|
+
"type": "boolean"
|
|
1559
|
+
},
|
|
1560
|
+
"force": {
|
|
1561
|
+
"char": "f",
|
|
1562
|
+
"description": "Skip confirmation prompt",
|
|
1563
|
+
"name": "force",
|
|
1564
|
+
"allowNo": false,
|
|
1565
|
+
"type": "boolean"
|
|
1566
|
+
},
|
|
1567
|
+
"project": {
|
|
1568
|
+
"description": "Project name or path (defaults to current directory)",
|
|
1569
|
+
"name": "project",
|
|
1570
|
+
"hasDynamicHelp": false,
|
|
1571
|
+
"multiple": false,
|
|
1572
|
+
"type": "option"
|
|
1573
|
+
}
|
|
1574
|
+
},
|
|
1575
|
+
"hasDynamicHelp": false,
|
|
1576
|
+
"hiddenAliases": [],
|
|
1577
|
+
"id": "delete:asset",
|
|
1578
|
+
"pluginAlias": "centy",
|
|
1579
|
+
"pluginName": "centy",
|
|
1580
|
+
"pluginType": "core",
|
|
1581
|
+
"strict": true,
|
|
1582
|
+
"enableJsonFlag": false,
|
|
1583
|
+
"isESM": true,
|
|
1584
|
+
"relativePath": [
|
|
1585
|
+
"dist",
|
|
1586
|
+
"commands",
|
|
1587
|
+
"delete",
|
|
1588
|
+
"asset.js"
|
|
1589
|
+
]
|
|
1590
|
+
},
|
|
1591
1591
|
"item-type:create": {
|
|
1592
1592
|
"aliases": [],
|
|
1593
1593
|
"args": {},
|
|
@@ -2960,5 +2960,5 @@
|
|
|
2960
2960
|
]
|
|
2961
2961
|
}
|
|
2962
2962
|
},
|
|
2963
|
-
"version": "0.
|
|
2963
|
+
"version": "0.8.0"
|
|
2964
2964
|
}
|