penguins-eggs 9.8.1 → 10.0.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.
Files changed (334) hide show
  1. package/.oclif.manifest.json +242 -242
  2. package/README.md +43 -40
  3. package/bin/dev.cmd +1 -1
  4. package/bin/dev.js +6 -6
  5. package/bin/run.js +3 -5
  6. package/conf/tools.yaml +1 -1
  7. package/dist/classes/bleach.d.ts +37 -0
  8. package/dist/classes/bleach.js +43 -91
  9. package/dist/classes/cfs.d.ts +17 -0
  10. package/dist/classes/cfs.js +15 -12
  11. package/dist/classes/compressors.d.ts +53 -0
  12. package/dist/classes/compressors.js +42 -47
  13. package/dist/classes/daddy.d.ts +18 -0
  14. package/dist/classes/daddy.js +92 -98
  15. package/dist/classes/distro.d.ts +26 -0
  16. package/dist/classes/distro.js +36 -37
  17. package/dist/classes/families/archlinux.d.ts +61 -0
  18. package/dist/classes/families/archlinux.js +52 -107
  19. package/dist/classes/families/debian.d.ts +65 -0
  20. package/dist/classes/families/debian.js +67 -142
  21. package/dist/classes/families/fedora.d.ts +52 -0
  22. package/dist/classes/families/fedora.js +42 -98
  23. package/dist/classes/families/mockup.d.ts +60 -0
  24. package/dist/classes/families/mockup.js +27 -46
  25. package/dist/classes/families/suse.d.ts +52 -0
  26. package/dist/classes/families/suse.js +44 -96
  27. package/dist/classes/incubation/branding.d.ts +17 -0
  28. package/dist/classes/incubation/branding.js +32 -36
  29. package/dist/classes/incubation/distros/bionic.d.ts +32 -0
  30. package/dist/classes/incubation/distros/bionic.js +11 -16
  31. package/dist/classes/incubation/distros/buster.d.ts +32 -0
  32. package/dist/classes/incubation/distros/buster.js +13 -18
  33. package/dist/classes/incubation/distros/focal.d.ts +32 -0
  34. package/dist/classes/incubation/distros/focal.js +11 -16
  35. package/dist/classes/incubation/distros/jessie.d.ts +31 -0
  36. package/dist/classes/incubation/distros/jessie.js +8 -13
  37. package/dist/classes/incubation/distros/rolling.d.ts +32 -0
  38. package/dist/classes/incubation/distros/rolling.js +11 -16
  39. package/dist/classes/incubation/fisherman-helper/displaymanager.d.ts +11 -0
  40. package/dist/classes/incubation/fisherman-helper/displaymanager.js +8 -9
  41. package/dist/classes/incubation/fisherman-helper/packages.d.ts +20 -0
  42. package/dist/classes/incubation/fisherman-helper/packages.js +17 -20
  43. package/dist/classes/incubation/fisherman-helper/settings.d.ts +15 -0
  44. package/dist/classes/incubation/fisherman-helper/settings.js +30 -28
  45. package/dist/classes/incubation/fisherman.d.ts +77 -0
  46. package/dist/classes/incubation/fisherman.js +135 -131
  47. package/dist/classes/incubation/incubator.d.ts +40 -0
  48. package/dist/classes/incubation/incubator.js +90 -89
  49. package/dist/classes/incubation/installer.d.ts +13 -0
  50. package/dist/classes/incubation/installer.js +27 -12
  51. package/dist/classes/initrd.d.ts +41 -0
  52. package/dist/classes/initrd.js +40 -42
  53. package/dist/classes/keyboards.d.ts +50 -0
  54. package/dist/classes/keyboards.js +108 -105
  55. package/dist/classes/locales.d.ts +21 -0
  56. package/dist/classes/locales.js +30 -34
  57. package/dist/classes/n8.d.ts +17 -0
  58. package/dist/classes/n8.js +16 -22
  59. package/dist/classes/network.d.ts +37 -0
  60. package/dist/classes/network.js +14 -18
  61. package/dist/classes/ovary.d.ts +205 -0
  62. package/dist/classes/ovary.js +1281 -1294
  63. package/dist/classes/pacman.d.ts +149 -0
  64. package/dist/classes/pacman.js +344 -418
  65. package/dist/classes/pve-live.d.ts +17 -0
  66. package/dist/classes/pve-live.js +22 -24
  67. package/dist/classes/pxe.d.ts +65 -0
  68. package/dist/classes/pxe.js +204 -206
  69. package/dist/classes/settings.d.ts +53 -0
  70. package/dist/classes/settings.js +91 -94
  71. package/dist/classes/sources_list.d.ts +28 -0
  72. package/dist/classes/sources_list.js +35 -39
  73. package/dist/classes/systemctl.d.ts +47 -0
  74. package/dist/classes/systemctl.js +34 -38
  75. package/dist/classes/tailor.d.ts +46 -0
  76. package/dist/classes/tailor.js +223 -239
  77. package/dist/classes/tools.d.ts +30 -0
  78. package/dist/classes/tools.js +18 -22
  79. package/dist/classes/users.d.ts +28 -0
  80. package/dist/classes/users.js +18 -22
  81. package/dist/classes/utils.d.ts +318 -0
  82. package/dist/classes/utils.js +78 -78
  83. package/dist/classes/xdg.d.ts +45 -0
  84. package/dist/classes/xdg.js +129 -133
  85. package/dist/classes/yolk.d.ts +33 -0
  86. package/dist/classes/yolk.js +53 -57
  87. package/dist/commands/adapt.d.ts +17 -0
  88. package/dist/commands/adapt.js +17 -21
  89. package/dist/commands/analyze.d.ts +26 -0
  90. package/dist/commands/analyze.js +56 -67
  91. package/dist/commands/calamares.d.ts +29 -0
  92. package/dist/commands/calamares.js +44 -48
  93. package/dist/commands/config.d.ts +36 -0
  94. package/dist/commands/config.js +115 -137
  95. package/dist/commands/cuckoo.d.ts +16 -0
  96. package/dist/commands/cuckoo.js +20 -24
  97. package/dist/commands/dad.d.ts +19 -0
  98. package/dist/commands/dad.js +20 -24
  99. package/dist/commands/export/deb.d.ts +19 -0
  100. package/dist/commands/export/deb.js +19 -23
  101. package/dist/commands/export/iso.d.ts +19 -0
  102. package/dist/commands/export/iso.js +19 -23
  103. package/dist/commands/install.d.ts +37 -0
  104. package/dist/commands/install.js +46 -50
  105. package/dist/commands/kill.d.ts +24 -0
  106. package/dist/commands/kill.js +25 -29
  107. package/dist/commands/mom.d.ts +16 -0
  108. package/dist/commands/mom.js +16 -18
  109. package/dist/commands/produce.d.ts +33 -0
  110. package/dist/commands/produce.js +64 -66
  111. package/dist/commands/status.d.ts +23 -0
  112. package/dist/commands/status.js +10 -14
  113. package/dist/commands/syncfrom.d.ts +45 -0
  114. package/dist/commands/syncfrom.js +85 -89
  115. package/dist/commands/syncto.d.ts +40 -0
  116. package/dist/commands/syncto.js +91 -95
  117. package/dist/commands/tools/clean.d.ts +18 -0
  118. package/dist/commands/tools/clean.js +17 -21
  119. package/dist/commands/tools/ppa.d.ts +26 -0
  120. package/dist/commands/tools/ppa.js +41 -45
  121. package/dist/commands/tools/skel.d.ts +18 -0
  122. package/dist/commands/tools/skel.js +22 -26
  123. package/dist/commands/tools/stat.d.ts +31 -0
  124. package/dist/commands/tools/stat.js +15 -19
  125. package/dist/commands/tools/yolk.d.ts +24 -0
  126. package/dist/commands/tools/yolk.js +19 -23
  127. package/dist/commands/update.d.ts +47 -0
  128. package/dist/commands/update.js +62 -66
  129. package/dist/commands/wardrobe/get.d.ts +23 -0
  130. package/dist/commands/wardrobe/get.js +19 -23
  131. package/dist/commands/wardrobe/list.d.ts +24 -0
  132. package/dist/commands/wardrobe/list.js +61 -60
  133. package/dist/commands/wardrobe/show.d.ts +25 -0
  134. package/dist/commands/wardrobe/show.js +50 -47
  135. package/dist/commands/wardrobe/wear.d.ts +26 -0
  136. package/dist/commands/wardrobe/wear.js +32 -36
  137. package/dist/components/finished.d.ts +15 -0
  138. package/dist/components/finished.js +37 -42
  139. package/dist/components/information.d.ts +8 -0
  140. package/dist/components/information.js +155 -0
  141. package/dist/components/install.d.ts +15 -0
  142. package/dist/components/install.js +31 -35
  143. package/dist/components/keyboard.d.ts +16 -0
  144. package/dist/components/keyboard.js +37 -40
  145. package/dist/components/location.d.ts +16 -0
  146. package/dist/components/location.js +38 -38
  147. package/dist/components/network.d.ts +19 -0
  148. package/dist/components/network.js +47 -48
  149. package/dist/components/partitions.d.ts +16 -0
  150. package/dist/components/partitions.js +47 -51
  151. package/dist/components/steps.d.ts +13 -0
  152. package/dist/components/steps.js +148 -0
  153. package/dist/components/summary.d.ts +24 -0
  154. package/dist/components/summary.js +50 -54
  155. package/dist/components/title.d.ts +12 -0
  156. package/dist/components/title.js +35 -0
  157. package/dist/components/users.d.ts +24 -0
  158. package/dist/components/users.js +43 -43
  159. package/dist/components/welcome.d.ts +13 -0
  160. package/dist/components/welcome.js +37 -38
  161. package/dist/index.d.ts +8 -0
  162. package/dist/index.js +8 -5
  163. package/dist/interfaces/i-addons.d.ts +13 -0
  164. package/dist/interfaces/i-addons.js +8 -3
  165. package/dist/interfaces/i-analyze.d.ts +17 -0
  166. package/dist/interfaces/i-analyze.js +7 -10
  167. package/dist/interfaces/i-app.d.ts +14 -0
  168. package/dist/interfaces/i-app.js +8 -2
  169. package/dist/interfaces/i-branding.d.ts +36 -0
  170. package/dist/interfaces/i-branding.js +8 -2
  171. package/dist/interfaces/i-calamares-partition.d.ts +18 -0
  172. package/dist/interfaces/i-calamares-partition.js +3 -4
  173. package/dist/interfaces/i-config-tools.d.ts +18 -0
  174. package/dist/interfaces/i-config-tools.js +8 -2
  175. package/dist/interfaces/i-devices.d.ts +20 -0
  176. package/dist/interfaces/i-devices.js +8 -2
  177. package/dist/interfaces/i-distro.d.ts +27 -0
  178. package/dist/interfaces/i-distro.js +3 -4
  179. package/dist/interfaces/i-drive-list.d.ts +33 -0
  180. package/dist/interfaces/i-drive-list.js +3 -4
  181. package/dist/interfaces/i-eggs-config.d.ts +32 -0
  182. package/dist/interfaces/i-eggs-config.js +3 -4
  183. package/dist/interfaces/i-excludes.d.ts +14 -0
  184. package/dist/interfaces/i-excludes.js +8 -2
  185. package/dist/interfaces/i-exec.d.ts +11 -0
  186. package/dist/interfaces/i-exec.js +3 -4
  187. package/dist/interfaces/i-initrd.d.ts +13 -0
  188. package/dist/interfaces/i-initrd.js +8 -2
  189. package/dist/interfaces/i-install.d.ts +16 -0
  190. package/dist/interfaces/i-install.js +8 -2
  191. package/dist/interfaces/i-installer.d.ts +17 -0
  192. package/dist/interfaces/i-installer.js +8 -2
  193. package/dist/interfaces/i-krill-config.d.ts +33 -0
  194. package/dist/interfaces/i-krill-config.js +3 -4
  195. package/dist/interfaces/i-krill.d.ts +42 -0
  196. package/dist/interfaces/i-krill.js +8 -2
  197. package/dist/interfaces/i-materia.d.ts +41 -0
  198. package/dist/interfaces/i-materia.js +8 -2
  199. package/dist/interfaces/i-net.d.ts +16 -0
  200. package/dist/interfaces/i-net.js +8 -2
  201. package/dist/interfaces/i-packages.d.ts +29 -0
  202. package/dist/interfaces/i-packages.js +3 -4
  203. package/dist/interfaces/i-partitions.d.ts +16 -0
  204. package/dist/interfaces/i-partitions.js +8 -2
  205. package/dist/interfaces/i-pxe.d.ts +21 -0
  206. package/dist/interfaces/i-pxe.js +8 -39
  207. package/dist/interfaces/i-remix.d.ts +21 -0
  208. package/dist/interfaces/i-remix.js +3 -4
  209. package/dist/interfaces/i-settings.d.ts +39 -0
  210. package/dist/interfaces/i-settings.js +8 -2
  211. package/dist/interfaces/i-user.d.ts +14 -0
  212. package/dist/interfaces/i-user.js +8 -2
  213. package/dist/interfaces/i-workdir.d.ts +14 -0
  214. package/dist/interfaces/i-workdir.js +8 -2
  215. package/dist/interfaces/i-xkb-model.d.ts +24 -0
  216. package/dist/interfaces/i-xkb-model.js +8 -2
  217. package/dist/interfaces/index.d.ts +25 -0
  218. package/dist/interfaces/index.js +3 -4
  219. package/dist/krill/modules/add-user.d.ts +20 -0
  220. package/dist/krill/modules/add-user.js +11 -15
  221. package/dist/krill/modules/bootloader-config-arch.d.ts +14 -0
  222. package/dist/krill/modules/bootloader-config-arch.js +15 -11
  223. package/dist/krill/modules/bootloader-config-debian.d.ts +10 -0
  224. package/dist/krill/modules/bootloader-config-debian.js +20 -16
  225. package/dist/krill/modules/bootloader-config.d.ts +10 -0
  226. package/dist/krill/modules/bootloader-config.js +3 -6
  227. package/dist/krill/modules/bootloader.d.ts +14 -0
  228. package/dist/krill/modules/bootloader.js +9 -13
  229. package/dist/krill/modules/change-password.d.ts +15 -0
  230. package/dist/krill/modules/change-password.js +5 -8
  231. package/dist/krill/modules/del-live-user.d.ts +14 -0
  232. package/dist/krill/modules/del-live-user.js +8 -12
  233. package/dist/krill/modules/fstab.d.ts +14 -0
  234. package/dist/krill/modules/fstab.js +33 -37
  235. package/dist/krill/modules/grubcfg.d.ts +17 -0
  236. package/dist/krill/modules/grubcfg.js +8 -17
  237. package/dist/krill/modules/hostname.d.ts +13 -0
  238. package/dist/krill/modules/hostname.js +11 -17
  239. package/dist/krill/modules/initramfs-cfg.d.ts +14 -0
  240. package/dist/krill/modules/initramfs-cfg.js +6 -15
  241. package/dist/krill/modules/initramfs.d.ts +13 -0
  242. package/dist/krill/modules/initramfs.js +17 -19
  243. package/dist/krill/modules/locale-cfg.d.ts +10 -0
  244. package/dist/krill/modules/locale-cfg.js +8 -12
  245. package/dist/krill/modules/locale.d.ts +13 -0
  246. package/dist/krill/modules/locale.js +7 -11
  247. package/dist/krill/modules/m-keyboard.d.ts +14 -0
  248. package/dist/krill/modules/m-keyboard.js +14 -18
  249. package/dist/krill/modules/m-timezone.d.ts +14 -0
  250. package/dist/krill/modules/m-timezone.js +8 -12
  251. package/dist/krill/modules/machine-id.d.ts +15 -0
  252. package/dist/krill/modules/machine-id.js +6 -10
  253. package/dist/krill/modules/mkfs.d.ts +13 -0
  254. package/dist/krill/modules/mkfs.js +10 -13
  255. package/dist/krill/modules/mount-fs.d.ts +17 -0
  256. package/dist/krill/modules/mount-fs.js +20 -26
  257. package/dist/krill/modules/mount-vfs.d.ts +17 -0
  258. package/dist/krill/modules/mount-vfs.js +16 -21
  259. package/dist/krill/modules/network-cfg.d.ts +19 -0
  260. package/dist/krill/modules/network-cfg.js +16 -20
  261. package/dist/krill/modules/packages.d.ts +14 -0
  262. package/dist/krill/modules/packages.js +17 -21
  263. package/dist/krill/modules/partition.d.ts +20 -0
  264. package/dist/krill/modules/partition.js +78 -84
  265. package/dist/krill/modules/remove-installer-link.d.ts +13 -0
  266. package/dist/krill/modules/remove-installer-link.js +7 -11
  267. package/dist/krill/modules/umount.d.ts +14 -0
  268. package/dist/krill/modules/umount.js +9 -13
  269. package/dist/krill/modules/unpackfs.d.ts +13 -0
  270. package/dist/krill/modules/unpackfs.js +7 -11
  271. package/dist/krill/prepare.d.ts +77 -0
  272. package/dist/krill/{krill-prepare.js → prepare.js} +118 -124
  273. package/dist/krill/sequence.d.ts +156 -0
  274. package/dist/krill/{krill-sequence.js → sequence.js} +166 -170
  275. package/dist/lib/cli-autologin.d.ts +43 -0
  276. package/dist/lib/cli-autologin.js +88 -92
  277. package/dist/lib/get_address.d.ts +8 -0
  278. package/dist/lib/get_address.js +9 -11
  279. package/dist/lib/get_dns.d.ts +8 -0
  280. package/dist/lib/get_dns.js +9 -11
  281. package/dist/lib/get_domain.d.ts +8 -0
  282. package/dist/lib/get_domain.js +9 -11
  283. package/dist/lib/get_gateway.d.ts +8 -0
  284. package/dist/lib/get_gateway.js +9 -11
  285. package/dist/lib/get_hostname.d.ts +8 -0
  286. package/dist/lib/get_hostname.js +9 -11
  287. package/dist/lib/get_netmask.d.ts +8 -0
  288. package/dist/lib/get_netmask.js +9 -11
  289. package/dist/lib/get_password.d.ts +8 -0
  290. package/dist/lib/get_password.js +10 -13
  291. package/dist/lib/get_userfullname.d.ts +8 -0
  292. package/dist/lib/get_userfullname.js +9 -11
  293. package/dist/lib/get_username.d.ts +8 -0
  294. package/dist/lib/get_username.js +9 -12
  295. package/dist/lib/kill_me_softly.d.ts +11 -0
  296. package/dist/lib/kill_me_softly.js +19 -24
  297. package/dist/lib/select_address_type.d.ts +8 -0
  298. package/dist/lib/select_address_type.js +9 -12
  299. package/dist/lib/select_filesystem_type.d.ts +8 -0
  300. package/dist/lib/select_filesystem_type.js +15 -18
  301. package/dist/lib/select_installation_device.d.ts +8 -0
  302. package/dist/lib/select_installation_device.js +11 -15
  303. package/dist/lib/select_installation_mode.d.ts +8 -0
  304. package/dist/lib/select_installation_mode.js +9 -11
  305. package/dist/lib/select_interface.d.ts +8 -0
  306. package/dist/lib/select_interface.js +9 -12
  307. package/dist/lib/select_keyboard_layout.d.ts +11 -0
  308. package/dist/lib/select_keyboard_layout.js +11 -15
  309. package/dist/lib/select_keyboard_model.d.ts +11 -0
  310. package/dist/lib/select_keyboard_model.js +11 -15
  311. package/dist/lib/select_keyboard_option.d.ts +11 -0
  312. package/dist/lib/select_keyboard_option.js +11 -15
  313. package/dist/lib/select_keyboard_variant.d.ts +11 -0
  314. package/dist/lib/select_keyboard_variant.js +11 -15
  315. package/dist/lib/select_languages.d.ts +8 -0
  316. package/dist/lib/select_languages.js +11 -15
  317. package/dist/lib/select_regions.d.ts +8 -0
  318. package/dist/lib/select_regions.js +9 -11
  319. package/dist/lib/select_user_swap_choice.d.ts +8 -0
  320. package/dist/lib/select_user_swap_choice.js +13 -17
  321. package/dist/lib/select_zones.d.ts +8 -0
  322. package/dist/lib/select_zones.js +9 -11
  323. package/dist/lib/utils.d.ts +34 -0
  324. package/dist/lib/utils.js +24 -14
  325. package/manpages/doc/man/eggs.1.gz +0 -0
  326. package/manpages/doc/man/eggs.html +10 -10
  327. package/package.json +49 -70
  328. package/LICENSE +0 -339
  329. package/bin/dev +0 -17
  330. package/bin/run +0 -5
  331. package/dist/components/elements/information.js +0 -194
  332. package/dist/components/elements/steps.js +0 -152
  333. package/dist/components/elements/title.js +0 -36
  334. package/dist/lib/dependencies.js +0 -121
