exupery-core-bin 0.3.12 → 0.3.14

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.
Files changed (37) hide show
  1. package/dist/algorithms/procedures/{unguaranteed/copy.d.ts → copy.d.ts} +1 -1
  2. package/dist/algorithms/procedures/{unguaranteed/copy.js → copy.js} +1 -1
  3. package/dist/algorithms/procedures/{unguaranteed/execute_any_procedure_executable.d.ts → execute_any_procedure_executable.d.ts} +1 -1
  4. package/dist/algorithms/procedures/{unguaranteed/execute_any_procedure_executable.js → execute_any_procedure_executable.js} +1 -1
  5. package/dist/algorithms/procedures/{unguaranteed/execute_any_smelly_procedure_executable.d.ts → execute_any_smelly_procedure_executable.d.ts} +1 -1
  6. package/dist/algorithms/procedures/{unguaranteed/execute_any_smelly_procedure_executable.js → execute_any_smelly_procedure_executable.js} +1 -1
  7. package/dist/algorithms/procedures/{guaranteed/log.d.ts → log.d.ts} +1 -1
  8. package/dist/algorithms/procedures/{guaranteed/log.js → log.js} +1 -1
  9. package/dist/algorithms/procedures/{guaranteed/log_error.d.ts → log_error.d.ts} +1 -1
  10. package/dist/algorithms/procedures/{guaranteed/log_error.js → log_error.js} +1 -1
  11. package/dist/algorithms/procedures/{unguaranteed/make_directory.d.ts → make_directory.d.ts} +1 -1
  12. package/dist/algorithms/procedures/{unguaranteed/make_directory.js → make_directory.js} +1 -1
  13. package/dist/algorithms/procedures/{unguaranteed/remove.d.ts → remove.d.ts} +1 -1
  14. package/dist/algorithms/procedures/{unguaranteed/remove.js → remove.js} +1 -1
  15. package/dist/algorithms/procedures/{unguaranteed/write_file.d.ts → write_file.d.ts} +1 -1
  16. package/dist/algorithms/procedures/{unguaranteed/write_file.js → write_file.js} +1 -1
  17. package/dist/algorithms/procedures/{guaranteed/write_to_stderr.d.ts → write_to_stderr.d.ts} +1 -1
  18. package/dist/algorithms/procedures/{guaranteed/write_to_stderr.js → write_to_stderr.js} +1 -1
  19. package/dist/algorithms/procedures/{guaranteed/write_to_stdout.d.ts → write_to_stdout.d.ts} +1 -1
  20. package/dist/algorithms/procedures/{guaranteed/write_to_stdout.js → write_to_stdout.js} +1 -1
  21. package/dist/algorithms/queries/guaranteed/execute_query_executable_and_catch.d.ts +1 -1
  22. package/dist/algorithms/queries/guaranteed/execute_query_executable_and_catch.js +1 -1
  23. package/dist/algorithms/queries/guaranteed/get_instream_data.d.ts +1 -1
  24. package/dist/algorithms/queries/guaranteed/get_instream_data.js +1 -1
  25. package/dist/algorithms/queries/unguaranteed/execute_any_query_executable.d.ts +1 -1
  26. package/dist/algorithms/queries/unguaranteed/execute_any_query_executable.js +1 -1
  27. package/dist/algorithms/queries/unguaranteed/read_directory.d.ts +1 -1
  28. package/dist/algorithms/queries/unguaranteed/read_directory.js +1 -1
  29. package/dist/algorithms/queries/unguaranteed/read_file.d.ts +1 -1
  30. package/dist/algorithms/queries/unguaranteed/read_file.js +1 -1
  31. package/dist/algorithms/queries/unguaranteed/stat.d.ts +1 -1
  32. package/dist/algorithms/queries/unguaranteed/stat.js +1 -1
  33. package/dist/index.d.ts +15 -20
  34. package/dist/index.js +14 -25
  35. package/package.json +2 -2
  36. package/dist/algorithms/procedures/guaranteed/do_nothing.d.ts +0 -2
  37. package/dist/algorithms/procedures/guaranteed/do_nothing.js +0 -35
@@ -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.Unguaranteed_Procedure_Primed_With_Resources<d.Parameters, d.Error>;
3
+ export declare const $$: _et.Procedure_Primed_With_Resources<d.Parameters, d.Error>;
@@ -34,7 +34,7 @@ const $$ = ($p) => {
34
34
  }
35
35
  return path;
36
36
  };
