penguins-eggs 10.0.19 → 10.0.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.
@@ -1461,5 +1461,5 @@
1461
1461
  ]
1462
1462
  }
1463
1463
  },
1464
- "version": "10.0.19"
1464
+ "version": "10.0.21"
1465
1465
  }
package/README.md CHANGED
@@ -486,7 +486,7 @@ EXAMPLES
486
486
  $ eggs adapt
487
487
  ```
488
488
 
489
- _See code: [src/commands/adapt.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/adapt.ts)_
489
+ _See code: [src/commands/adapt.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/adapt.ts)_
490
490
 
491
491
  ## `eggs analyze`
492
492
 
@@ -507,7 +507,7 @@ EXAMPLES
507
507
  sudo eggs analyze
508
508
  ```
509
509
 
510
- _See code: [src/commands/analyze.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/analyze.ts)_
510
+ _See code: [src/commands/analyze.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/analyze.ts)_
511
511
 
512
512
  ## `eggs autocomplete [SHELL]`
513
513
 
@@ -538,7 +538,7 @@ EXAMPLES
538
538
  $ eggs autocomplete --refresh-cache
539
539
  ```
540
540
 
541
- _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.1.7/src/commands/autocomplete/index.ts)_
541
+ _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.1.11/src/commands/autocomplete/index.ts)_
542
542
 
543
543
  ## `eggs calamares`
544
544
 
@@ -571,7 +571,7 @@ EXAMPLES
571
571
  sudo eggs calamares --remove
572
572
  ```
573
573
 
574
- _See code: [src/commands/calamares.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/calamares.ts)_
574
+ _See code: [src/commands/calamares.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/calamares.ts)_
575
575
 
576
576
  ## `eggs config`
577
577
 
@@ -598,7 +598,7 @@ EXAMPLES
598
598
  sudo eggs config --clean --nointeractive
599
599
  ```
600
600
 
601
- _See code: [src/commands/config.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/config.ts)_
601
+ _See code: [src/commands/config.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/config.ts)_
602
602
 
603
603
  ## `eggs cuckoo`
604
604
 
@@ -618,7 +618,7 @@ EXAMPLES
618
618
  sudo eggs cuckoo
619
619
  ```
620
620
 
621
- _See code: [src/commands/cuckoo.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/cuckoo.ts)_
621
+ _See code: [src/commands/cuckoo.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/cuckoo.ts)_
622
622
 
623
623
  ## `eggs dad`
624
624
 
@@ -646,7 +646,7 @@ EXAMPLES
646
646
  sudo dad --default
647
647
  ```
648
648
 
649
- _See code: [src/commands/dad.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/dad.ts)_
649
+ _See code: [src/commands/dad.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/dad.ts)_
650
650
 
651
651
  ## `eggs export deb`
652
652
 
@@ -673,7 +673,7 @@ EXAMPLES
673
673
  $ eggs export deb --all
674
674
  ```
675
675
 
676
- _See code: [src/commands/export/deb.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/export/deb.ts)_
676
+ _See code: [src/commands/export/deb.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/export/deb.ts)_
677
677
 
678
678
  ## `eggs export iso`
679
679
 
@@ -698,7 +698,7 @@ EXAMPLES
698
698
  $ eggs export iso --clean
699
699
  ```
700
700
 
701
- _See code: [src/commands/export/iso.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/export/iso.ts)_
701
+ _See code: [src/commands/export/iso.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/export/iso.ts)_
702
702
 
703
703
  ## `eggs help [COMMAND]`
704
704
 
@@ -718,7 +718,7 @@ DESCRIPTION
718
718
  Display help for eggs.
719
719
  ```
720
720
 
721
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.6/src/commands/help.ts)_
721
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.7/src/commands/help.ts)_
722
722
 
723
723
  ## `eggs install`
724
724
 
@@ -759,7 +759,7 @@ EXAMPLES
759
759
  sudo eggs install --chroot
760
760
  ```
761
761
 
762
- _See code: [src/commands/install.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/install.ts)_
762
+ _See code: [src/commands/install.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/install.ts)_
763
763
 
764
764
  ## `eggs kill`
765
765
 
@@ -782,7 +782,7 @@ EXAMPLES
782
782
  sudo eggs kill
783
783
  ```
