@dokploy/cli 0.29.3 → 0.29.4
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/dist/generated/commands.js +18 -0
- package/package.json +1 -1
|
@@ -1846,6 +1846,24 @@ export function registerGeneratedCommands(program) {
|
|
|
1846
1846
|
printOutput(data);
|
|
1847
1847
|
}
|
|
1848
1848
|
});
|
|
1849
|
+
g_compose
|
|
1850
|
+
.command('preview-template')
|
|
1851
|
+
.description('compose previewTemplate')
|
|
1852
|
+
.requiredOption('--base64 <value>', 'base64')
|
|
1853
|
+
.requiredOption('--appName <value>', 'appName')
|
|
1854
|
+
.option('--serverId <value>', 'serverId')
|
|
1855
|
+
.option('--json', 'Output raw JSON')
|
|
1856
|
+
.action(async (opts) => {
|
|
1857
|
+
const jsonOutput = opts.json;
|
|
1858
|
+
delete opts.json;
|
|
1859
|
+
const data = await apiPost("compose.previewTemplate", opts);
|
|
1860
|
+
if (jsonOutput) {
|
|
1861
|
+
console.log(JSON.stringify(data, null, 2));
|
|
1862
|
+
}
|
|
1863
|
+
else {
|
|
1864
|
+
printOutput(data);
|
|
1865
|
+
}
|
|
1866
|
+
});
|
|
1849
1867
|
g_compose
|
|
1850
1868
|
.command('process-template')
|
|
1851
1869
|
.description('compose processTemplate')
|