37
- return _easync.__create_unguaranteed_procedure({
37
+ return _easync.__create_procedure({
38
38
  'execute': (on_success, on_exception) => {
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.Unguaranteed_Procedure_Primed_With_Resources<d.Parameters, d.Error>;
8
+ export declare const $$: _et.Procedure_Primed_With_Resources<d.Parameters, d.Error>;
@@ -34,7 +34,7 @@ const node_child_process_1 = require("node:child_process");
34
34
  */
35
35
  const $$ = ($p) => {
36
36
  const args = $p.args.__get_raw_copy();
37
- return _easync.__create_unguaranteed_procedure({
37
+ return _easync.__create_procedure({
38
38
  'execute': (on_success, on_exception) => {
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.Unguaranteed_Procedure_Primed_With_Resources<d.Parameters, d.Error>;
8
+ export declare const $$: _et.Procedure_Primed_With_Resources<d.Parameters, d.Error>;
@@ -35,7 +35,7 @@ const node_child_process_1 = require("node:child_process");
35
35
  */
36
36
  const $$ = ($p) => {
37
37
  const args = $p.args.__get_raw_copy();
38
- return _easync.__create_unguaranteed_procedure({
38
+ return _easync.__create_procedure({
39
39
  'execute': (on_success, on_exception) => {
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.Guaranteed_Procedure_Primed_With_Resources<d.Parameters>;
3
+ export declare const $$: _et.Procedure_Primed_With_Resources<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
  const $$ = ($p) => {
29
- return _easync.__create_guaranted_procedure({
29
+ return _easync.__create_procedure({
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.Guaranteed_Procedure_Primed_With_Resources<d.Parameters>;
3
+ export declare const $$: _et.Procedure_Primed_With_Resources<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
  const $$ = ($p) => {
29
- return _easync.__create_guaranted_procedure({
29
+ return _easync.__create_procedure({
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.Unguaranteed_Procedure_Primed_With_Resources<d.Parameters, d.Error>;
3
+ export declare const $$: _et.Procedure_Primed_With_Resources<d.Parameters, d.Error>;
@@ -34,7 +34,7 @@ const $$ = ($p) => {
34
34
  }
35
35
  return path;
36
36
  };
37
- return _easync.__create_unguaranteed_procedure({
37
+ return _easync.__create_procedure({
38
38
  'execute': (on_success, on_exception) => {
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.Unguaranteed_Procedure_Primed_With_Resources<d.Parameters, d.Error>;
3
+ export declare const $$: _et.Procedure_Primed_With_Resources<d.Parameters, d.Error>;
@@ -34,7 +34,7 @@ const $$ = ($p) => {
34
34
  }
35
35
  return path;
36
36
  };
37
- return _easync.__create_unguaranteed_procedure({
37
+ return _easync.__create_procedure({
38
38
  'execute': (on_success, on_exception) => {
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.Unguaranteed_Procedure_Primed_With_Resources<d.Parameters, d.Error>;
3
+ export declare const $$: _et.Procedure_Primed_With_Resources<d.Parameters, d.Error>;
@@ -35,7 +35,7 @@ const $$ = ($p) => {
35
35
  }
36
36
  return path;
37
37
  };
38
- return _easync.__create_unguaranteed_procedure({
38
+ return _easync.__create_procedure({
39
39
  'execute': (on_success, on_exception) => {
40
40
  const fname = __possibly_escape_filename($p.path.path, $p.path['escape spaces in path']);
41
41
  (0, fs_1.mkdir)((0, path_1.dirname)(fname), {
@@ -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.Guaranteed_Procedure_Primed_With_Resources<d.Parameters>;
3
+ export declare const $$: _et.Procedure_Primed_With_Resources<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
  const $$ = ($p) => {
29
- return _easync.__create_guaranted_procedure({
29
+ return _easync.__create_procedure({
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.Guaranteed_Procedure_Primed_With_Resources<d.Parameters>;
3
+ export declare const $$: _et.Procedure_Primed_With_Resources<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
  const $$ = ($p) => {
29
- return _easync.__create_guaranted_procedure({
29
+ return _easync.__create_procedure({
30
30
  'execute': (on_success) => {
31
31
  process.stdout.write($p);
32
32
  on_success();
@@ -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 be side effect free
6
6
  * There is no way to give guarantees about that though
7
7
  */
8
- export declare const $$: _et.Guaranteed_Query_Primed_With_Resources<d.Parameters, d.Result>;
8
+ export declare const $$: _et.Query_Primed_With_Resources<d.Parameters, d.Result, null>;
@@ -34,7 +34,7 @@ const node_child_process_1 = require("node:child_process");
34
34
  */
35
35
  const $$ = ($p) => {
36
36
  const args = $p.args.__get_raw_copy();
37
- return _easync.__create_guaranteed_query({
37
+ return _easync.__create_query({
38
38
  'execute': (on_result) => {
39
39
  const child = (0, node_child_process_1.spawn)($p.program, args, {
40
40
  shell: false, // ✅ no implicit parsing
@@ -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/get_instream_data/data_types/target";
3
- export declare const $$: _et.Guaranteed_Query_Primed_With_Resources<null, d.Result>;
3
+ export declare const $$: _et.Query_Primed_With_Resources<null, d.Result, 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
  const $$ = () => {
29
- return _easync.__create_guaranteed_query({
29
+ return _easync.__create_query({
30
30
  'execute': (on_value) => {
31
31
  const stdin = process.stdin;
32
32
  let data = '';
@@ -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 be side effect free
6
6
  * There is no way to give guarantees about that though
7
7
  */
8
- export declare const $$: _et.Unguaranteed_Query_Primed_With_Resources<d.Parameters, d.Result, d.Error>;
8
+ export declare const $$: _et.Query_Primed_With_Resources<d.Parameters, d.Result, d.Error>;
@@ -34,7 +34,7 @@ const node_child_process_1 = require("node:child_process");
34
34
  */
35
35
  const $$ = ($p) => {
36
36
  const args = $p.args.__get_raw_copy();
37
- return _easync.__create_unguaranteed_query({
37
+ return _easync.__create_query({
38
38
  'execute': (on_value, on_exception) => {
39
39
  const child = (0, node_child_process_1.spawn)($p.program, args, {
40
40
  shell: false, // ✅ no implicit parsing
@@ -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/read_directory/data_types/target";
3
- export declare const $$: _et.Unguaranteed_Query_Primed_With_Resources<d.Parameters, d.Result, d.Error>;
3
+ export declare const $$: _et.Query_Primed_With_Resources<d.Parameters, d.Result, d.Error>;
@@ -34,7 +34,7 @@ const $$ = ($p) => {
34
34
  }
35
35
  return path;
36
36
  };
37
- return _easync.__create_unguaranteed_query({
37
+ return _easync.__create_query({
38
38
  'execute': (on_value, on_exception) => {
39
39
  (0, fs_1.readdir)(__possibly_escape_filename($p.path.path, $p.path['escape spaces in path']), {
40
40
  'encoding': 'utf-8',
@@ -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/read_file/data_types/target";
3
- export declare const $$: _et.Unguaranteed_Query_Primed_With_Resources<d.Parameters, d.Result, d.Error>;
3
+ export declare const $$: _et.Query_Primed_With_Resources<d.Parameters, d.Result, d.Error>;
@@ -34,7 +34,7 @@ const $$ = ($p) => {
34
34
  }
35
35
  return path;
36
36
  };
37
- return _easync.__create_unguaranteed_query({
37
+ return _easync.__create_query({
38
38
  'execute': (on_value, on_exception) => {
39
39
  (0, fs_1.readFile)(__possibly_escape_filename($p.path, $p['escape spaces in path']), { 'encoding': 'utf-8' }, (err, data) => {
40
40
  if (err) {
@@ -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/stat/data_types/target";
3
- export declare const $$: _et.Unguaranteed_Query_Primed_With_Resources<d.Parameters, d.Result, d.Error>;
3
+ export declare const $$: _et.Query_Primed_With_Resources<d.Parameters, d.Result, d.Error>;
@@ -34,7 +34,7 @@ const $$ = ($p) => {
34
34
  }
35
35
  return path;
36
36
  };
37
- return _easync.__create_unguaranteed_query({
37
+ return _easync.__create_query({
38
38
  'execute': (on_value, on_exception) => {
39
39
  (0, fs_1.stat)(__possibly_escape_filename($p.path, $p['escape spaces in path']), (err, stats) => {
40
40
  if (err) {
package/dist/index.d.ts CHANGED
@@ -22,33 +22,28 @@ export type Error = {
22
22
  type temp_instream_parameters = null;
23
23
  export type Available_Standard_Resources = {
24
24
  'procedures': {
25
- 'copy': _et.Unguaranteed_Procedure_Primed_With_Resources<d_copy.Parameters, d_copy.Error>;
26
- 'execute any procedure executable': _et.Unguaranteed_Procedure_Primed_With_Resources<d_execute_any_procedure_executable.Parameters, d_execute_any_procedure_executable.Error>;
27
- 'execute any smelly procedure executable': _et.Unguaranteed_Procedure_Primed_With_Resources<d_execute_any_smelly_procedure_executable.Parameters, d_execute_any_smelly_procedure_executable.Error>;
28
- 'log error': _et.Guaranteed_Procedure_Primed_With_Resources<d_log_error.Parameters>;
29
- 'log': _et.Guaranteed_Procedure_Primed_With_Resources<d_log.Parameters>;
30
- 'make directory': _et.Unguaranteed_Procedure_Primed_With_Resources<d_make_directory.Parameters, d_make_directory.Error>;
31
- 'remove': _et.Unguaranteed_Procedure_Primed_With_Resources<d_remove.Parameters, d_remove.Error>;
32
- 'write file': _et.Unguaranteed_Procedure_Primed_With_Resources<d_write_file.Parameters, d_write_file.Error>;
33
- 'write to stderr': _et.Guaranteed_Procedure_Primed_With_Resources<d_write_to_stderr.Parameters>;
34
- 'write to stdout': _et.Guaranteed_Procedure_Primed_With_Resources<d_write_to_stdout.Parameters>;
25
+ 'copy': _et.Procedure_Primed_With_Resources<d_copy.Parameters, d_copy.Error>;
26
+ 'execute any procedure executable': _et.Procedure_Primed_With_Resources<d_execute_any_procedure_executable.Parameters, d_execute_any_procedure_executable.Error>;
27
+ 'execute any smelly procedure executable': _et.Procedure_Primed_With_Resources<d_execute_any_smelly_procedure_executable.Parameters, d_execute_any_smelly_procedure_executable.Error>;
28
+ 'log error': _et.Procedure_Primed_With_Resources<d_log_error.Parameters, null>;
29
+ 'log': _et.Procedure_Primed_With_Resources<d_log.Parameters, null>;
30
+ 'make directory': _et.Procedure_Primed_With_Resources<d_make_directory.Parameters, d_make_directory.Error>;
31
+ 'remove': _et.Procedure_Primed_With_Resources<d_remove.Parameters, d_remove.Error>;
32
+ 'write file': _et.Procedure_Primed_With_Resources<d_write_file.Parameters, d_write_file.Error>;
33
+ 'write to stderr': _et.Procedure_Primed_With_Resources<d_write_to_stderr.Parameters, null>;
34
+ 'write to stdout': _et.Procedure_Primed_With_Resources<d_write_to_stdout.Parameters, null>;
35
35
  };
36
36
  'queries': {
37
- 'execute any query executable': _et.Unguaranteed_Query_Primed_With_Resources<d_execute_any_query_executable.Parameters, d_execute_any_query_executable.Result, d_execute_any_query_executable.Error>;
38
- 'get instream data': _et.Guaranteed_Query_Primed_With_Resources<temp_instream_parameters, d_get_instream_data.Result>;
39
- 'read directory': _et.Unguaranteed_Query_Primed_With_Resources<d_read_directory.Parameters, d_read_directory.Result, d_read_directory.Error>;
40
- 'read file': _et.Unguaranteed_Query_Primed_With_Resources<d_read_file.Parameters, d_read_file.Result, d_read_file.Error>;
37
+ '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>;
38
+ 'get instream data': _et.Query_Primed_With_Resources<temp_instream_parameters, d_get_instream_data.Result, null>;
39
+ 'read directory': _et.Query_Primed_With_Resources<d_read_directory.Parameters, d_read_directory.Result, d_read_directory.Error>;
40
+ 'read file': _et.Query_Primed_With_Resources<d_read_file.Parameters, d_read_file.Result, d_read_file.Error>;
41
41
  };
42
42
  };
43
- /**
44
- * Runs a program main function, passing command line arguments (excluding
45
- * `node` and the script name)
46
- */
47
- export declare const run_guaranteed_main_procedure: <Main_Resources>(initialize_resources: ($r: Available_Standard_Resources) => Main_Resources, main: _et.Guaranteed_Procedure<Parameters, Main_Resources>) => void;
48
43
  /**
49
44
  * Runs a program main function, passing command line arguments (excluding
50
45
  * `node` and the script name), and setting the process exit code to the
51
46
  * returned value when the async value completes.
52
47
  */
53
- export declare const run_unguaranteed_main_procedure: <Main_Resources>(initialize_resources: ($r: Available_Standard_Resources) => Main_Resources, main: _et.Unguaranteed_Procedure<Parameters, Error, Main_Resources>) => void;
48
+ export declare const run_main_procedure: (get_main: ($r: Available_Standard_Resources) => _et.Procedure_Primed_With_Resources<Parameters, Error>) => void;
54
49
  export {};
package/dist/index.js CHANGED
@@ -23,18 +23,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.run_unguaranteed_main_procedure = exports.run_guaranteed_main_procedure = void 0;
26
+ exports.run_main_procedure = void 0;
27
27
  const _ei = __importStar(require("exupery-core-internals"));
28
- const copy_1 = require("./algorithms/procedures/unguaranteed/copy");
29
- const execute_any_procedure_executable_1 = require("./algorithms/procedures/unguaranteed/execute_any_procedure_executable");
30
- const execute_any_smelly_procedure_executable_1 = require("./algorithms/procedures/unguaranteed/execute_any_smelly_procedure_executable");
31
- const log_1 = require("./algorithms/procedures/guaranteed/log");
32
- const log_error_1 = require("./algorithms/procedures/guaranteed/log_error");
33
- const make_directory_1 = require("./algorithms/procedures/unguaranteed/make_directory");
34
- const remove_1 = require("./algorithms/procedures/unguaranteed/remove");
35
- const write_file_1 = require("./algorithms/procedures/unguaranteed/write_file");
36
- const write_to_stderr_1 = require("./algorithms/procedures/guaranteed/write_to_stderr");
37
- const write_to_stdout_1 = require("./algorithms/procedures/guaranteed/write_to_stdout");
28
+ const copy_1 = require("./algorithms/procedures/copy");
29
+ const execute_any_procedure_executable_1 = require("./algorithms/procedures/execute_any_procedure_executable");
30
+ const execute_any_smelly_procedure_executable_1 = require("./algorithms/procedures/execute_any_smelly_procedure_executable");
31
+ const log_1 = require("./algorithms/procedures/log");
32
+ const log_error_1 = require("./algorithms/procedures/log_error");
33
+ const make_directory_1 = require("./algorithms/procedures/make_directory");
34
+ const remove_1 = require("./algorithms/procedures/remove");
35
+ const write_file_1 = require("./algorithms/procedures/write_file");
36
+ const write_to_stderr_1 = require("./algorithms/procedures/write_to_stderr");
37
+ const write_to_stdout_1 = require("./algorithms/procedures/write_to_stdout");
38
38
  const execute_any_query_executable_1 = require("./algorithms/queries/unguaranteed/execute_any_query_executable");
39
39
  const get_instream_data_1 = require("./algorithms/queries/guaranteed/get_instream_data");
40
40
  const read_directory_1 = require("./algorithms/queries/unguaranteed/read_directory");
@@ -62,28 +62,17 @@ const create_available_resources = () => {
62
62
  }
63
63
  };
64
64
  };
65
- /**
66
- * Runs a program main function, passing command line arguments (excluding
67
- * `node` and the script name)
68
- */
69
- const run_guaranteed_main_procedure = (initialize_resources, main) => {
70
- main(initialize_resources(create_available_resources()))({
71
- 'arguments': _ei.array_literal(process.argv.slice(2))
72
- }).__start(() => {
73
- });
74
- };
75
- exports.run_guaranteed_main_procedure = run_guaranteed_main_procedure;
76
65
  /**
77
66
  * Runs a program main function, passing command line arguments (excluding
78
67
  * `node` and the script name), and setting the process exit code to the
79
68
  * returned value when the async value completes.
80
69
  */
81
- const run_unguaranteed_main_procedure = (initialize_resources, main) => {
82
- main(initialize_resources(create_available_resources()))({
70
+ const run_main_procedure = (get_main) => {
71
+ get_main(create_available_resources())({
83
72
  'arguments': _ei.array_literal(process.argv.slice(2))
84
73
  }).__start(() => {
85
74
  }, ($) => {
86
75
  process.exitCode = $['exit code'];
87
76
  });
88
77
  };
89
- exports.run_unguaranteed_main_procedure = run_unguaranteed_main_procedure;
78
+ exports.run_main_procedure = run_main_procedure;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exupery-core-bin",
3
- "version": "0.3.12",
3
+ "version": "0.3.14",
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.7",
30
+ "exupery-core-async": "^0.3.10",
31
31
  "exupery-core-internals": "^0.3.1",
32
32
  "exupery-resources": "^0.3.6"
33
33
  }
@@ -1,2 +0,0 @@
1
- import * as _et from 'exupery-core-types';
2
- export declare const $$: _et.Guaranteed_Procedure_Primed_With_Resources<null>;
@@ -1,35 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.$$ = void 0;
27
- const _easync = __importStar(require("exupery-core-async"));
28
- const $$ = ($p) => {
29
- return _easync.__create_guaranted_procedure({
30
- 'execute': (on_success) => {
31
- on_success();
32
- }
33
- });
34
- };
35
- exports.$$ = $$;