@fileverse/api 0.0.1 → 0.0.3
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/commands/index.js
CHANGED
|
@@ -1322,7 +1322,9 @@ var updateCommand = new Command4().name("update").description("Update an existin
|
|
|
1322
1322
|
if (!content || content.trim().length === 0) {
|
|
1323
1323
|
throw new Error(`file content cannot be empty`);
|
|
1324
1324
|
}
|
|
1325
|
-
const
|
|
1325
|
+
const basename3 = path3.basename(filePath);
|
|
1326
|
+
const lastDotIndex = basename3.lastIndexOf(".");
|
|
1327
|
+
const title = lastDotIndex > 0 ? basename3.substring(0, lastDotIndex) : basename3;
|
|
1326
1328
|
const payload = {
|
|
1327
1329
|
title,
|
|
1328
1330
|
content
|
|
@@ -1522,7 +1524,7 @@ eventsCommand.command("retry-all").description("Retry all failed events").action
|
|
|
1522
1524
|
// src/commands/index.ts
|
|
1523
1525
|
logger.level = "error";
|
|
1524
1526
|
runMigrations();
|
|
1525
|
-
var program = new Command9().name("ddctl").description("CLI tool to manage your ddocs").version("0.0.
|
|
1527
|
+
var program = new Command9().name("ddctl").description("CLI tool to manage your ddocs").version("0.0.3").addHelpText("beforeAll", "\n").addHelpText("afterAll", "\n");
|
|
1526
1528
|
program.addCommand(listCommand);
|
|
1527
1529
|
program.addCommand(getCommand);
|
|
1528
1530
|
program.addCommand(createCommand);
|