Skip to content

Commit

Permalink
refactor: update CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Siumauricio committed Jun 23, 2024
1 parent 8f947a3 commit 9b0c737
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/tmp
/node_modules
oclif.manifest.json
/config.json


yarn.lock
Expand Down
4 changes: 0 additions & 4 deletions config.json

This file was deleted.

2 changes: 1 addition & 1 deletion src/commands/project/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default class ProjectCreate extends Command {

try {
const response = await axios.post(
`${auth.url}/api/trpc/project.createCLI`,
`${auth.url}/api/trpc/project.create`,
{
json: {
description,
Expand Down
4 changes: 2 additions & 2 deletions src/utils/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getProjects = async (
}

return projects;
} catch {
} catch (error) {
// @ts-expect-error TODO: Fix this
command.error(chalk.red(`Failed to fetch project list: ${error.message}`));
}
Expand Down Expand Up @@ -74,7 +74,7 @@ export const getProject = async (
}

return project;
} catch {
} catch (error) {
// @ts-expect-error TODO: Fix this
command.error(chalk.red(`Failed to fetch project: ${error.message}`));
}
Expand Down

0 comments on commit 9b0c737

Please sign in to comment.