tnp-helpers 19.0.71 → 19.0.73

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 (68) hide show
  1. package/browser/README.md +24 -24
  2. package/browser/fesm2022/tnp-helpers.mjs +400 -69
  3. package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
  4. package/browser/lib/base/classes/base-compiler-for-project.d.ts +4 -4
  5. package/browser/lib/base/classes/base-global-command-line.d.ts +14 -1
  6. package/browser/lib/build-info._auto-generated_.d.ts +1 -1
  7. package/browser/lib/utils.d.ts +25 -1
  8. package/browser/package.json +1 -1
  9. package/lib/base/classes/base-command-line-feature.backend.d.ts +47 -0
  10. package/lib/base/classes/base-command-line-feature.backend.js +147 -0
  11. package/lib/base/classes/base-command-line-feature.backend.js.map +1 -0
  12. package/lib/base/classes/base-compiler-for-project.d.ts +4 -4
  13. package/lib/base/classes/base-compiler-for-project.js +9 -11
  14. package/lib/base/classes/base-compiler-for-project.js.map +1 -1
  15. package/lib/base/classes/base-debounce-compiler-for-project.js +8 -5
  16. package/lib/base/classes/base-debounce-compiler-for-project.js.map +1 -1
  17. package/lib/base/classes/base-global-command-line.backend.d.ts +231 -0
  18. package/lib/base/classes/base-global-command-line.backend.js +1807 -0
  19. package/lib/base/classes/base-global-command-line.backend.js.map +1 -0
  20. package/lib/base/classes/base-global-command-line.d.ts +13 -0
  21. package/lib/base/classes/base-global-command-line.js +89 -4
  22. package/lib/base/classes/base-global-command-line.js.map +1 -1
  23. package/lib/base/classes/base-powershell.d.ts +1 -0
  24. package/lib/base/classes/base-powershell.js +13 -0
  25. package/lib/base/classes/base-powershell.js.map +1 -1
  26. package/lib/base/classes/base-project.js +10 -1
  27. package/lib/base/classes/base-project.js.map +1 -1
  28. package/lib/base/classes/base-vscode.js +14 -6
  29. package/lib/base/classes/base-vscode.js.map +1 -1
  30. package/lib/base/tcp-udp-ports/not-assignable-port.entity.js +2 -2
  31. package/lib/build-info._auto-generated_.d.ts +1 -1
  32. package/lib/build-info._auto-generated_.js +1 -1
  33. package/lib/helpers/for-backend/helpers-dependencies.backend.d.ts +3 -0
  34. package/lib/helpers/for-backend/helpers-dependencies.backend.js +34 -0
  35. package/lib/helpers/for-backend/helpers-dependencies.backend.js.map +1 -0
  36. package/lib/helpers/for-backend/helpers-network.backend.d.ts +9 -0
  37. package/lib/helpers/for-backend/helpers-network.backend.js +44 -0
  38. package/lib/helpers/for-backend/helpers-network.backend.js.map +1 -0
  39. package/lib/helpers/for-browser/angular.helper.js +2 -2
  40. package/lib/helpers/helpers-numbers.js.map +1 -1
  41. package/lib/old/base-component.js +2 -2
  42. package/lib/old/base-formly-component.js +2 -2
  43. package/lib/old/dual-component-ctrl.js +2 -2
  44. package/lib/utils.d.ts +25 -1
  45. package/lib/utils.js +195 -13
  46. package/lib/utils.js.map +1 -1
  47. package/lib/validators/validators-firedev.d.ts +3 -0
  48. package/lib/validators/validators-firedev.js +34 -0
  49. package/lib/validators/validators-firedev.js.map +1 -0
  50. package/lib/validators/validators-git.d.ts +3 -0
  51. package/lib/validators/validators-git.js +13 -0
  52. package/lib/validators/validators-git.js.map +1 -0
  53. package/lib/validators/validators-network.d.ts +3 -0
  54. package/lib/validators/validators-network.js +19 -0
  55. package/lib/validators/validators-network.js.map +1 -0
  56. package/lib/validators/validators.d.ts +6 -0
  57. package/lib/validators/validators.js +11 -0
  58. package/lib/validators/validators.js.map +1 -0
  59. package/package.json +1 -1
  60. package/tmp-environment.json +37 -0
  61. package/websql/README.md +24 -24
  62. package/websql/fesm2022/tnp-helpers.mjs +359 -12
  63. package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
  64. package/websql/lib/base/classes/base-compiler-for-project.d.ts +4 -4
  65. package/websql/lib/base/classes/base-global-command-line.d.ts +14 -1
  66. package/websql/lib/build-info._auto-generated_.d.ts +1 -1
  67. package/websql/lib/utils.d.ts +25 -1
  68. package/websql/package.json +1 -1
