From 71a7b50d2444c8718265ff03ac05eec189ba99e0 Mon Sep 17 00:00:00 2001 From: CJ Brewer Date: Sun, 22 Jun 2025 11:59:31 -0600 Subject: [PATCH] feat(cli): rename deepdish cli package --- .changeset/red-wombats-cough.md | 5 +++ apps/cli/package.json | 3 +- apps/cli/src/commands/cloud/commands.ts | 2 - apps/cli/src/commands/cloud/key/commands.ts | 43 ------------------- .../src/commands/cloud/key/implementation.ts | 9 ---- 5 files changed, 6 insertions(+), 56 deletions(-) create mode 100644 .changeset/red-wombats-cough.md delete mode 100644 apps/cli/src/commands/cloud/key/commands.ts delete mode 100644 apps/cli/src/commands/cloud/key/implementation.ts diff --git a/.changeset/red-wombats-cough.md b/.changeset/red-wombats-cough.md new file mode 100644 index 00000000..8d1a4d2d --- /dev/null +++ b/.changeset/red-wombats-cough.md @@ -0,0 +1,5 @@ +--- +"deepdish": minor +--- + +Renamed cli package to deepdish. diff --git a/apps/cli/package.json b/apps/cli/package.json index 6415612a..4dab8359 100644 --- a/apps/cli/package.json +++ b/apps/cli/package.json @@ -1,5 +1,5 @@ { - "name": "@deepdish/cli", + "name": "deepdish", "version": "0.7.0", "description": "DeepDish command line application", "author": { @@ -9,7 +9,6 @@ "type": "module", "main": "./dist/index.js", "bin": { - "@deepdish/cli": "./dist/index.js", "__cli_bash_complete": "./dist/bash-complete.js", "deepdish": "./dist/index.js" }, diff --git a/apps/cli/src/commands/cloud/commands.ts b/apps/cli/src/commands/cloud/commands.ts index 1e0a81e9..6258e891 100644 --- a/apps/cli/src/commands/cloud/commands.ts +++ b/apps/cli/src/commands/cloud/commands.ts @@ -1,14 +1,12 @@ import { buildRouteMap } from '@stricli/core' import { cloudAuthRoutes } from './auth/commands' import { cloudBillingRoutes } from './billing/commands' -import { cloudKeyRoutes } from './key/commands' import { cloudProjectRoutes } from './project/commands' export const cloudRoutes = buildRouteMap({ routes: { auth: cloudAuthRoutes, billing: cloudBillingRoutes, - key: cloudKeyRoutes, project: cloudProjectRoutes, }, docs: { diff --git a/apps/cli/src/commands/cloud/key/commands.ts b/apps/cli/src/commands/cloud/key/commands.ts deleted file mode 100644 index dd3e7c5f..00000000 --- a/apps/cli/src/commands/cloud/key/commands.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { buildCommand, buildRouteMap } from '@stricli/core' - -export const cloudKeyCreate = buildCommand({ - loader: async () => { - const { createKey } = await import('./implementation') - return createKey - }, - parameters: { - positional: { - kind: 'tuple', - parameters: [], - }, - }, - docs: { - brief: 'Create a new API key', - }, -}) - -export const cloudKeyList = buildCommand({ - loader: async () => { - const { listKeys } = await import('./implementation') - return listKeys - }, - parameters: { - positional: { - kind: 'tuple', - parameters: [], - }, - }, - docs: { - brief: 'List all API keys', - }, -}) - -export const cloudKeyRoutes = buildRouteMap({ - routes: { - create: cloudKeyCreate, - list: cloudKeyList, - }, - docs: { - brief: 'Cloud API key commands', - }, -}) diff --git a/apps/cli/src/commands/cloud/key/implementation.ts b/apps/cli/src/commands/cloud/key/implementation.ts deleted file mode 100644 index e98ce389..00000000 --- a/apps/cli/src/commands/cloud/key/implementation.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { LocalContext } from '@/context' - -export async function createKey(this: LocalContext): Promise { - await console.log('cloud create key') -} - -export async function listKeys(this: LocalContext): Promise { - await console.log('cloud list keys') -}