@flowscripter/example-cli-plugin 1.1.0 → 1.1.1

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/index.js CHANGED
@@ -85,6 +85,7 @@ var DEMO_SERVICE_ID = "DEMO_SERVICE";
85
85
  var helloCommand = {
86
86
  name: "hello",
87
87
  description: "Greet someone using the demo service",
88
+ helpTopic: "Hello",
88
89
  enableConfiguration: false,
89
90
  options: [],
90
91
  positionals: [
@@ -100,7 +101,8 @@ var helloCommand = {
100
101
  const printerService = context.getServiceById(PRINTER_SERVICE_ID);
101
102
  const name = argumentValues["name"] ?? "World";
102
103
  const greeting = demoService.cowsay(name);
103
- await printerService?.print(greeting);
104
+ await printerService?.print(`${greeting}
105
+ `);
104
106
  }
105
107
  };
106
108
  var HelloCommand_default = helloCommand;
@@ -1 +1 @@
1
- {"version":3,"file":"HelloCommand.d.ts","sourceRoot":"","sources":["../../../src/command/HelloCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EAIX,MAAM,4CAA4C,CAAC;AAQpD,QAAA,MAAM,YAAY,EAAE,UAoBnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"HelloCommand.d.ts","sourceRoot":"","sources":["../../../src/command/HelloCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EAIX,MAAM,4CAA4C,CAAC;AAQpD,QAAA,MAAM,YAAY,EAAE,UAqBnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { CommandFactory } from "@flowscripter/dynamic-cli-framework/plugin";
2
2
  export default class DemoCommandFactory implements CommandFactory {
3
- getCommands(): import("@flowscripter/dynamic-cli-framework/plugin").SubCommand[];
3
+ getCommands(): import("@flowscripter/dynamic-cli-framework").SubCommand[];
4
4
  }
5
5
  //# sourceMappingURL=DemoCommandFactory.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowscripter/example-cli-plugin",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Example CLI plugin for the https://github.com/flowscripter/dynamic-cli-framework",
5
5
  "keywords": [
6
6
  "bun",
@@ -14,6 +14,7 @@ import type DemoService from "../service/DemoService.ts";
14
14
  const helloCommand: SubCommand = {
15
15
  name: "hello",
16
16
  description: "Greet someone using the demo service",
17
+ helpTopic: "Hello",
17
18
  enableConfiguration: false,
18
19
  options: [],
19
20
  positionals: [
@@ -29,7 +30,7 @@ const helloCommand: SubCommand = {
29
30
  const printerService = context.getServiceById(PRINTER_SERVICE_ID) as PrinterService;
30
31
  const name = (argumentValues["name"] as string | undefined) ?? "World";
31
32
  const greeting = demoService.cowsay(name);
32
- await printerService?.print(greeting);
33
+ await printerService?.print(`${greeting}\n`);
33
34
  },
34
35
  };
35
36