package/browser/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # MyLib
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
- > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1
+ # MyLib
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
+ > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -1,11 +1,12 @@
1
1
  import { Subject, BehaviorSubject } from 'rxjs';
2
- import { CoreModels, Utils, crossPlatformPath, _, CoreHelpers, UtilsTerminal, chalk, path, config, Helpers as Helpers$1, fse, folderName, fileName, UtilsNetwork } from 'tnp-core/browser';
2
+ import { CoreModels, Utils, crossPlatformPath, _, CoreHelpers, UtilsTerminal, chalk, path, config, Helpers as Helpers$1, fse, folderName, fileName, UtilsNetwork, UtilsSudo, isElevated } from 'tnp-core/browser';
3
+ import { createSourceFile, ScriptTarget, ScriptKind, isImportDeclaration, isExportDeclaration } from 'typescript';
3
4
  import * as fuzzy from 'fuzzy';
4
5
  import { Level } from 'ng2-logger/browser';
5
6
  import { CLASS } from 'typescript-class-helpers/browser';
6
7
  import { __decorate, __param, __metadata } from 'tslib';
7
8
  import { Taon, TaonBaseClass, TaonBaseContext } from 'taon/browser';
8
- import { IncCompiler, ChangeOfFile } from 'incremental-compiler/browser';
9
+ import { BaseClientCompiler } from 'incremental-compiler/browser';
9
10
 
10
11
  //#region @browser
11
12
  const componentContextSymbol = Symbol();
@@ -1040,6 +1041,11 @@ var UtilsTypescript;
1040
1041
  /* */
1041
1042
  /* */
1042
1043
  /* */
1044
+ /* */
1045
+ /* */
1046
+ /* */
1047
+ /* */
1048
+ /* */
1043
1049
  return (void 0);
1044
1050
  }
1045
1051
  UtilsTypescript.transformComponentStandaloneOption = transformComponentStandaloneOption;
@@ -1075,65 +1081,46 @@ var UtilsTypescript;
1075
1081
  //#endregion
1076
1082
  //#region remove tagged imports/exports