package/README.md CHANGED
@@ -15,6 +15,7 @@ penguins-eggs
15
15
  # Index
16
16
  <!-- toc -->
17
17
  * [Index](#index)
18
+ * [v10.0.0](#v1000)
18
19
  * [Introduction](#introduction)
19
20
  * [Technology](#technology)
20
21
  * [Features](#features)
@@ -25,6 +26,8 @@ penguins-eggs
25
26
  * [Copyright and licenses](#copyright-and-licenses)
26
27
  <!-- tocstop -->
27
28
 
29
+ # v10.0.0
30
+ With version 10.0.0 we celebrate more than 8 years of penguins-eggs development! Come with us, the time is right.
28
31
 
29
32
  # Introduction
30
33
  penguins-eggs is a console tool, under continuous development, that allows you to remaster your system and redistribute it as live images on USB sticks or via PXE. The concept behind Penguins’ Eggs stems from the idea of “reproduction” and “population selection” applied to operating systems. During the era of popular remastering programs like Remastersys and Systemback, both of which experienced maintenance issues and were eventually abandoned, the need for a new, modern tool became evident. The inspiration for Penguins’ Eggs led to the development of a new tool written in a modern, cross-distribution language, utilizing its own packaging system. Initially built with node.js and later transitioning to Typescript as the primary development language, the tool’s design resembles an egg production process, consisting of operations such as “produce” for creating the eggs, “hatch” for installation, and other commands like “kill” for removing produced ISOs, “update” for software updates, and “install” for configuring the graphical installer. It also has prerequisites to install the .deb packages necessary for the process, namely, calamares.
@@ -183,9 +186,9 @@ The penguins-eggs-ppa repository provides a convenient and reliable way to acces
183
186
 
184
187
  To install Eggs, the simplest method is to download the package from the project's SourceForge page [package eggs](https://sourceforge.net/projects/penguins-eggs/files/DEBS/) and install it on your system. You can find the Eggs package on the SourceForge page here.
185
188
  After downloading the appropriate package based on your system's architecture, you can proceed with the installation. If you are using an amd64 system, run the following command in the terminal:
186
- ```sudo dpkg -i eggs_9.6.24_amd64.deb```
189
+ ```sudo dpkg -i penguins_eggs_10.0.0-1_amd64.deb```
187
190
  For i386 systems, the command would be:
188
- ```sudo dpkg -i eggs_9.6.24_i386.deb```
191
+ ```sudo dpkg -i penguins_eggs_10.0.0-1_i386.deb```
189
192
  Executing these commands will initiate the installation process and install Eggs on your system.
190
193
  Once Eggs is successfully installed, you have the option to enhance its functionality by adding the penguins-eggs-ppa repository. This repository provides additional tools and features for Eggs. To add the penguins-eggs-ppa repository, run the following command in the terminal:
191
194
  ```sudo eggs tools ppa --install```
@@ -221,7 +224,7 @@ echo "deb [arch=$(dpkg --print-architecture)] https://pieroproietti.github.io/pe
221
224
  After adding the repository, update your package repositories and install Eggs by running the following command:
222
225
 
223
226
  ```
224
- sudo apt update && sudo apt install eggs
227
+ sudo apt update && sudo apt install penguins_eggs
225
228
  ```
226
229
 
227
230
  Executing these commands will update your package sources and install Eggs on your system.
@@ -244,11 +247,11 @@ sudo apt upgrade
244
247
 
245
248
  1. Install the package using the `gdebi` command (assuming you have `gdebi` installed):
246
249
  ```
247
- sudo gdebi eggs_9.6.24_amd64.deb
250
+ sudo gdebi penguins_eggs_10.0.0-1_amd64.deb
248
251
  ```
249
252
  or for i386 systems:
250
253
  ```
251
- sudo dpkg -i eggs_9.6.24_i386.deb
254
+ sudo dpkg -i penguins_eggs_10.0.0-1_i386.deb
252
255
  ```
253
256
 
254
257
  2. In case of any missing dependencies, you can resolve them by running the following command:
@@ -441,7 +444,7 @@ EXAMPLES
441
444
  $ eggs adapt
442
445
  ```
443
446
 
444
- _See code: [src/commands/adapt.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/adapt.ts)_
447
+ _See code: [src/commands/adapt.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/adapt.ts)_
445
448
 
446
449
  ## `eggs analyze`
447
450
 
@@ -462,7 +465,7 @@ EXAMPLES
462
465
  sudo eggs analyze
463
466
  ```
464
467
 
465
- _See code: [src/commands/analyze.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/analyze.ts)_
468
+ _See code: [src/commands/analyze.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/analyze.ts)_
466
469
 
467
470
  ## `eggs autocomplete [SHELL]`
468
471
 
@@ -493,7 +496,7 @@ EXAMPLES
493
496
  $ eggs autocomplete --refresh-cache
494
497
  ```
495
498
 
496
- _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.0.18/src/commands/autocomplete/index.ts)_
499
+ _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.1.0/src/commands/autocomplete/index.ts)_
497
500
 
498
501
  ## `eggs calamares`
499
502
 
@@ -526,15 +529,15 @@ EXAMPLES
526
529
  sudo eggs calamares --remove
527
530
  ```
528
531
 
529
- _See code: [src/commands/calamares.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/calamares.ts)_
532
+ _See code: [src/commands/calamares.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/calamares.ts)_
530
533
 
531
534
  ## `eggs config`
532
535
 
533
- Configure and install prerequisites deb packages to run it
536
+ Configure eggs to run it
534
537
 
535
538
  ```
536
539
  USAGE
537
- $ eggs config [-c] [-h] [-n] [-N] [-v]
540
+ $ eggs config [-c] [-h] [-N] [-n] [-v]
538
541
 
539
542
  FLAGS
540
543
  -N, --noicons no icons
@@ -544,7 +547,7 @@ FLAGS
544
547
  -v, --verbose verbose
545
548
 
546
549
  DESCRIPTION
547
- Configure and install prerequisites deb packages to run it
550
+ Configure eggs to run it
548
551
 
549
552
  EXAMPLES
550
553
  sudo eggs config
@@ -554,7 +557,7 @@ EXAMPLES
554
557
  sudo eggs config --clean --nointeractive
555
558
  ```
556
559
 
557
- _See code: [src/commands/config.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/config.ts)_
560
+ _See code: [src/commands/config.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/config.ts)_
558
561
 
559
562
  ## `eggs cuckoo`
560
563
 
@@ -574,7 +577,7 @@ EXAMPLES
574
577
  sudo eggs cuckoo
575
578
  ```
576
579
 
577
- _See code: [src/commands/cuckoo.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/cuckoo.ts)_
580
+ _See code: [src/commands/cuckoo.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/cuckoo.ts)_
578
581
 
579
582
  ## `eggs dad`
580
583
 
@@ -601,7 +604,7 @@ EXAMPLES
601
604
  sudo dad --default
602
605
  ```
603
606
 
604
- _See code: [src/commands/dad.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/dad.ts)_
607
+ _See code: [src/commands/dad.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/dad.ts)_
605
608
 
606
609
  ## `eggs export deb`
607
610
 
@@ -628,7 +631,7 @@ EXAMPLES
628
631
  $ eggs export deb --all
629
632
  ```
630
633
 
631
- _See code: [src/commands/export/deb.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/export/deb.ts)_
634
+ _See code: [src/commands/export/deb.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/export/deb.ts)_
632
635
 
633
636
  ## `eggs export iso`
634
637
 
@@ -636,7 +639,7 @@ export iso in the destination host
636
639
 
637
640
  ```
638
641
  USAGE
639
- $ eggs export iso [-c] [-C] [-h] [-v]
642
+ $ eggs export iso [-C] [-c] [-h] [-v]
640
643
 
641
644
  FLAGS
642
645
  -C, --checksum export checksums md5 and sha256
@@ -653,7 +656,7 @@ EXAMPLES
653
656
  $ eggs export iso --clean
654
657
  ```
655
658
 
656
- _See code: [src/commands/export/iso.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/export/iso.ts)_
659
+ _See code: [src/commands/export/iso.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/export/iso.ts)_
657
660
 
658
661
  ## `eggs help [COMMAND]`
659
662
 
@@ -673,7 +676,7 @@ DESCRIPTION
673
676
  Display help for eggs.
674
677
  ```
675
678
 
676
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.0.22/src/commands/help.ts)_
679
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.1.0/src/commands/help.ts)_
677
680
 
678
681
  ## `eggs install`
679
682
 
@@ -714,7 +717,7 @@ EXAMPLES
714
717
  sudo eggs install --custom it
715
718
  ```
716
719
 
717
- _See code: [src/commands/install.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/install.ts)_
720
+ _See code: [src/commands/install.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/install.ts)_
718
721
 
719
722
  ## `eggs kill`
720
723
 
@@ -722,7 +725,7 @@ kill the eggs/free the nest
722
725
 
723
726
  ```
724
727
  USAGE
725
- $ eggs kill [-h] [-n] [-i] [-v]
728
+ $ eggs kill [-h] [-i] [-n] [-v]
726
729
 
727
730
  FLAGS
728
731
  -h, --help Show CLI help.
@@ -737,7 +740,7 @@ EXAMPLES
737
740
  sudo eggs kill
738
741
  ```
739
742
 
740
- _See code: [src/commands/kill.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/kill.ts)_
743
+ _See code: [src/commands/kill.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/kill.ts)_
741
744
 
742
745
  ## `eggs krill`
743
746
 
@@ -796,7 +799,7 @@ EXAMPLES
796
799
  $ eggs mom
797
800
  ```
798
801
 
799
- _See code: [src/commands/mom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/mom.ts)_
802
+ _See code: [src/commands/mom.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/mom.ts)_
800
803
 
801
804
  ## `eggs produce`
802
805
 
@@ -852,7 +855,7 @@ EXAMPLES
852
855
  sudo eggs produce --excludes=static
853
856
  ```
854
857
 
855
- _See code: [src/commands/produce.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/produce.ts)_
858
+ _See code: [src/commands/produce.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/produce.ts)_
856
859
 
857
860
  ## `eggs status`
858
861
 
@@ -873,7 +876,7 @@ EXAMPLES
873
876
  $ eggs status
874
877
  ```
875
878
 
876
- _See code: [src/commands/status.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/status.ts)_
879
+ _See code: [src/commands/status.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/status.ts)_
877
880
 
878
881
  ## `eggs syncfrom`
879
882
 
@@ -899,7 +902,7 @@ EXAMPLES
899
902
  sudo eggs syncfrom --file /path/to/luks-volume
900
903
  ```
901
904
 
902
- _See code: [src/commands/syncfrom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/syncfrom.ts)_
905
+ _See code: [src/commands/syncfrom.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/syncfrom.ts)_
903
906
 
904
907
  ## `eggs syncto`
905
908
 
@@ -907,7 +910,7 @@ Save users and users' data ENCRYPTED
907
910
 
908
911
  ```
909
912
  USAGE
910
- $ eggs syncto [-f <value>] [-e] [-h] [-v]
913
+ $ eggs syncto [-e] [-f <value>] [-h] [-v]
911
914
 
912
915
  FLAGS
913
916
  -e, --excludes use: exclude.list.d/home.list
@@ -926,7 +929,7 @@ EXAMPLES
926
929
  sudo eggs syncto --excludes
927
930
  ```
928
931
 
929
- _See code: [src/commands/syncto.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/syncto.ts)_
932
+ _See code: [src/commands/syncto.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/syncto.ts)_
930
933
 
931
934
  ## `eggs tools clean`
932
935
 
@@ -948,7 +951,7 @@ EXAMPLES
948
951
  sudo eggs tools clean
949
952
  ```
950
953
 
951
- _See code: [src/commands/tools/clean.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/tools/clean.ts)_
954
+ _See code: [src/commands/tools/clean.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/tools/clean.ts)_
952
955
 
953
956
  ## `eggs tools ppa`
954
957
 
@@ -974,7 +977,7 @@ EXAMPLES
974
977
  sudo eggs tools ppa --remove
975
978
  ```
976
979
 
977
- _See code: [src/commands/tools/ppa.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/tools/ppa.ts)_
980
+ _See code: [src/commands/tools/ppa.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/tools/ppa.ts)_
978
981
 
979
982
  ## `eggs tools skel`
980
983
 
@@ -998,7 +1001,7 @@ EXAMPLES
998
1001
  sudo eggs tools skel --user user-to-be-copied
999
1002
  ```
1000
1003
 
1001
- _See code: [src/commands/tools/skel.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/tools/skel.ts)_
1004
+ _See code: [src/commands/tools/skel.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/tools/skel.ts)_
1002
1005
 
1003
1006
  ## `eggs tools stat`
1004
1007
 
@@ -1024,7 +1027,7 @@ EXAMPLES
1024
1027
  $ eggs tools stat --year
1025
1028
  ```
1026
1029
 
1027
- _See code: [src/commands/tools/stat.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/tools/stat.ts)_
1030
+ _See code: [src/commands/tools/stat.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/tools/stat.ts)_
1028
1031
 
1029
1032
  ## `eggs tools yolk`
1030
1033
 
@@ -1045,7 +1048,7 @@ EXAMPLES
1045
1048
  sudo eggs tools yolk
1046
1049
  ```
1047
1050
 
1048
- _See code: [src/commands/tools/yolk.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/tools/yolk.ts)_
1051
+ _See code: [src/commands/tools/yolk.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/tools/yolk.ts)_
1049
1052
 
1050
1053
  ## `eggs update`
1051
1054
 
@@ -1066,7 +1069,7 @@ EXAMPLES
1066
1069
  $ eggs update
1067
1070
  ```
1068
1071
 
1069
- _See code: [src/commands/update.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/update.ts)_
1072
+ _See code: [src/commands/update.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/update.ts)_
1070
1073
 
1071
1074
  ## `eggs version`
1072
1075
 
@@ -1086,7 +1089,7 @@ FLAG DESCRIPTIONS
1086
1089
  Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.
1087
1090
  ```
1088
1091
 
1089
- _See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v2.1.2/src/commands/version.ts)_
1092
+ _See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v2.2.0/src/commands/version.ts)_
1090
1093
 
1091
1094
  ## `eggs wardrobe get [REPO]`
1092
1095
 
@@ -1112,7 +1115,7 @@ EXAMPLES
1112
1115
  $ eggs wardrobe get your-wardrobe
1113
1116
  ```
1114
1117
 
1115
- _See code: [src/commands/wardrobe/get.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/wardrobe/get.ts)_
1118
+ _See code: [src/commands/wardrobe/get.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/wardrobe/get.ts)_
1116
1119
 
1117
1120
  ## `eggs wardrobe list [REPO]`
1118
1121
 
@@ -1120,7 +1123,7 @@ list costumes and accessoires in wardrobe
1120
1123
 
1121
1124
  ```
1122
1125
  USAGE
1123
- $ eggs wardrobe list [REPO] [-h] [-d <value>] [-v]
1126
+ $ eggs wardrobe list [REPO] [-d <value>] [-h] [-v]
1124
1127
 
1125
1128
  ARGUMENTS
1126
1129
  REPO wardrobe to get
@@ -1141,7 +1144,7 @@ EXAMPLES
1141
1144
  $ eggs wardrobe list --distro arch
1142
1145
  ```
1143
1146
 
1144
- _See code: [src/commands/wardrobe/list.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/wardrobe/list.ts)_
1147
+ _See code: [src/commands/wardrobe/list.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/wardrobe/list.ts)_
1145
1148
 
1146
1149
  ## `eggs wardrobe show [REPO]`
1147
1150
 
@@ -1171,7 +1174,7 @@ EXAMPLES
1171
1174
  $ eggs wardrobe show accessories/
1172
1175
  ```
1173
1176
 
1174
- _See code: [src/commands/wardrobe/show.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/wardrobe/show.ts)_
1177
+ _See code: [src/commands/wardrobe/show.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/wardrobe/show.ts)_
1175
1178
 
1176
1179
  ## `eggs wardrobe wear [REPO]`
1177
1180
 
@@ -1202,7 +1205,7 @@ EXAMPLES
1202
1205
  sudo eggs wardrobe wear wagtail/waydroid
1203
1206
  ```
1204
1207
 
1205
- _See code: [src/commands/wardrobe/wear.ts](https://github.com/pieroproietti/penguins-eggs/blob/v9.8.1/src/commands/wardrobe/wear.ts)_
1208
+ _See code: [src/commands/wardrobe/wear.ts](https://github.com/pieroproietti/krill/blob/v10.0.0/src/commands/wardrobe/wear.ts)_
1206
1209
  <!-- commandsstop -->
1207
1210
  * [`eggs adapt`](#eggs-adapt)
1208
1211
  * [`eggs analyze`](#eggs-analyze)
package/bin/dev.cmd CHANGED
@@ -1,3 +1,3 @@
1
1
  @echo off
2
2
 
3
- node "%~dp0\dev" %*
3
+ node --loader ts-node/esm --no-warnings=ExperimentalWarning "%~dp0\dev" %*
package/bin/dev.js CHANGED
@@ -1,6 +1,6 @@
1
- #!/usr/bin/env node_modules/.bin/ts-node
2
- // eslint-disable-next-line node/shebang, unicorn/prefer-top-level-await
3
- ;(async () => {
4
- const oclif = await import('@oclif/core')
5
- await oclif.execute({development: true, dir: __dirname})
6
- })()
1
+ #!/usr/bin/env -S node --loader ts-node/esm --no-warnings=ExperimentalWarning
2
+
3
+ // eslint-disable-next-line n/shebang
4
+ import {execute} from '@oclif/core'
5
+
6
+ await execute({development: true, dir: import.meta.url})
package/bin/run.js CHANGED
@@ -1,7 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // eslint-disable-next-line unicorn/prefer-top-level-await
4
- (async () => {
5
- const oclif = await import('@oclif/core')
6
- await oclif.execute({dir: __dirname})
7
- })()
3
+ import {execute} from '@oclif/core'
4
+
5
+ await execute({dir: import.meta.url})
package/conf/tools.yaml CHANGED
@@ -18,4 +18,4 @@ localPathDeb: /home/artisan/penguins-eggs/perrisbrewery/workdir/
18
18
  localPathIso: /home/eggs
19
19
 
20
20
  # filter package files
21
- filterDeb: penguins-eggs_9.?.*-?_
21
+ filterDeb: penguins-eggs_10.?.*-?_
@@ -0,0 +1,37 @@
1
+ /**
2
+ * ./src/classes/bleach.ts
3
+ * penguins-eggs v.10.0.0 / ecmascript 2020
4
+ * author: Piero Proietti
5
+ * email: piero.proietti@gmail.com
6
+ * license: MIT
7
+ */
8
+ /**
9
+ * Bleach:
10
+ */
11
+ export default class Bleach {
12
+ /**
13
+ * clean
14
+ * @param verbose
15
+ */
16
+ clean(verbose?: boolean): Promise<void>;
17
+ /**
18
+ * cleanApt
19
+ * @param verbose
20
+ */
21
+ private cleanApt;
22
+ /**
23
+ * cleanHistory
24
+ * @param verbose
25
+ */
26
+ private cleanHistory;
27
+ /**
28
+ * cleanJournal
29
+ * @param verbose
30
+ */
31
+ private cleanJournal;
32
+ /**
33
+ * cleanSystemCache
34
+ * @param verbose
35
+ */
36
+ private cleanSystemCache;
37
+ }
@@ -1,37 +1,33 @@
1
- "use strict";
2
- /* eslint-disable no-console */
3
1
  /**
4
- * penguins-eggs
5
- * class: bleach.ts
6
- * author: Piero Proietti
7
- * email: piero.proietti@gmail.com
8
- * license: MIT
9
- */
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- const tslib_1 = require("tslib");
12
- const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
13
- const utils_1 = tslib_1.__importDefault(require("./utils"));
2
+ * ./src/classes/bleach.ts
3
+ * penguins-eggs v.10.0.0 / ecmascript 2020
4
+ * author: Piero Proietti
5
+ * email: piero.proietti@gmail.com
6
+ * license: MIT
7
+ */
8
+ import fs from 'node:fs';
14
9
  // libraries
15
- const utils_2 = require("../lib/utils");
16
- const distro_1 = tslib_1.__importDefault(require("./distro"));
10
+ import { exec } from '../lib/utils.js';
11
+ import Distro from './distro.js';
12
+ import Utils from './utils.js';
17
13
  /**
18
14
  * Bleach:
19
15
  */
20
- class Bleach {
16
+ export default class Bleach {
21
17
  /**
22
18
  * clean
23
19
  * @param verbose
24
20
  */
25
21
  async clean(verbose = false) {
26
22
  if (verbose) {
27
- utils_1.default.warning('cleaning the system');
23
+ Utils.warning('cleaning the system');
28
24
  }
29
- const distro = new distro_1.default();
25
+ const distro = new Distro();
30
26
  if (distro.familyId === 'debian') {
31
27
  await this.cleanApt(verbose);
32
28
  }
33
29
  else if (distro.familyId === 'archlinux') {
34
- await (0, utils_2.exec)('pacman -Scc', utils_1.default.setEcho(true));
30
+ await exec('pacman -Scc', Utils.setEcho(true));
35
31
  }
36
32
  await this.cleanHistory(verbose);
37
33
  await this.cleanJournal(verbose);
@@ -42,12 +38,12 @@ class Bleach {
42
38
  * @param verbose
43
39
  */
44
40
  async cleanApt(verbose = false) {
45
- let echo = { echo: false, ignore: true, capture: false };
41
+ let echo = { capture: false, echo: false, ignore: true };
46
42
  if (verbose) {
47
- echo = { echo: true, ignore: true, capture: false };
43
+ echo = { capture: false, echo: true, ignore: true };
48
44
  }
49
- await (0, utils_2.exec)('apt-get clean', echo);
50
- await (0, utils_2.exec)('apt-get autoclean', echo);
45
+ await exec('apt-get clean', echo);
46
+ await exec('apt-get autoclean', echo);
51
47
  const dest = '/var/lib/apt/lists/';
52
48
  rmdir(dest, verbose);
53
49
  }
@@ -57,10 +53,10 @@ class Bleach {
57
53
  */
58
54
  async cleanHistory(verbose = false) {
59
55
  if (verbose) {
60
- utils_1.default.warning('cleaning bash history');
56
+ Utils.warning('cleaning bash history');
61
57
  }
62
58
  const dest = '/root/.bash_history';
63
- if (node_fs_1.default.existsSync(dest)) {
59
+ if (fs.existsSync(dest)) {
64
60
  await rm(dest, verbose);
65
61
  }
66
62
  }
@@ -69,24 +65,24 @@ class Bleach {
69
65
  * @param verbose
70
66
  */
71
67
  async cleanJournal(verbose = false) {
72
- let echo = { echo: false, ignore: true, capture: false };
68
+ let echo = { capture: false, echo: false, ignore: true };
73
69
  if (verbose) {
74
- echo = { echo: true, ignore: true, capture: false };
75
- utils_1.default.warning('cleaning journald');
70
+ echo = { capture: false, echo: true, ignore: true };
71
+ Utils.warning('cleaning journald');
76
72
  }
77
- if (utils_1.default.isSystemd()) {
73
+ if (Utils.isSystemd()) {
78
74
  try {
79
- await (0, utils_2.exec)('journalctl --rotate', echo);
80
- await (0, utils_2.exec)('journalctl --vacuum-time=1s', echo);
75
+ await exec('journalctl --rotate', echo);
76
+ await exec('journalctl --vacuum-time=1s', echo);
81
77
  }
82
78
  catch (error) {
83
- utils_1.default.error(error);
79
+ Utils.error(error);
84
80
  }
85
81
  }
86
82
  else {
87
83
  // Truncate logs, remove archived logs.
88
- await (0, utils_2.exec)('find /var/log -name "*gz" -print0 | xargs -0r rm -f', echo);
89
- await (0, utils_2.exec)('find /var/log/ -type f -exec truncate -s 0 {} \\;', echo);
84
+ await exec('find /var/log -name "*gz" -print0 | xargs -0r rm -f', echo);
85
+ await exec('find /var/log/ -type f -exec truncate -s 0 {} \\;', echo);
90
86
  }
91
87
  }
92
88
  /**
@@ -94,86 +90,42 @@ class Bleach {
94
90
  * @param verbose
95
91
  */
96
92
  async cleanSystemCache(verbose = false) {
97
- let echo = { echo: false, ignore: true, capture: false };
93
+ let echo = { capture: false, echo: false, ignore: true };
98
94
  if (verbose) {
99
- echo = { echo: true, ignore: true, capture: false };
100
- utils_1.default.warning('cleaning system cache');
95
+ echo = { capture: false, echo: true, ignore: true };
96
+ Utils.warning('cleaning system cache');
101
97
  }
102
98
  // Clear PageCache only.
103
- await (0, utils_2.exec)('sync; echo 1 > /proc/sys/vm/drop_caches', echo);
99
+ await exec('sync; echo 1 > /proc/sys/vm/drop_caches', echo);
104
100
  // Clear dentries and inodes.
105
- await (0, utils_2.exec)('sync; echo 2 > /proc/sys/vm/drop_caches', echo);
101
+ await exec('sync; echo 2 > /proc/sys/vm/drop_caches', echo);
106
102
  // Clear PageCache, dentries and inodes.
107
- await (0, utils_2.exec)('sync; echo 3 > /proc/sys/vm/drop_caches', echo);
103
+ await exec('sync; echo 3 > /proc/sys/vm/drop_caches', echo);
108
104
  }
109
105
  }
110
- exports.default = Bleach;
111
106
  /**
112
107
  *
113
108
  * @param dest
114
109
  */
115
110
  async function rm(dest = '', verbose = false) {
116
- let echo = { echo: false, ignore: true, capture: false };
111
+ let echo = { capture: false, echo: false, ignore: true };
117
112
  if (verbose) {
118
- echo = { echo: true, ignore: true, capture: false };
113
+ echo = { capture: false, echo: true, ignore: true };
119
114
  }
120
- if (node_fs_1.default.existsSync(dest)) {
121
- await (0, utils_2.exec)(`rm ${dest} -rf`, echo);
115
+ if (fs.existsSync(dest)) {
116
+ await exec(`rm ${dest} -rf`, echo);
122
117
  }
123
118
  else {
124
119
  console.log(`non esiste ${dest}`);
125
120
  }
126
121
  }
127
122
  async function rmdir(dest = '', verbose = false) {
128
- let echo = { echo: false, ignore: true, capture: false };
123
+ let echo = { capture: false, echo: false, ignore: true };
129
124
  if (verbose) {
130
- echo = { echo: true, ignore: true, capture: false };
125
+ echo = { capture: false, echo: true, ignore: true };
131
126
  }
132
- const result = node_fs_1.default.readdirSync(dest);
127
+ const result = fs.readdirSync(dest);
133
128
  if (result.length > 0) {
134
- await (0, utils_2.exec)(`rm ${dest} -rf`, echo);
129
+ await exec(`rm ${dest} -rf`, echo);
135
130
  }
136
131
  }
137
- /**
138
- * Elenco pulitori bleachbit
139
- * Solo quelli pertinenti root
140
- */
141
- /*
142
-
143
- # apt
144
- # bash.history
145
-
146
- // deepscan.backup
147
- // deepscan.ds_store
148
- // deepscan.thumbs_db
149
- // deepscan.tmp
150
-
151
- gnome.run
152
- gnome.search_history
153
-
154
- journald.clean
155
-
156
- // kde.cache
157
- // kde.recent_documents
158
- // kde.tmp
159
-
160
- # system.cache
161
- system.clipboard // xclip
162
- system.custom
163
- system.desktop_entry
164
- system.free_disk_space
165
- system.localizations
166
- system.memory
167
- system.recent_documents
168
- system.rotated_logs
169
- system.tmp
170
- system.trash
171
-
172
- wine.tmp
173
- winetricks.temporary_files
174
-
175
- x11.debug_logs
176
-
177
- yum.clean_all
178
- yum.vacuum
179
- */
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ./src/classes/families/cfs.ts (custom final steps)
3
+ * penguins-eggs v.10.0.0 / ecmascript 2020
4
+ * author: Piero Proietti
5
+ * email: piero.proietti@gmail.com
6
+ * license: MIT
7
+ */
8
+ /**
9
+ * cfs
10
+ */
11
+ export default class CFS {
12
+ /**
13
+ * steps
14
+ * @returns
15
+ */
16
+ steps(): Promise<string[]>;
17
+ }