784
784
 
785
- _See code: [src/commands/kill.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/kill.ts)_
785
+ _See code: [src/commands/kill.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/kill.ts)_
786
786
 
787
787
  ## `eggs krill`
788
788
 
@@ -841,7 +841,7 @@ EXAMPLES
841
841
  $ eggs mom
842
842
  ```
843
843
 
844
- _See code: [src/commands/mom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/mom.ts)_
844
+ _See code: [src/commands/mom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/mom.ts)_
845
845
 
846
846
  ## `eggs produce`
847
847
 
@@ -898,7 +898,7 @@ EXAMPLES
898
898
  sudo eggs produce --excludes home # exclude ~/*
899
899
  ```
900
900
 
901
- _See code: [src/commands/produce.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/produce.ts)_
901
+ _See code: [src/commands/produce.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/produce.ts)_
902
902
 
903
903
  ## `eggs status`
904
904
 
@@ -919,7 +919,7 @@ EXAMPLES
919
919
  $ eggs status
920
920
  ```
921
921
 
922
- _See code: [src/commands/status.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/status.ts)_
922
+ _See code: [src/commands/status.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/status.ts)_
923
923
 
924
924
  ## `eggs syncfrom`
925
925
 
@@ -945,7 +945,7 @@ EXAMPLES
945
945
  sudo eggs syncfrom --file /path/to/luks-volume
946
946
  ```
947
947
 
948
- _See code: [src/commands/syncfrom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/syncfrom.ts)_
948
+ _See code: [src/commands/syncfrom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/syncfrom.ts)_
949
949
 
950
950
  ## `eggs syncto`
951
951
 
@@ -972,7 +972,7 @@ EXAMPLES
972
972
  sudo eggs syncto --excludes
973
973
  ```
974
974
 
975
- _See code: [src/commands/syncto.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/syncto.ts)_
975
+ _See code: [src/commands/syncto.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/syncto.ts)_
976
976
 
977
977
  ## `eggs tools clean`
978
978
 
@@ -994,7 +994,7 @@ EXAMPLES
994
994
  sudo eggs tools clean
995
995
  ```
996
996
 
997
- _See code: [src/commands/tools/clean.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/tools/clean.ts)_
997
+ _See code: [src/commands/tools/clean.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/tools/clean.ts)_
998
998
 
999
999
  ## `eggs tools ppa`
1000
1000
 
@@ -1020,7 +1020,7 @@ EXAMPLES
1020
1020
  sudo eggs tools ppa --remove
1021
1021
  ```
1022
1022
 
1023
- _See code: [src/commands/tools/ppa.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/tools/ppa.ts)_
1023
+ _See code: [src/commands/tools/ppa.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/tools/ppa.ts)_
1024
1024
 
1025
1025
  ## `eggs tools skel`
1026
1026
 
@@ -1044,7 +1044,7 @@ EXAMPLES
1044
1044
  sudo eggs tools skel --user user-to-be-copied
1045
1045
  ```
1046
1046
 
1047
- _See code: [src/commands/tools/skel.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/tools/skel.ts)_
1047
+ _See code: [src/commands/tools/skel.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/tools/skel.ts)_
1048
1048
 
1049
1049
  ## `eggs tools stat`
1050
1050
 
@@ -1070,7 +1070,7 @@ EXAMPLES
1070
1070
  $ eggs tools stat --year
1071
1071
  ```
1072
1072
 
1073
- _See code: [src/commands/tools/stat.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/tools/stat.ts)_
1073
+ _See code: [src/commands/tools/stat.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/tools/stat.ts)_
1074
1074
 
1075
1075
  ## `eggs tools yolk`
1076
1076
 
@@ -1091,7 +1091,7 @@ EXAMPLES
1091
1091
  sudo eggs tools yolk
1092
1092
  ```
1093
1093
 
1094
- _See code: [src/commands/tools/yolk.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/tools/yolk.ts)_
1094
+ _See code: [src/commands/tools/yolk.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/tools/yolk.ts)_
1095
1095
 