1077
1083
  function removeTaggedImportExport(tsFileContent, tags) {
1078
- /* */
1079
- /* */
1080
- /* */
1081
- /* */
1082
- /* */
1083
- /* */
1084
- /* */
1085
- /* */
1086
- /* */
1087
- /* */
1088
- /* */
1089
- /* */
1090
- /* */
1091
- /* */
1092
- /* */
1093
- /* */
1094
- /* */
1095
- /* */
1096
- /* */
1097
- /* */
1098
- /* */
1099
- /* */
1100
- /* */
1101
- /* */
1102
- /* */
1103
- /* */
1104
- /* */
1105
- /* */
1106
- /* */
1107
- /* */
1108
- /* */
1109
- /* */
1110
- /* */
1111
- /* */
1112
- /* */
1113
- /* */
1114
- /* */
1115
- /* */
1116
- /* */
1117
- /* */
1118
- /* */
1119
- /* */
1120
- /* */
1121
- /* */
1122
- /* */
1123
- /* */
1124
- /* */
1125
- /* */
1126
- /* */
1127
- /* */
1128
- /* */
1129
- /* */
1130
- /* */
1131
- /* */
1132
- /* */
1133
- /* */
1134
- /* */
1135
- /* */
1136
- return (void 0);
1084
+ const sourceFile = createSourceFile('temp.ts', tsFileContent, ScriptTarget.Latest, true, ScriptKind.TS);
1085
+ // debug && console.log(tsFileContent);
1086
+ const lines = tsFileContent.split(/\r?\n/);
1087
+ const tagRegex = new RegExp(tags
1088
+ .map(t => (Array.isArray(t) ? t[0] : t))
1089
+ .filter(Boolean)
1090
+ .map(t => Utils.escapeStringForRegEx(t))
1091
+ .join('|'), 'i');
1092
+ let a = 0;
1093
+ for (const statement of sourceFile.statements) {
1094
+ // debug && console.log('processing line ' + a++);
1095
+ if (!isImportDeclaration(statement) && !isExportDeclaration(statement)) {
1096
+ continue;
1097
+ }
1098
+ const start = statement.getStart();
1099
+ const end = statement.getEnd();
1100
+ const startLine = sourceFile.getLineAndCharacterOfPosition(start).line;
1101
+ const endLine = sourceFile.getLineAndCharacterOfPosition(end).line;
1102
+ // get full text including trailing comments
1103
+ const endLineText = lines[endLine]; // ← get real line content from file
1104
+ if (!tagRegex.test(endLineText))
1105
+ continue;
1106
+ // debug &&
1107
+ // console.log(`
1108
+ // start: ${start}
1109
+ // end: ${end}
1110
+ // startLine: ${startLine}
1111
+ // endLine: ${endLine}
1112
+ // endLineText: >> ${endLineText} <<
1113
+ // `);
1114
+ // console.log('removing line ' + startLine + ' to ' + endLine);
1115
+ for (let i = startLine; i <= endLine; i++) {
1116
+ const original = lines[i];
1117
+ lines[i] = '/* */' + ' '.repeat(Math.max(0, original.length - 4));
1118
+ }
1119
+ }
1120
+ // debug && console.log('\n\n\n\n');
1121
+ const result = lines.join('\n');
1122
+ // debug && console.log(result)
1123
+ return result;
1137
1124
  }
1138
1125
  UtilsTypescript.removeTaggedImportExport = removeTaggedImportExport;
1139
1126
  //#endregion
@@ -1302,7 +1289,8 @@ var UtilsTypescript;
1302
1289
  var UtilsHttp;
