living-documentation 3.2.0 → 3.4.0

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/bin/cli.js CHANGED
@@ -10,12 +10,12 @@ const fs_1 = __importDefault(require("fs"));
10
10
  const server_1 = require("../src/server");
11
11
  const program = new commander_1.Command();
12
12
  program
13
- .name('living-documentation')
14
- .description('Serve a local Markdown documentation viewer')
15
- .version('1.0.0')
16
- .argument('[folder]', 'Path to documentation folder', '.')
17
- .option('-p, --port <number>', 'Port to listen on', '4321')
18
- .option('-o, --open', 'Open browser automatically')
13
+ .name("living-documentation")
14
+ .description("Serve a local Markdown documentation viewer")
15
+ .version("1.0.0")
16
+ .argument("[folder]", "Path to documentation folder", ".")
17
+ .option("-p, --port <number>", "Port to listen on", "4321")
18
+ .option("-o, --open", "Open browser automatically")
19
19
  .action(async (folder, options) => {
20
20
  const docsPath = path_1.default.resolve(process.cwd(), folder);
21
21
  if (!fs_1.default.existsSync(docsPath)) {
@@ -29,7 +29,7 @@ program
29
29
  }
30
30
  const port = parseInt(options.port, 10);
31
31
  if (isNaN(port) || port < 1 || port > 65535) {
32
- console.error('\nError: Invalid port number\n');
32
+ console.error("\nError: Invalid port number\n");
33
33
  process.exit(1);
34
34
  }
35
35
  await (0, server_1.startServer)({ docsPath, port, openBrowser: options.open ?? false });