mirror of
https://github.com/Dokploy/cli.git
synced 2026-06-26 17:45:38 +02:00
refactor: update CLI
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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}`));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user