1096
1096
  ## `eggs update`
1097
1097
 
@@ -1112,7 +1112,7 @@ EXAMPLES
1112
1112
  $ eggs update
1113
1113
  ```
1114
1114
 
1115
- _See code: [src/commands/update.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/update.ts)_
1115
+ _See code: [src/commands/update.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/update.ts)_
1116
1116
 
1117
1117
  ## `eggs version`
1118
1118
 
@@ -1132,7 +1132,7 @@ FLAG DESCRIPTIONS
1132
1132
  Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.
1133
1133
  ```
1134
1134
 
1135
- _See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v2.2.8/src/commands/version.ts)_
1135
+ _See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v2.2.9/src/commands/version.ts)_
1136
1136
 
1137
1137
  ## `eggs wardrobe get [REPO]`
1138
1138
 
@@ -1158,7 +1158,7 @@ EXAMPLES
1158
1158
  $ eggs wardrobe get your-wardrobe
1159
1159
  ```
1160
1160
 
1161
- _See code: [src/commands/wardrobe/get.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/wardrobe/get.ts)_
1161
+ _See code: [src/commands/wardrobe/get.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/wardrobe/get.ts)_
1162
1162
 
1163
1163
  ## `eggs wardrobe list [REPO]`
1164
1164
 
@@ -1187,7 +1187,7 @@ EXAMPLES
1187
1187
  $ eggs wardrobe list --distro arch
1188
1188
  ```
1189
1189
 
1190
- _See code: [src/commands/wardrobe/list.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/wardrobe/list.ts)_
1190
+ _See code: [src/commands/wardrobe/list.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/wardrobe/list.ts)_
1191
1191
 
1192
1192
  ## `eggs wardrobe show [REPO]`
1193
1193
 
@@ -1217,7 +1217,7 @@ EXAMPLES
1217
1217
  $ eggs wardrobe show accessories/
1218
1218
  ```
1219
1219
 
1220
- _See code: [src/commands/wardrobe/show.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/wardrobe/show.ts)_
1220
+ _See code: [src/commands/wardrobe/show.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/wardrobe/show.ts)_
1221
1221
 
1222
1222
  ## `eggs wardrobe wear [REPO]`
1223
1223
 
@@ -1248,7 +1248,7 @@ EXAMPLES
1248
1248
  sudo eggs wardrobe wear wagtail/waydroid
1249
1249
  ```
1250
1250
 
1251
- _See code: [src/commands/wardrobe/wear.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.19/src/commands/wardrobe/wear.ts)_
1251
+ _See code: [src/commands/wardrobe/wear.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.21/src/commands/wardrobe/wear.ts)_
1252
1252
  <!-- commandsstop -->
1253
1253
 
1254
1254
  # penGUI
