exupery-core-bin 0.3.20 → 0.3.21

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.
@@ -1,3 +1,3 @@
1
1
  import * as _et from 'exupery-core-types';
2
2
  import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/copy/data_types/target";
3
- export declare const $$: _et.Procedure_Primed_With_Resources<d.Parameters, d.Error>;
3
+ export declare const $$: _et.Command<d.Parameters, d.Error>;
@@ -34,7 +34,7 @@ exports.$$ = _easync.__create_procedure_primed_with_resources(($p) => {
34
34
  }
35
35
  return path;
36
36
  };
37
- return _easync.__create_procedure_promise({
37
+ return _easync.__create_command_promise({
38
38
  'execute': (on_success, on_error) => {
39
39
  const options = {};
40
40
  $p.options.recursive.map(($) => { options.recursive = $; });
@@ -5,4 +5,4 @@ import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/ex
5
5
  * The executable being executed is assumed to only cause side effects
6
6
  * and not return any meaningful data, std::out is therefor ignored
7
7
  */
8
- export declare const $$: _et.Procedure_Primed_With_Resources<d.Parameters, d.Error>;
8
+ export declare const $$: _et.Command<d.Parameters, d.Error>;
@@ -34,7 +34,7 @@ const node_child_process_1 = require("node:child_process");
34
34
  */
35
35
  exports.$$ = _easync.__create_procedure_primed_with_resources(($p) => {
36
36
  const args = $p.args.__get_raw_copy();
37
- return _easync.__create_procedure_promise({
37
+ return _easync.__create_command_promise({
38
38
  'execute': (on_success, on_error) => {
39
39
  const child = (0, node_child_process_1.spawn)($p.program, args, {
40
40
  shell: false, // ✅ direct execution, no shell
@@ -5,4 +5,4 @@ import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/ex
5
5
  * The executable being executed is assumed to only cause side effects
6
6
  * and not return any meaningful data, std::out is therefor ignored
7
7
  */
8
- export declare const $$: _et.Procedure_Primed_With_Resources<d.Parameters, d.Error>;
8
+ export declare const $$: _et.Command<d.Parameters, d.Error>;
@@ -35,7 +35,7 @@ const node_child_process_1 = require("node:child_process");
35
35
  */
36
36
  exports.$$ = _easync.__create_procedure_primed_with_resources(($p) => {
37
37
  const args = $p.args.__get_raw_copy();
38
- return _easync.__create_procedure_promise({
38
+ return _easync.__create_command_promise({
39
39
  'execute': (on_success, on_error) => {
40
40
  const child = (0, node_child_process_1.spawn)($p.program, args, {
41
41
  shell: false, // ✅ direct execution, no shell
@@ -1,3 +1,3 @@
1
1
  import * as _et from 'exupery-core-types';
2
2
  import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/log/data_types/target";
3
- export declare const $$: _et.Procedure_Primed_With_Resources<d.Parameters, null>;
3
+ export declare const $$: _et.Command<d.Parameters, null>;
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.$$ = void 0;
27
27
  const _easync = __importStar(require("exupery-core-async"));
28
28
  exports.$$ = _easync.__create_procedure_primed_with_resources(($p) => {
29
- return _easync.__create_procedure_promise({
29
+ return _easync.__create_command_promise({
30
30
  'execute': (on_success) => {
31
31
  $p.lines.__for_each(($) => {
32
32
  process.stdout.write($ + `\n`);
@@ -1,3 +1,3 @@
1
1
  import * as _et from 'exupery-core-types';
2
2
  import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/log_error/data_types/target";
3
- export declare const $$: _et.Procedure_Primed_With_Resources<d.Parameters, null>;
3
+ export declare const $$: _et.Command<d.Parameters, null>;
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.$$ = void 0;
27
27
  const _easync = __importStar(require("exupery-core-async"));
28
28
  exports.$$ = _easync.__create_procedure_primed_with_resources(($p) => {
29
- return _easync.__create_procedure_promise({
29
+ return _easync.__create_command_promise({
30
30
  'execute': (on_success) => {
31
31
  $p.lines.__for_each(($) => {
32
32
  process.stderr.write($ + `\n`);
@@ -1,3 +1,3 @@
1
1
  import * as _et from 'exupery-core-types';
2
2
  import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/make_directory/data_types/target";
3
- export declare const $$: _et.Procedure_Primed_With_Resources<d.Parameters, d.Error>;
3
+ export declare const $$: _et.Command<d.Parameters, d.Error>;
@@ -34,7 +34,7 @@ exports.$$ = _easync.__create_procedure_primed_with_resources(($p) => {
34
34
  }
35
35
  return path;
36
36
  };
37
- return _easync.__create_procedure_promise({
37
+ return _easync.__create_command_promise({
38
38
  'execute': (on_success, on_error) => {
39
39
  (0, fs_1.mkdir)(__possibly_escape_filename($p.path, $p['escape spaces in path']), {
40
40
  'recursive': true,
@@ -1,3 +1,3 @@
1
1
  import * as _et from 'exupery-core-types';
2
2
  import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/remove/data_types/target";
3
- export declare const $$: _et.Procedure_Primed_With_Resources<d.Parameters, d.Error>;
3
+ export declare const $$: _et.Command<d.Parameters, d.Error>;
@@ -34,7 +34,7 @@ exports.$$ = _easync.__create_procedure_primed_with_resources(($p) => {
34
34
  }
35
35
  return path;
36
36
  };
37
- return _easync.__create_procedure_promise({
37
+ return _easync.__create_command_promise({
38
38
  'execute': (on_success, on_error) => {
39
39
  (0, fs_1.rm)(__possibly_escape_filename($p.path.path, $p.path['escape spaces in path']), {
40
40
  'recursive': true,
@@ -1,3 +1,3 @@
1
1
  import * as _et from 'exupery-core-types';
2
2
  import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/write_file/data_types/target";
3
- export declare const $$: _et.Procedure_Primed_With_Resources<d.Parameters, d.Error>;
3
+ export declare const $$: _et.Command<d.Parameters, d.Error>;
@@ -29,7 +29,7 @@ const _ei = __importStar(require("exupery-core-internals"));
29
29
  const fs_1 = require("fs");
30
30
  const path_1 = require("path");
31
31
  exports.$$ = _easync.__create_procedure_primed_with_resources(($p) => {
32
- return _easync.__create_procedure_promise({
32
+ return _easync.__create_command_promise({
33
33
  'execute': (on_success, on_error) => {
34
34
  const __possibly_escape_filename = (path, escape) => {
35
35
  if (escape) {
@@ -1,3 +1,3 @@
1
1
  import * as _et from 'exupery-core-types';
2
2
  import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/write_to_stderr/data_types/target";
3
- export declare const $$: _et.Procedure_Primed_With_Resources<d.Parameters, null>;
3
+ export declare const $$: _et.Command<d.Parameters, null>;
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.$$ = void 0;
27
27
  const _easync = __importStar(require("exupery-core-async"));
28
28
  exports.$$ = _easync.__create_procedure_primed_with_resources(($p) => {
29
- return _easync.__create_procedure_promise({
29
+ return _easync.__create_command_promise({
30
30
  'execute': (on_success) => {
31
31
  process.stderr.write($p);
32
32
  on_success();
@@ -1,3 +1,3 @@
1
1
  import * as _et from 'exupery-core-types';
2
2
  import * as d from "exupery-resources/dist/interface/generated/pareto/schemas/write_to_stdout/data_types/target";
3
- export declare const $$: _et.Procedure_Primed_With_Resources<d.Parameters, null>;
3
+ export declare const $$: _et.Command<d.Parameters, null>;
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.$$ = void 0;
27
27
  const _easync = __importStar(require("exupery-core-async"));
28
28
  exports.$$ = _easync.__create_procedure_primed_with_resources(($p) => {
29
- return _easync.__create_procedure_promise({
29
+ return _easync.__create_command_promise({
30
30
  'execute': (on_success) => {
31
31
  process.stdout.write($p);
32
32
  on_success();
package/dist/index.d.ts CHANGED
@@ -17,16 +17,16 @@ import * as d_main from "exupery-resources/dist/interface/temp_main";
17
17
  type temp_instream_parameters = null;
18
18
  export type Available_Standard_Resources = {
19
19
  'procedures': {
20
- 'copy': _et.Procedure_Primed_With_Resources<d_copy.Parameters, d_copy.Error>;
21
- 'execute any procedure executable': _et.Procedure_Primed_With_Resources<d_execute_any_procedure_executable.Parameters, d_execute_any_procedure_executable.Error>;
22
- 'execute any smelly procedure executable': _et.Procedure_Primed_With_Resources<d_execute_any_smelly_procedure_executable.Parameters, d_execute_any_smelly_procedure_executable.Error>;
23
- 'log error': _et.Procedure_Primed_With_Resources<d_log_error.Parameters, null>;
24
- 'log': _et.Procedure_Primed_With_Resources<d_log.Parameters, null>;
25
- 'make directory': _et.Procedure_Primed_With_Resources<d_make_directory.Parameters, d_make_directory.Error>;
26
- 'remove': _et.Procedure_Primed_With_Resources<d_remove.Parameters, d_remove.Error>;
27
- 'write file': _et.Procedure_Primed_With_Resources<d_write_file.Parameters, d_write_file.Error>;
28
- 'write to stderr': _et.Procedure_Primed_With_Resources<d_write_to_stderr.Parameters, null>;
29
- 'write to stdout': _et.Procedure_Primed_With_Resources<d_write_to_stdout.Parameters, null>;
20
+ 'copy': _et.Command<d_copy.Parameters, d_copy.Error>;
21
+ 'execute any procedure executable': _et.Command<d_execute_any_procedure_executable.Parameters, d_execute_any_procedure_executable.Error>;
22
+ 'execute any smelly procedure executable': _et.Command<d_execute_any_smelly_procedure_executable.Parameters, d_execute_any_smelly_procedure_executable.Error>;
23
+ 'log error': _et.Command<d_log_error.Parameters, null>;
24
+ 'log': _et.Command<d_log.Parameters, null>;
25
+ 'make directory': _et.Command<d_make_directory.Parameters, d_make_directory.Error>;
26
+ 'remove': _et.Command<d_remove.Parameters, d_remove.Error>;
27
+ 'write file': _et.Command<d_write_file.Parameters, d_write_file.Error>;
28
+ 'write to stderr': _et.Command<d_write_to_stderr.Parameters, null>;
29
+ 'write to stdout': _et.Command<d_write_to_stdout.Parameters, null>;
30
30
  };
31
31
  'queries': {
32
32
  'execute any query executable': _et.Query_Primed_With_Resources<d_execute_any_query_executable.Parameters, d_execute_any_query_executable.Result, d_execute_any_query_executable.Error>;
@@ -40,5 +40,5 @@ export type Available_Standard_Resources = {
40
40
  * `node` and the script name), and setting the process exit code to the
41
41
  * returned value when the async value completes.
42
42
  */
43
- export declare const run_main_procedure: (get_main: ($r: Available_Standard_Resources) => _et.Procedure_Primed_With_Resources<d_main.Parameters, d_main.Error>) => void;
43
+ export declare const run_main_procedure: (get_main: ($r: Available_Standard_Resources) => _et.Command<d_main.Parameters, d_main.Error>) => void;
44
44
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exupery-core-bin",
3
- "version": "0.3.20",
3
+ "version": "0.3.21",
4
4
  "license": "ISC",
5
5
  "description": "this is one of the core packages for Exupery. it provides functionality to create executables",
6
6
  "author": "Corno",
@@ -27,7 +27,7 @@
27
27
  "url": "git+https://github.com/corno/exupery-core.git"
28
28
  },
29
29
  "dependencies": {
30
- "exupery-core-async": "^0.3.27",
30
+ "exupery-core-async": "^0.3.35",
31
31
  "exupery-core-internals": "^0.3.1",
32
32
  "exupery-resources": "^0.3.7"
33
33
  }