mirror of
https://github.com/Dokploy/cli.git
synced 2026-06-15 20:25:22 +02:00
refactor: update CLI
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,6 +6,7 @@
|
||||
/tmp
|
||||
/node_modules
|
||||
oclif.manifest.json
|
||||
/config.json
|
||||
|
||||
|
||||
yarn.lock
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"token": "icsy0appti460sbh5be1sevami702rc8a57l2e8h",
|
||||
"url": "http://localhost:3000"
|
||||
}
|
||||
@@ -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