@@ -1267,7 +1267,7 @@ _See code: [src/commands/wardrobe/wear.ts](https://github.com/pieroproietti/peng
1267
1267
  In addition to the official guide, there are other resources available for Penguins' Eggs users, particularly developers. These resources can be found in the [penguins-eggs repository](https://github.com/pieroproietti/penguins-eggs) under the [documents](https://github.com/pieroproietti/penguins-eggs/tree/master/documents) section.
1268
1268
 
1269
1269
  Some noteworthy documents include:
1270
- - [Hens: Different Species](https://github.com/pieroproietti/penguins-eggs/blob/master/documents/hens-different-species.md): A brief guide on using Penguins' Eggs in Debian, Arch, and Manjaro.
1270
+ - [Hens: Different Species](https://github.com/pieroproietti/penguins-eggs/blob/master//hens-different-species.md): A brief guide on using Penguins' Eggs in Debian, Arch, and Manjaro.
1271
1271
  - [Arch-naked](https://penguins-eggs.net/docs/Tutorial/archlinux-naked.html): A blog post detailing how to create an Arch naked live, install it, and customize the resulting system into a graphics development station.
1272
1272
 
1273
1273
  If you have any questions or need further assistance, feel free to contact me via email at pieroproietti@gmail.com. You can also stay updated by following my [blog](https://penguins-eggs.net) or connecting with me on , [Telegram](https://t.me/penguins_eggs), [Facebook](https://www.facebook.com/groups/128861437762355/), [GitHub](https://github.com/pieroproietti/penguins-krill), [Jitsi](https://meet.jit.si/PenguinsEggsMeeting), [Reddit](https://www.reddit.com/user/Artisan61) or [Twitter](https://twitter.com/pieroproietti).
package/addons/README.md CHANGED
@@ -67,7 +67,7 @@ video window;
67
67
  * __--rsupport__ create an icon for [dwagent](https://www.dwservice.net) that must be installed locally.
68
68
 
69
69
  # More informations
70
- There is a [Penguins' eggs official guide](https://penguins-eggs.net/docs/Tutorial/eggs-users-guide) and same other documentation - mostly for developers - on [penguins-eggs repo](https://github.com/pieroproietti/penguins-eggs) under **documents** and **i386**.
70
+ There is a [Penguins' eggs official guide](https://penguins-eggs.net/docs/Tutorial/eggs-users-guide) and same other documentation - mostly for developers - on [penguins-eggs repo](https://github.com/pieroproietti/penguins-eggs) under **DOCUMENTATION**.
71
71
 
72
72
  * [Penguins' eggs blog](https://penguins-eggs.net)
73
73
  * [facebook Penguins' eggs group](https://www.facebook.com/groups/128861437762355/)
@@ -14,11 +14,6 @@ export default class Bleach {
14
14
  * @param verbose
15
15
  */
16
16
  clean(verbose?: boolean): Promise<void>;
17
- /**
18
- * cleanApt
19
- * @param verbose
20
- */
21
- private cleanApt;
22
17
  /**
23
18
  * cleanHistory
24
19
  * @param verbose
@@ -19,34 +19,32 @@ export default class Bleach {
19
19
  * @param verbose
20
20
  */
21
21
  async clean(verbose = false) {
22
+ let echo = { capture: false, echo: false, ignore: true };
22
23
  if (verbose) {
24
+ echo = { capture: false, echo: true, ignore: true };
23
25
  Utils.warning('cleaning the system');
24
26
  }
25
27
  const distro = new Distro();
26
28
  if (distro.familyId === 'debian') {
27
- await this.cleanApt(verbose);
29
+ await exec('apt-get clean', echo);
30
+ await exec('apt-get autoclean', echo);
31
+ const lockFile = '/var/lib/apt/lists/lock';
32
+ await exec(`rm ${lockFile} -rf`, echo);
28
33
  }
29
34
  else if (distro.familyId === 'archlinux') {
30
35
  await exec('pacman -Scc', Utils.setEcho(true));
31
36
  }
37
+ else if (distro.familyId === 'alpine') {
38
+ await exec('apk cache clean', echo);
39
+ await exec('apk cache purge', echo);
40
+ }
41
+ else if (distro.familyId === 'suse') {
42
+ await exec(`zypper clean`, echo);
43
+ }
32
44
  await this.cleanHistory(verbose);
33
45
  await this.cleanJournal(verbose);
34
46
  await this.cleanSystemCache(verbose);
35
47
  }
36
- /**
37
- * cleanApt
38
- * @param verbose
39
- */
40
- async cleanApt(verbose = false) {
41
- let echo = { capture: false, echo: false, ignore: true };
42
- if (verbose) {
43
- echo = { capture: false, echo: true, ignore: true };
44
- }
45
- await exec('apt-get clean', echo);
46
- await exec('apt-get autoclean', echo);
47
- const lockFile = '/var/lib/apt/lists/lock';
48
- await exec(`rm ${lockFile} -rf`, echo);
49
- }
50
48
  /**
51
49
  * cleanHistory
52
50
  * @param verbose
@@ -11,6 +11,7 @@ import inquirer from 'inquirer';
11
11
  import path from 'node:path';
12
12
  import fs from 'fs';
13
13
  import yaml from 'js-yaml';
14
+ // We need to remove .js extension from import
14
15
  import Pacman from '../classes/pacman.js';
15
16
  import Settings from '../classes/settings.js';
16
17
  import Utils from '../classes/utils.js';