Skip to content

Commit 8395fea

Browse files
committed
feat: CLI metrics (#2471)
Synced from monorepo@749a0807eaf8d7674fd62be22d477ab2853ff1a2
1 parent 9d44de1 commit 8395fea

5 files changed

Lines changed: 601 additions & 7 deletions

File tree

.sync-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
adb08ab27301321dd67e093229109d445cd751e0
1+
749a0807eaf8d7674fd62be22d477ab2853ff1a2

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "xata-cli",
33
"description": "Xata CLI",
4-
"version": "1.2.1",
4+
"version": "1.2.2",
55
"private": true,
66
"module": "src/app.ts",
77
"type": "module",
@@ -36,16 +36,16 @@
3636
"yaml": "2.9.0",
3737
"zod": "4.4.3",
3838
"zod-config": "1.4.0",
39-
"@xata.io/ai": "0.1.0",
40-
"@xata.io/api": "0.1.0",
41-
"@xata.io/config": "0.0.0",
4239
"@xata.io/lang": "0.0.1",
4340
"@xata.io/pgroll": "0.9.0",
4441
"@xata.io/pgstream": "0.2.0",
42+
"@xata.io/api": "0.1.0",
4543
"@xata.io/sql": "0.1.3",
44+
"@xata.io/test-utils": "0.0.0",
4645
"@xata.io/tsconfig": "0.0.1",
4746
"@xata.io/utils": "0.1.0",
48-
"@xata.io/test-utils": "0.0.0"
47+
"@xata.io/ai": "0.1.0",
48+
"@xata.io/config": "0.0.0"
4949
},
5050
"scripts": {
5151
"dev": "bun src/bin/cli.ts",

src/commands/branch/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { BranchDeleteCommand } from './delete';
66
import { BranchDescribeCommand } from './describe';
77
import { BranchGetCommand } from './get';
88
import { BranchListCommand } from './list';
9+
import { BranchMetricsCommand } from './metrics';
910
import { BranchSetCommand } from './set';
1011
import { BranchTreeCommand } from './tree';
1112
import { BranchRotatePasswordCommand } from './rotate-password';
@@ -14,7 +15,10 @@ import { BranchWaitReadyCommand } from './wait-ready';
1415

1516
export const BranchRoute = buildRouteMap({
1617
docs: {
17-
brief: `Create, list, and manage ${CLI_NAME} branches`
18+
brief: `Create, list, and manage ${CLI_NAME} branches`,
19+
hideRoute: {
20+
metrics: true
21+
}
1822
},
1923
routes: {
2024
list: BranchListCommand,
@@ -25,6 +29,7 @@ export const BranchRoute = buildRouteMap({
2529
checkout: BranchCheckoutCommand,
2630
tree: BranchTreeCommand,
2731
get: BranchGetCommand,
32+
metrics: BranchMetricsCommand,
2833
set: BranchSetCommand,
2934
'rotate-password': BranchRotatePasswordCommand,
3035
'wait-ready': BranchWaitReadyCommand

0 commit comments

Comments
 (0)