refactor: update CLI

This commit is contained in:
Mauricio Siu
2024-06-22 23:22:52 -06:00
parent 8f947a3433
commit 9b0c737ae7
4 changed files with 4 additions and 7 deletions

View File

@@ -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,

View File

@@ -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}`));
}
@@ -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}`));
}