donbot-cli 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/deploy.js +25 -1
- package/donbot.js +8 -0
- package/package.json +1 -1
package/cli/deploy.js
CHANGED
|
@@ -111,4 +111,28 @@ const uploadCodeToServer = async (uploadCodeToServer, options) => {
|
|
|
111
111
|
});
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
-
|
|
114
|
+
const validCode_donbot = async (uploadCodeToServer, options) => {
|
|
115
|
+
console.log(`
|
|
116
|
+
_____ _______ __ _ ______ _______ _______
|
|
117
|
+
| | | || | | || _ | | || |
|
|
118
|
+
| _ | | _ || || || | | | | _ ||_ _|
|
|
119
|
+
| | | || | | || || | | | | | | |
|
|
120
|
+
| |_| | | |_| || _ || _ | | |_| | | |
|
|
121
|
+
| | | || | | || |_| | | | | |
|
|
122
|
+
|____| |_______||_| |___||_____| |_______| |___|
|
|
123
|
+
|
|
124
|
+
DonBot CLI - Herramienta para operaciones automatizadas.
|
|
125
|
+
`);
|
|
126
|
+
|
|
127
|
+
try {
|
|
128
|
+
console.log("Validando código...");
|
|
129
|
+
await validCode();
|
|
130
|
+
console.log("✅ Código válido.");
|
|
131
|
+
} catch (err) {
|
|
132
|
+
console.log("❌ El código no es válido.");
|
|
133
|
+
console.error(err.stdout?.toString() || err.message);
|
|
134
|
+
process.exit(1);
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
module.exports = { uploadCodeToServer, validCode_donbot };
|
package/donbot.js
CHANGED
|
@@ -73,6 +73,14 @@ program.
|
|
|
73
73
|
deploy.uploadCodeToServer(type_deploy, options);
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
+
program.
|
|
77
|
+
command("validcode").
|
|
78
|
+
alias("vc").
|
|
79
|
+
description(`Ejecuta una validacion del codigo en el proyecto.`).
|
|
80
|
+
action(() => {
|
|
81
|
+
deploy.validCode_donbot();
|
|
82
|
+
});
|
|
83
|
+
|
|
76
84
|
// Flow
|
|
77
85
|
|
|
78
86
|
program.
|