1303
1290
  (function (UtilsHttp) {
1304
1291
  //#region utils http / start http server
1305
- UtilsHttp.startHttpServer = async (cwd, port) => {
1292
+ UtilsHttp.startHttpServer = async (cwd, port, options) => {
1293
+ /* */
1306
1294
  /* */
1307
1295
  /* */
1308
1296
  /* */
@@ -1364,6 +1352,17 @@ var UtilsMd;
1364
1352
  /* */
1365
1353
  return (void 0);
1366
1354
  };
1355
+ UtilsMd.getAssetsFromFile = (absPathToFile) => {
1356
+ /* */
1357
+ /* */
1358
+ /* */
1359
+ /* */
1360
+ /* */
1361
+ /* */
1362
+ /* */
1363
+ /* */
1364
+ return (void 0);
1365
+ };
1367
1366
  /**
1368
1367
  * Extract links to other Markdown files from a given Markdown content.
1369
1368
  * @param mdfileContent
@@ -2537,6 +2536,214 @@ var UtilsDocker;
2537
2536
  //#endregion
2538
2537
  })(UtilsDocker || (UtilsDocker = {}));
2539
2538
  //#endregion
2539
+ //#region utils file sync
2540
+ /**
2541
+ * ! TODO @IN_PROGRESS @LAST
2542
+ */
2543
+ var UtilsFileSync;
2544
+ (function (UtilsFileSync) {
2545
+ //#region constants
2546
+ // ───── SAFETY SETTINGS ─────────────────────────────
2547
+ // Minimum realistic photo/video size (in bytes) before we even try
2548
+ const MIN_PHOTO_SIZE = 50_000; // ~50 KB — anything smaller is probably placeholder
2549
+ const MIN_VIDEO_SIZE = 500_000; // ~500 KB
2550
+ // How long we wait after the file stops growing before processing
2551
+ const STABILIZATION_MS = 5000; // 5 seconds is bulletproof
2552
+ //#endregion
2553
+ //#region for folders
2554
+ UtilsFileSync.forFolders = async (folder) => {
2555
+ /* */
2556
+ /* */
2557
+ /* */
2558
+ /* */
2559
+ /* */
2560
+ /* */
2561
+ /* */
2562
+ /* */
2563
+ /* */
2564
+ /* */
2565
+ /* */
2566
+ /* */
2567
+ /* */
2568
+ /* */
2569
+ /* */
2570
+ /* */
2571
+ /* */
2572
+ /* */
2573
+ /* */
2574
+ /* */
2575
+ /* */
2576
+ /* */
2577
+ /* */
2578
+ /* */
2579
+ /* */
2580
+ /* */
2581
+ /* */
2582
+ /* */
2583
+ /* */
2584
+ /* */
2585
+ /* */
2586
+ /* */
2587
+ /* */
2588
+ /* */
2589
+ /* */
2590
+ /* */
2591
+ /* */
2592
+ /* */
2593
+ /* */
2594
+ /* */
2595
+ /* */
2596
+ /* */
2597
+ /* */
2598
+ /* */
2599
+ /* */
2600
+ /* */
2601
+ /* */
2602
+ /* */
2603
+ /* */
2604
+ /* */
2605
+ /* */
2606
+ /* */
2607
+ /* */
2608
+ /* */
2609
+ /* */
2610
+ /* */
2611
+ /* */
2612
+ /* */
2613
+ /* */
2614
+ /* */
2615
+ /* */
2616
+ /* */
2617
+ /* */
2618
+ /* */
2619
+ /* */
2620
+ /* */
2621
+ /* */
2622
+ /* */
2623
+ /* */
2624
+ /* */
2625
+ /* */
2626
+ /* */
2627
+ /* */
2628
+ /* */
2629
+ /* */
2630
+ /* */
2631
+ /* */
2632
+ /* */
2633
+ /* */
2634
+ /* */
2635
+ /* */
2636
+ /* */
2637
+ /* */
2638
+ /* */
2639
+ /* */
2640
+ /* */
2641
+ /* */
2642
+ /* */
2643
+ /* */
2644
+ /* */
2645
+ /* */
2646
+ /* */
2647
+ /* */
2648
+ /* */
2649
+ /* */
2650
+ /* */
2651
+ /* */
2652
+ /* */
2653
+ /* */
2654
+ /* */
2655
+ /* */
2656
+ /* */
2657
+ return (void 0);
2658
+ };
2659
+ //#endregion
2660
+ //#region is hevc
2661
+ async function isHevc(file) {
2662
+ /* */
2663
+ /* */
2664
+ /* */
2665
+ /* */
2666
+ /* */
2667
+ /* */
2668
+ /* */
2669
+ /* */
2670
+ /* */
2671
+ /* */
2672
+ return (void 0);
2673
+ }
2674
+ //#endregion
2675
+ //#region safe process
2676
+ const safeProcess = async (filePath, wacherData) => {
2677
+ /* */
2678
+ /* */
2679
+ /* */
2680
+ /* */
2681
+ /* */
2682
+ /* */
2683
+ /* */
2684
+ /* */
2685
+ /* */
2686
+ /* */
2687
+ /* */
2688
+ /* */
2689
+ /* */
2690
+ /* */
2691
+ /* */
2692
+ /* */
2693
+ /* */
2694
+ /* */
2695
+ /* */
2696
+ /* */
2697
+ /* */
2698
+ /* */
2699
+ /* */
2700
+ /* */
2701
+ /* */
2702
+ /* */
2703
+ /* */
2704
+ /* */
2705
+ /* */
2706
+ /* */
2707
+ /* */
2708
+ /* */
2709
+ /* */
2710
+ /* */
2711
+ /* */
2712
+ /* */
2713
+ /* */
2714
+ /* */
2715
+ /* */
2716
+ /* */
2717
+ /* */
2718
+ /* */
2719
+ /* */
2720
+ /* */
2721
+ /* */
2722
+ /* */
2723
+ /* */
2724
+ /* */
2725
+ /* */
2726
+ /* */
2727
+ /* */
2728
+ /* */
2729
+ /* */
2730
+ /* */
2731
+ /* */
2732
+ /* */
2733
+ /* */
2734
+ /* */
2735
+ /* */
2736
+ /* */
2737
+ /* */
2738
+ /* */
2739
+ /* */
2740
+ /* */
2741
+ /* */
2742
+ /* */
2743
+ return (void 0);
2744
+ };
2745
+ //#endregion
2746
+ })(UtilsFileSync || (UtilsFileSync = {}));
2540
2747
 
2541
2748
  class HelpersArrayObj {
2542
2749
  from(s) {
@@ -7201,7 +7408,7 @@ const PROJECT_NPM_NAME = 'tnp-helpers';
7201
7408
  /**
7202
7409
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
7203
7410
  */
7204
- const CURRENT_PACKAGE_VERSION = '19.0.71';
7411
+ const CURRENT_PACKAGE_VERSION = '19.0.73';
7205
7412
  // THIS FILE IS GENERATED - DO NOT MODIFY
7206
7413
 
7207
7414
  //#endregion
@@ -8282,6 +8489,13 @@ class BaseProject {
8282
8489
  /* */
8283
8490
  /* */
8284
8491
  /* */
8492
+ /* */
8493
+ /* */
8494
+ /* */
8495
+ /* */
8496
+ /* */
8497
+ /* */
8498
+ /* */
8285
8499
  return (void 0);
8286
8500
  }
8287
8501
  //#endregion
@@ -13617,6 +13831,14 @@ class BaseVscodeHelpers extends BaseFeatureForProject {
13617
13831
  /* */
13618
13832
  /* */
13619
13833
  /* */
13834
+ /* */
13835
+ /* */
13836
+ /* */
13837
+ /* */
13838
+ /* */
13839
+ /* */
13840
+ /* */
13841
+ /* */
13620
13842
  return (void 0);
13621
13843
  }
13622
13844
  //#endregion
@@ -14460,10 +14682,8 @@ ${await this.getLastChangesFromCommits({
14460
14682
  }
14461
14683
 
14462
14684
  //#region imports
14463
- /* */
14464
- /* */
14465
14685
  //#endregion
14466
- class BaseCompilerForProject extends IncCompiler.Base {
14686
+ class BaseCompilerForProject extends BaseClientCompiler {
14467
14687
  //#region check folder compiler
14468
14688
  checkFolderCompiler(project, options, dontCheck = false) {
14469
14689
  /* */
@@ -14503,6 +14723,8 @@ class BaseCompilerForProject extends IncCompiler.Base {
14503
14723
  /* */
14504
14724
  /* */
14505
14725
  /* */
14726
+ /* */
14727
+ /* */
14506
14728
  return (void 0);
14507
14729
  }
14508
14730
  //#endregion
@@ -14550,7 +14772,11 @@ class BaseDebounceCompilerForProject extends BaseCompilerForProject {
14550
14772
  this.initialParams = initialParams || {};
14551
14773
  this.exitedFilesAbsPathes = absFilesPathes;
14552
14774
  return await this.action({
14553
- changeOfFiles: absFilesPathes.map(fileAbsolutePath => new ChangeOfFile(fileAbsolutePath, 'change')),
14775
+ changeOfFiles: absFilesPathes.map(fileAbsolutePath => ({
14776
+ fileAbsolutePath,
14777
+ eventName: 'change',
14778
+ datetime: new Date(),
14779
+ })),
14554
14780
  asyncEvent: false,
14555
14781
  });
14556
14782
  }
@@ -15398,6 +15624,32 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
15398
15624
  _() {
15399
15625
  Helpers.error('Please select git command');
15400
15626
  }
15627
+ /**
15628
+ * @returns true is sudo was used to restart the process
15629
+ */
15630
+ async _runAsSudoIfNotElevated({ globalCommandName, }) {
15631
+ /* */
15632
+ /* */
15633
+ /* */
15634
+ /* */
15635
+ /* */
15636
+ /* */
15637
+ /* */
15638
+ /* */
15639
+ /* */
15640
+ /* */
15641
+ /* */
15642
+ /* */
15643
+ /* */
15644
+ /* */
15645
+ /* */
15646
+ /* */
15647
+ /* */
15648
+ /* */
15649
+ /* */
15650
+ /* */
15651
+ return (void 0);
15652
+ }
15401
15653
  //#region commands / prevent cwd is not project
15402
15654
  /**
15403
15655
  * TODO return argument not need for now
@@ -15581,7 +15833,9 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
15581
15833
  /**
15582
15834
  * quick git update push
15583
15835
  */
15584
- async update() {
15836
+ async _update(commitMessage, force = false) {
15837
+ /* */
15838
+ /* */
15585
15839
  /* */
15586
15840
  /* */
15587
15841
  /* */
@@ -15593,6 +15847,14 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
15593
15847
  /* */
15594
15848
  /* */
15595
15849
  /* */
15850
+ /* */
15851
+ /* */
15852
+ return (void 0);
15853
+ }
15854
+ async forceup() {
15855
+ await this.forceUpdate();
15856
+ }
15857
+ async forceUpdate() {
15596
15858
  /* */
15597
15859
  /* */
15598
15860
  /* */
@@ -15600,6 +15862,16 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
15600
15862
  /* */
15601
15863
  return (void 0);
15602
15864
  }
15865
+ async update() {
15866
+ /* */
15867
+ /* */
15868
+ return (void 0);
15869
+ }
15870
+ async docsUp() {
15871
+ /* */
15872
+ /* */
15873
+ return (void 0);
15874
+ }
15603
15875
  async updateProject(project, force = false) {
15604
15876
  /* */
15605
15877
  /* */
@@ -17448,6 +17720,11 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
17448
17720
  //#endregion
17449
17721
  //#region commands / simulate domain
17450
17722
  async simulateDomain() {
17723
+ /* */
17724
+ /* */
17725
+ /* */
17726
+ /* */
17727
+ /* */
17451
17728
  /* */
17452
17729
  /* */
17453
17730
  /* */
@@ -18110,6 +18387,16 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
18110
18387
  //#endregion
18111
18388
  //#region commands / is online
18112
18389
  async isOnline() {
18390
+ /* */
18391
+ /* */
18392
+ /* */
18393
+ /* */
18394
+ /* */
18395
+ /* */
18396
+ /* */
18397
+ /* */
18398
+ /* */
18399
+ /* */
18113
18400
  /* */
18114
18401
  /* */
18115
18402
  /* */
@@ -18150,6 +18437,50 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
18150
18437
  /* */
18151
18438
  return (void 0);
18152
18439
  }
18440
+ //#endregion
18441
+ //#region commands / is elevated
18442
+ async isElevated() {
18443
+ /* */
18444
+ /* */
18445
+ /* */
18446
+ /* */
18447
+ /* */
18448
+ return (void 0);
18449
+ }
18450
+ //#endregion
18451
+ //#region commands / sudo check
18452
+ async sudoCheck() {
18453
+ const sudoStatus = await UtilsSudo.getStatus();
18454
+ console.log('is command available', sudoStatus.isAvailable);
18455
+ console.log('is inline sudo enable', sudoStatus.isInline);
18456
+ console.log('is this command elevated (sudo or admin)', await isElevated());
18457
+ this._exit();
18458
+ }
18459
+ //#endregion
18460
+ //#region commands / python modules exists
18461
+ async pythonModuleExists() {
18462
+ /* */
18463
+ /* */
18464
+ /* */
18465
+ /* */
18466
+ /* */
18467
+ /* */
18468
+ /* */
18469
+ /* */
18470
+ /* */
18471
+ /* */
18472
+ /* */
18473
+ /* */
18474
+ /* */
18475
+ /* */
18476
+ /* */
18477
+ /* */
18478
+ /* */
18479
+ /* */
18480
+ /* */
18481
+ /* */
18482
+ return (void 0);
18483
+ }
18153
18484
  }
18154
18485
 
18155
18486
  //#region imports
@@ -19921,5 +20252,5 @@ const Helpers = HelpersTaon.Instance;
19921
20252
  * Generated bundle index. Do not edit.
19922
20253
  */
19923
20254
 
19924
- export { BaseCLiWorkerStartMode, BaseCLiWorkerStartParams, BaseCliMethodOptions, BaseCliWorker, BaseCliWorkerConfig, BaseCliWorkerConfigGetContextOptions, BaseCliWorkerTerminalUI, BaseCliWorkerUtils, BaseCommandLineFeature, BaseCompilerForProject, BaseDebounceCompilerForProject, BaseFeatureForProject, BaseFileFoldersOperations, BaseGit, BaseGlobalCommandLine, BaseIgnoreHideHelpers, BaseJsonFileReader, BaseLibraryBuild, BaseLinkedProjects, BaseLinter, BaseNodeModules, BaseNpmHelpers, BasePackageJson, BaseProcessManger, BaseProject, BaseProjectResolver, BaseProjectTypeArr, BaseQuickFixes, BaseReleaseProcess, BaseVscodeHelpers, CommandConfig, CommandProcess, CommandProcessState, CommitData, CoreAngularProject, CoreProject, CoreTypescriptProject, Helpers, HelpersAngular, LinkedPorjectsConfig, LinkedProject, PackageJsonDependencyObjArr, Port, PortStatusArr, PortsWorker, ProgressData, TaonBaseCliWorkerController, TaonPortsController, UtilsDocker, UtilsHttp, UtilsJava, UtilsMd, UtilsNpm, UtilsPasswords, UtilsQuickFixes, UtilsTaonWorker, UtilsTypescript, UtilsVSCode, UtilsZip, UtilsZipBrowser, executeCommand, getBaseCliWorkerDatabaseConfig };
20255
+ export { BaseCLiWorkerStartMode, BaseCLiWorkerStartParams, BaseCliMethodOptions, BaseCliWorker, BaseCliWorkerConfig, BaseCliWorkerConfigGetContextOptions, BaseCliWorkerTerminalUI, BaseCliWorkerUtils, BaseCommandLineFeature, BaseCompilerForProject, BaseDebounceCompilerForProject, BaseFeatureForProject, BaseFileFoldersOperations, BaseGit, BaseGlobalCommandLine, BaseIgnoreHideHelpers, BaseJsonFileReader, BaseLibraryBuild, BaseLinkedProjects, BaseLinter, BaseNodeModules, BaseNpmHelpers, BasePackageJson, BaseProcessManger, BaseProject, BaseProjectResolver, BaseProjectTypeArr, BaseQuickFixes, BaseReleaseProcess, BaseVscodeHelpers, CommandConfig, CommandProcess, CommandProcessState, CommitData, CoreAngularProject, CoreProject, CoreTypescriptProject, Helpers, HelpersAngular, LinkedPorjectsConfig, LinkedProject, PackageJsonDependencyObjArr, Port, PortStatusArr, PortsWorker, ProgressData, TaonBaseCliWorkerController, TaonPortsController, UtilsDocker, UtilsFileSync, UtilsHttp, UtilsJava, UtilsMd, UtilsNpm, UtilsPasswords, UtilsQuickFixes, UtilsTaonWorker, UtilsTypescript, UtilsVSCode, UtilsZip, UtilsZipBrowser, executeCommand, getBaseCliWorkerDatabaseConfig };
19925
20256
  //# sourceMappingURL=tnp-helpers.mjs.map