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

1
.gitignore vendored
View File

@@ -6,6 +6,7 @@
/tmp
/node_modules
oclif.manifest.json
/config.json
yarn.lock

View File

@@ -1,4 +0,0 @@
{
"token": "icsy0appti460sbh5be1sevami702rc8a57l2e8h",
"url": "http://localhost:3000"
}

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