Skip to content

Commit 9b0c737

Browse files
committed
refactor: update CLI
1 parent 8f947a3 commit 9b0c737

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/tmp
77
/node_modules
88
oclif.manifest.json
9+
/config.json
910

1011

1112
yarn.lock

config.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/commands/project/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default class ProjectCreate extends Command {
6666

6767
try {
6868
const response = await axios.post(
69-
`${auth.url}/api/trpc/project.createCLI`,
69+
`${auth.url}/api/trpc/project.create`,
7070
{
7171
json: {
7272
description,

src/utils/shared.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const getProjects = async (
3636
}
3737

3838
return projects;
39-
} catch {
39+
} catch (error) {
4040
// @ts-expect-error TODO: Fix this
4141
command.error(chalk.red(`Failed to fetch project list: ${error.message}`));
4242
}
@@ -74,7 +74,7 @@ export const getProject = async (
7474
}
7575

7676
return project;
77-
} catch {
77+
} catch (error) {
7878
// @ts-expect-error TODO: Fix this
7979
command.error(chalk.red(`Failed to fetch project: ${error.message}`));
8080
}

0 commit comments

Comments
 (0)