@runfile/cli 0.21.0 → 0.22.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.
@@ -259,7 +259,7 @@ and work as full substitution bodies *or* as chain segments:
259
259
  // trim : trim, trim_start, trim_end
260
260
  // inspect : length, starts_with, ends_with, contains
261
261
  // transform : escape, repeat, replace_all, remove_all
262
- // regex : regex_replace, regex_remove, regex_matches, regex_capture
262
+ // regex : regex_replace, regex_remove, regex_matches, regex_capture, regex_capture_all
263
263
  // build : concat, join
264
264
  // split : nth, first, last, count_parts
265
265
  // math : add, subtract, multiply, divide
@@ -284,6 +284,9 @@ and work as full substitution bodies *or* as chain segments:
284
284
  // greedy-replace trick needed. Group 0 is the whole match; group N is the
285
285
  // N-th `(...)`. Out-of-bounds returns "" (same convention as `nth`).
286
286
  "echo version={{ regex_capture(read_file('app/build.gradle.kts'), 'versionName = \"([^\"]+)\"', '1') }}",
287
+ // Pull group N out of EVERY match and join with a separator (the "all" variant
288
+ // of regex_capture). Here: every quoted dependency name, comma-separated.
289
+ "echo deps={{ regex_capture_all(read_file('deps.txt'), 'name = \"([^\"]+)\"', '1', ',') }}",
287
290
  // Split-by-separator scalar accessors — string in, string out, no list type:
288
291
  // basename idiom (last segment after `/`); empty string when input ends in `/`.
289
292
  "echo basename={{ last(ARGS.path, '/') }}",
Binary file
@@ -259,7 +259,7 @@ and work as full substitution bodies *or* as chain segments:
259
259
  // trim : trim, trim_start, trim_end
260
260
  // inspect : length, starts_with, ends_with, contains
261
261
  // transform : escape, repeat, replace_all, remove_all
262
- // regex : regex_replace, regex_remove, regex_matches, regex_capture
262
+ // regex : regex_replace, regex_remove, regex_matches, regex_capture, regex_capture_all
263
263
  // build : concat, join
264
264
  // split : nth, first, last, count_parts
265
265
  // math : add, subtract, multiply, divide
@@ -284,6 +284,9 @@ and work as full substitution bodies *or* as chain segments:
284
284
  // greedy-replace trick needed. Group 0 is the whole match; group N is the
285
285
  // N-th `(...)`. Out-of-bounds returns "" (same convention as `nth`).
286
286
  "echo version={{ regex_capture(read_file('app/build.gradle.kts'), 'versionName = \"([^\"]+)\"', '1') }}",
287
+ // Pull group N out of EVERY match and join with a separator (the "all" variant
288
+ // of regex_capture). Here: every quoted dependency name, comma-separated.
289
+ "echo deps={{ regex_capture_all(read_file('deps.txt'), 'name = \"([^\"]+)\"', '1', ',') }}",
287
290
  // Split-by-separator scalar accessors — string in, string out, no list type:
288
291
  // basename idiom (last segment after `/`); empty string when input ends in `/`.
289
292
  "echo basename={{ last(ARGS.path, '/') }}",
Binary file
@@ -259,7 +259,7 @@ and work as full substitution bodies *or* as chain segments:
259
259
  // trim : trim, trim_start, trim_end
260
260
  // inspect : length, starts_with, ends_with, contains
261
261
  // transform : escape, repeat, replace_all, remove_all
262
- // regex : regex_replace, regex_remove, regex_matches, regex_capture
262
+ // regex : regex_replace, regex_remove, regex_matches, regex_capture, regex_capture_all
263
263
  // build : concat, join
264
264
  // split : nth, first, last, count_parts
265
265
  // math : add, subtract, multiply, divide
@@ -284,6 +284,9 @@ and work as full substitution bodies *or* as chain segments:
284
284
  // greedy-replace trick needed. Group 0 is the whole match; group N is the
285
285
  // N-th `(...)`. Out-of-bounds returns "" (same convention as `nth`).
286
286
  "echo version={{ regex_capture(read_file('app/build.gradle.kts'), 'versionName = \"([^\"]+)\"', '1') }}",
287
+ // Pull group N out of EVERY match and join with a separator (the "all" variant
288
+ // of regex_capture). Here: every quoted dependency name, comma-separated.
289
+ "echo deps={{ regex_capture_all(read_file('deps.txt'), 'name = \"([^\"]+)\"', '1', ',') }}",
287
290
  // Split-by-separator scalar accessors — string in, string out, no list type:
288
291
  // basename idiom (last segment after `/`); empty string when input ends in `/`.
289
292
  "echo basename={{ last(ARGS.path, '/') }}",
Binary file
@@ -259,7 +259,7 @@ and work as full substitution bodies *or* as chain segments:
259
259
  // trim : trim, trim_start, trim_end
260
260
  // inspect : length, starts_with, ends_with, contains
261
261
  // transform : escape, repeat, replace_all, remove_all
262
- // regex : regex_replace, regex_remove, regex_matches, regex_capture
262
+ // regex : regex_replace, regex_remove, regex_matches, regex_capture, regex_capture_all
263
263
  // build : concat, join
264
264
  // split : nth, first, last, count_parts
265
265
  // math : add, subtract, multiply, divide
@@ -284,6 +284,9 @@ and work as full substitution bodies *or* as chain segments:
284
284
  // greedy-replace trick needed. Group 0 is the whole match; group N is the
285
285
  // N-th `(...)`. Out-of-bounds returns "" (same convention as `nth`).
286
286
  "echo version={{ regex_capture(read_file('app/build.gradle.kts'), 'versionName = \"([^\"]+)\"', '1') }}",
287
+ // Pull group N out of EVERY match and join with a separator (the "all" variant
288
+ // of regex_capture). Here: every quoted dependency name, comma-separated.
289
+ "echo deps={{ regex_capture_all(read_file('deps.txt'), 'name = \"([^\"]+)\"', '1', ',') }}",
287
290
  // Split-by-separator scalar accessors — string in, string out, no list type:
288
291
  // basename idiom (last segment after `/`); empty string when input ends in `/`.
289
292
  "echo basename={{ last(ARGS.path, '/') }}",
package/bin/linux-x64/run CHANGED
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runfile/cli",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "description": "Runfile CLI — an easy-to-use, batteries-included task runner",
5
5
  "repository": "https://github.com/Skiley/runfile",
6
6
  "homepage": "https://github.com/Skiley/runfile",