@thi.ng/pointfree-lang 2.3.30 → 2.3.31

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-08-04T09:13:01Z
3
+ - **Last updated**: 2025-08-06T18:02:31Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -11,6 +11,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
11
11
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
12
  and/or version bumps of transitive dependencies.
13
13
 
14
+ ### [2.3.31](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@2.3.31) (2025-08-06)
15
+
16
+ #### ♻️ Refactoring
17
+
18
+ - update CLI internals, rename `--debug` => `--verbose` ([44c07b8](https://github.com/thi-ng/umbrella/commit/44c07b8))
19
+
14
20
  ### [2.3.15](https://github.com/thi-ng/umbrella/tree/@thi.ng/pointfree-lang@2.3.15) (2025-06-27)
15
21
 
16
22
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -129,13 +129,18 @@ The package includes a `pointfree` CLI command to evaluate strings or files:
129
129
  ```text
130
130
  npx @thi.ng/pointfree-lang
131
131
 
132
- Usage: pointfree [options] [file]
132
+ █ █ │
133
+ ██ █ │
134
+ █ █ █ █ █ █ █ █ │ @thi.ng/pointfree-lang v2.3.30
135
+ █ █ █ █ █ █ █ █ █ │ Forth-style DSL & CLI
136
+ █ │
137
+ █ █ │
133
138
 
134
- Options:
135
- -V, --version output the version number
136
- -d, --debug print debug info
137
- -e, --exec <src> execute given string
138
- -h, --help display help for command
139
+ Usage: pointfree [opts] [file]
140
+
141
+ -v, --verbose Display extra information
142
+
143
+ -e STR, --exec STR Execute given string
139
144
  ```
140
145
 
141
146
  For CLI usage, in addition to the other language features discussed further below, the following words are available too (more to be added):
package/cli.js CHANGED
@@ -1,9 +1,14 @@
1
- import { cliApp, flag, string, THING_HEADER } from "@thi.ng/args";
1
+ import {
2
+ ARG_VERBOSE,
3
+ cliApp,
4
+ configureLogLevel,
5
+ string,
6
+ THING_HEADER
7
+ } from "@thi.ng/args";
2
8
  import { timedResult } from "@thi.ng/bench";
3
9
  import { readJSON, readText, writeFile } from "@thi.ng/file-io";
4
- import { LogLevel } from "@thi.ng/logger";
5
10
  import { ensureStack } from "@thi.ng/pointfree";
6
- import { readFileSync, readdirSync } from "node:fs";
11
+ import { readdirSync, readFileSync } from "node:fs";
7
12
  import { join } from "node:path";
8
13
  import { ffi, run, runU } from "./runtime.js";
9
14
  const PKG = readJSON(join(process.argv[2], "package.json"));
@@ -78,8 +83,8 @@ cliApp({
78
83
  name: "pointfree",
79
84
  start: 3,
80
85
  opts: {
81
- debug: flag({ alias: "d", desc: "print debug info", group: "main" }),
82
- exec: string({ alias: "e", default: "", desc: "execute given string" })
86
+ ...ARG_VERBOSE,
87
+ exec: string({ alias: "e", desc: "Execute given string" })
83
88
  },
84
89
  commands: { CMD },
85
90
  single: true,
@@ -92,7 +97,7 @@ Usage: pointfree [opts] [file]
92
97
  paramWidth: 24
93
98
  },
94
99
  ctx: async (ctx) => {
95
- if (ctx.opts.debug) ctx.logger.level = LogLevel.DEBUG;
100
+ configureLogLevel(ctx.logger, ctx.opts.verbose);
96
101
  return ctx;
97
102
  }
98
103
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/pointfree-lang",
3
- "version": "2.3.30",
3
+ "version": "2.3.31",
4
4
  "description": "Forth style syntax layer/compiler & CLI for the @thi.ng/pointfree DSL",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@thi.ng/api": "^8.12.1",
47
- "@thi.ng/args": "^2.8.6",
47
+ "@thi.ng/args": "^2.9.0",
48
48
  "@thi.ng/bench": "^3.6.28",
49
49
  "@thi.ng/errors": "^2.5.41",
50
50
  "@thi.ng/file-io": "^2.2.6",
@@ -111,5 +111,5 @@
111
111
  "parent": "@thi.ng/pointfree",
112
112
  "year": 2018
113
113
  },
114
- "gitHead": "0bcedf8d1dd4f30cd06bb2c668599628f2f0141e\n"
114
+ "gitHead": "03e0d1024805407fbec5dde688b6178bbe0a2f3a\n"
115
115
  }