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.
- package/.oclif.manifest.json +242 -242
- package/README.md +43 -40
- package/bin/dev.cmd +1 -1
- package/bin/dev.js +6 -6
- package/bin/run.js +3 -5
- package/conf/tools.yaml +1 -1
- package/dist/classes/bleach.d.ts +37 -0
- package/dist/classes/bleach.js +43 -91
- package/dist/classes/cfs.d.ts +17 -0
- package/dist/classes/cfs.js +15 -12
- package/dist/classes/compressors.d.ts +53 -0
- package/dist/classes/compressors.js +42 -47
- package/dist/classes/daddy.d.ts +18 -0
- package/dist/classes/daddy.js +92 -98
- package/dist/classes/distro.d.ts +26 -0
- package/dist/classes/distro.js +36 -37
- package/dist/classes/families/archlinux.d.ts +61 -0
- package/dist/classes/families/archlinux.js +52 -107
- package/dist/classes/families/debian.d.ts +65 -0
- package/dist/classes/families/debian.js +67 -142
- package/dist/classes/families/fedora.d.ts +52 -0
- package/dist/classes/families/fedora.js +42 -98
- package/dist/classes/families/mockup.d.ts +60 -0
- package/dist/classes/families/mockup.js +27 -46
- package/dist/classes/families/suse.d.ts +52 -0
- package/dist/classes/families/suse.js +44 -96
- package/dist/classes/incubation/branding.d.ts +17 -0
- package/dist/classes/incubation/branding.js +32 -36
- package/dist/classes/incubation/distros/bionic.d.ts +32 -0
- package/dist/classes/incubation/distros/bionic.js +11 -16
- package/dist/classes/incubation/distros/buster.d.ts +32 -0
- package/dist/classes/incubation/distros/buster.js +13 -18
- package/dist/classes/incubation/distros/focal.d.ts +32 -0
- package/dist/classes/incubation/distros/focal.js +11 -16
- package/dist/classes/incubation/distros/jessie.d.ts +31 -0
- package/dist/classes/incubation/distros/jessie.js +8 -13
- package/dist/classes/incubation/distros/rolling.d.ts +32 -0
- package/dist/classes/incubation/distros/rolling.js +11 -16
- package/dist/classes/incubation/fisherman-helper/displaymanager.d.ts +11 -0
- package/dist/classes/incubation/fisherman-helper/displaymanager.js +8 -9
- package/dist/classes/incubation/fisherman-helper/packages.d.ts +20 -0
- package/dist/classes/incubation/fisherman-helper/packages.js +17 -20
- package/dist/classes/incubation/fisherman-helper/settings.d.ts +15 -0
- package/dist/classes/incubation/fisherman-helper/settings.js +30 -28
- package/dist/classes/incubation/fisherman.d.ts +77 -0
- package/dist/classes/incubation/fisherman.js +135 -131
- package/dist/classes/incubation/incubator.d.ts +40 -0
- package/dist/classes/incubation/incubator.js +90 -89
- package/dist/classes/incubation/installer.d.ts +13 -0
- package/dist/classes/incubation/installer.js +27 -12
- package/dist/classes/initrd.d.ts +41 -0
- package/dist/classes/initrd.js +40 -42
- package/dist/classes/keyboards.d.ts +50 -0
- package/dist/classes/keyboards.js +108 -105
- package/dist/classes/locales.d.ts +21 -0
- package/dist/classes/locales.js +30 -34
- package/dist/classes/n8.d.ts +17 -0
- package/dist/classes/n8.js +16 -22
- package/dist/classes/network.d.ts +37 -0
- package/dist/classes/network.js +14 -18
- package/dist/classes/ovary.d.ts +205 -0
- package/dist/classes/ovary.js +1281 -1294
- package/dist/classes/pacman.d.ts +149 -0
- package/dist/classes/pacman.js +344 -418
- package/dist/classes/pve-live.d.ts +17 -0
- package/dist/classes/pve-live.js +22 -24
- package/dist/classes/pxe.d.ts +65 -0
- package/dist/classes/pxe.js +204 -206
- package/dist/classes/settings.d.ts +53 -0
- package/dist/classes/settings.js +91 -94
- package/dist/classes/sources_list.d.ts +28 -0
- package/dist/classes/sources_list.js +35 -39
- package/dist/classes/systemctl.d.ts +47 -0
- package/dist/classes/systemctl.js +34 -38
- package/dist/classes/tailor.d.ts +46 -0
- package/dist/classes/tailor.js +223 -239
- package/dist/classes/tools.d.ts +30 -0
- package/dist/classes/tools.js +18 -22
- package/dist/classes/users.d.ts +28 -0
- package/dist/classes/users.js +18 -22
- package/dist/classes/utils.d.ts +318 -0
- package/dist/classes/utils.js +78 -78
- package/dist/classes/xdg.d.ts +45 -0
- package/dist/classes/xdg.js +129 -133
- package/dist/classes/yolk.d.ts +33 -0
- package/dist/classes/yolk.js +53 -57
- package/dist/commands/adapt.d.ts +17 -0
- package/dist/commands/adapt.js +17 -21
- package/dist/commands/analyze.d.ts +26 -0
- package/dist/commands/analyze.js +56 -67
- package/dist/commands/calamares.d.ts +29 -0
- package/dist/commands/calamares.js +44 -48
- package/dist/commands/config.d.ts +36 -0
- package/dist/commands/config.js +115 -137
- package/dist/commands/cuckoo.d.ts +16 -0
- package/dist/commands/cuckoo.js +20 -24
- package/dist/commands/dad.d.ts +19 -0
- package/dist/commands/dad.js +20 -24
- package/dist/commands/export/deb.d.ts +19 -0
- package/dist/commands/export/deb.js +19 -23
- package/dist/commands/export/iso.d.ts +19 -0
- package/dist/commands/export/iso.js +19 -23
- package/dist/commands/install.d.ts +37 -0
- package/dist/commands/install.js +46 -50
- package/dist/commands/kill.d.ts +24 -0
- package/dist/commands/kill.js +25 -29
- package/dist/commands/mom.d.ts +16 -0
- package/dist/commands/mom.js +16 -18
- package/dist/commands/produce.d.ts +33 -0
- package/dist/commands/produce.js +64 -66
- package/dist/commands/status.d.ts +23 -0
- package/dist/commands/status.js +10 -14
- package/dist/commands/syncfrom.d.ts +45 -0
- package/dist/commands/syncfrom.js +85 -89
- package/dist/commands/syncto.d.ts +40 -0
- package/dist/commands/syncto.js +91 -95
- package/dist/commands/tools/clean.d.ts +18 -0
- package/dist/commands/tools/clean.js +17 -21
- package/dist/commands/tools/ppa.d.ts +26 -0
- package/dist/commands/tools/ppa.js +41 -45
- package/dist/commands/tools/skel.d.ts +18 -0
- package/dist/commands/tools/skel.js +22 -26
- package/dist/commands/tools/stat.d.ts +31 -0
- package/dist/commands/tools/stat.js +15 -19
- package/dist/commands/tools/yolk.d.ts +24 -0
- package/dist/commands/tools/yolk.js +19 -23
- package/dist/commands/update.d.ts +47 -0
- package/dist/commands/update.js +62 -66
- package/dist/commands/wardrobe/get.d.ts +23 -0
- package/dist/commands/wardrobe/get.js +19 -23
- package/dist/commands/wardrobe/list.d.ts +24 -0
- package/dist/commands/wardrobe/list.js +61 -60
- package/dist/commands/wardrobe/show.d.ts +25 -0
- package/dist/commands/wardrobe/show.js +50 -47
- package/dist/commands/wardrobe/wear.d.ts +26 -0
- package/dist/commands/wardrobe/wear.js +32 -36
- package/dist/components/finished.d.ts +15 -0
- package/dist/components/finished.js +37 -42
- package/dist/components/information.d.ts +8 -0
- package/dist/components/information.js +155 -0
- package/dist/components/install.d.ts +15 -0
- package/dist/components/install.js +31 -35
- package/dist/components/keyboard.d.ts +16 -0
- package/dist/components/keyboard.js +37 -40
- package/dist/components/location.d.ts +16 -0
- package/dist/components/location.js +38 -38
- package/dist/components/network.d.ts +19 -0
- package/dist/components/network.js +47 -48
- package/dist/components/partitions.d.ts +16 -0
- package/dist/components/partitions.js +47 -51
- package/dist/components/steps.d.ts +13 -0
- package/dist/components/steps.js +148 -0
- package/dist/components/summary.d.ts +24 -0
- package/dist/components/summary.js +50 -54
- package/dist/components/title.d.ts +12 -0
- package/dist/components/title.js +35 -0
- package/dist/components/users.d.ts +24 -0
- package/dist/components/users.js +43 -43
- package/dist/components/welcome.d.ts +13 -0
- package/dist/components/welcome.js +37 -38
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -5
- package/dist/interfaces/i-addons.d.ts +13 -0
- package/dist/interfaces/i-addons.js +8 -3
- package/dist/interfaces/i-analyze.d.ts +17 -0
- package/dist/interfaces/i-analyze.js +7 -10
- package/dist/interfaces/i-app.d.ts +14 -0
- package/dist/interfaces/i-app.js +8 -2
- package/dist/interfaces/i-branding.d.ts +36 -0
- package/dist/interfaces/i-branding.js +8 -2
- package/dist/interfaces/i-calamares-partition.d.ts +18 -0
- package/dist/interfaces/i-calamares-partition.js +3 -4
- package/dist/interfaces/i-config-tools.d.ts +18 -0
- package/dist/interfaces/i-config-tools.js +8 -2
- package/dist/interfaces/i-devices.d.ts +20 -0
- package/dist/interfaces/i-devices.js +8 -2
- package/dist/interfaces/i-distro.d.ts +27 -0
- package/dist/interfaces/i-distro.js +3 -4
- package/dist/interfaces/i-drive-list.d.ts +33 -0
- package/dist/interfaces/i-drive-list.js +3 -4
- package/dist/interfaces/i-eggs-config.d.ts +32 -0
- package/dist/interfaces/i-eggs-config.js +3 -4
- package/dist/interfaces/i-excludes.d.ts +14 -0
- package/dist/interfaces/i-excludes.js +8 -2
- package/dist/interfaces/i-exec.d.ts +11 -0
- package/dist/interfaces/i-exec.js +3 -4
- package/dist/interfaces/i-initrd.d.ts +13 -0
- package/dist/interfaces/i-initrd.js +8 -2
- package/dist/interfaces/i-install.d.ts +16 -0
- package/dist/interfaces/i-install.js +8 -2
- package/dist/interfaces/i-installer.d.ts +17 -0
- package/dist/interfaces/i-installer.js +8 -2
- package/dist/interfaces/i-krill-config.d.ts +33 -0
- package/dist/interfaces/i-krill-config.js +3 -4
- package/dist/interfaces/i-krill.d.ts +42 -0
- package/dist/interfaces/i-krill.js +8 -2
- package/dist/interfaces/i-materia.d.ts +41 -0
- package/dist/interfaces/i-materia.js +8 -2
- package/dist/interfaces/i-net.d.ts +16 -0
- package/dist/interfaces/i-net.js +8 -2
- package/dist/interfaces/i-packages.d.ts +29 -0
- package/dist/interfaces/i-packages.js +3 -4
- package/dist/interfaces/i-partitions.d.ts +16 -0
- package/dist/interfaces/i-partitions.js +8 -2
- package/dist/interfaces/i-pxe.d.ts +21 -0
- package/dist/interfaces/i-pxe.js +8 -39
- package/dist/interfaces/i-remix.d.ts +21 -0
- package/dist/interfaces/i-remix.js +3 -4
- package/dist/interfaces/i-settings.d.ts +39 -0
- package/dist/interfaces/i-settings.js +8 -2
- package/dist/interfaces/i-user.d.ts +14 -0
- package/dist/interfaces/i-user.js +8 -2
- package/dist/interfaces/i-workdir.d.ts +14 -0
- package/dist/interfaces/i-workdir.js +8 -2
- package/dist/interfaces/i-xkb-model.d.ts +24 -0
- package/dist/interfaces/i-xkb-model.js +8 -2
- package/dist/interfaces/index.d.ts +25 -0
- package/dist/interfaces/index.js +3 -4
- package/dist/krill/modules/add-user.d.ts +20 -0
- package/dist/krill/modules/add-user.js +11 -15
- package/dist/krill/modules/bootloader-config-arch.d.ts +14 -0
- package/dist/krill/modules/bootloader-config-arch.js +15 -11
- package/dist/krill/modules/bootloader-config-debian.d.ts +10 -0
- package/dist/krill/modules/bootloader-config-debian.js +20 -16
- package/dist/krill/modules/bootloader-config.d.ts +10 -0
- package/dist/krill/modules/bootloader-config.js +3 -6
- package/dist/krill/modules/bootloader.d.ts +14 -0
- package/dist/krill/modules/bootloader.js +9 -13
- package/dist/krill/modules/change-password.d.ts +15 -0
- package/dist/krill/modules/change-password.js +5 -8
- package/dist/krill/modules/del-live-user.d.ts +14 -0
- package/dist/krill/modules/del-live-user.js +8 -12
- package/dist/krill/modules/fstab.d.ts +14 -0
- package/dist/krill/modules/fstab.js +33 -37
- package/dist/krill/modules/grubcfg.d.ts +17 -0
- package/dist/krill/modules/grubcfg.js +8 -17
- package/dist/krill/modules/hostname.d.ts +13 -0
- package/dist/krill/modules/hostname.js +11 -17
- package/dist/krill/modules/initramfs-cfg.d.ts +14 -0
- package/dist/krill/modules/initramfs-cfg.js +6 -15
- package/dist/krill/modules/initramfs.d.ts +13 -0
- package/dist/krill/modules/initramfs.js +17 -19
- package/dist/krill/modules/locale-cfg.d.ts +10 -0
- package/dist/krill/modules/locale-cfg.js +8 -12
- package/dist/krill/modules/locale.d.ts +13 -0
- package/dist/krill/modules/locale.js +7 -11
- package/dist/krill/modules/m-keyboard.d.ts +14 -0
- package/dist/krill/modules/m-keyboard.js +14 -18
- package/dist/krill/modules/m-timezone.d.ts +14 -0
- package/dist/krill/modules/m-timezone.js +8 -12
- package/dist/krill/modules/machine-id.d.ts +15 -0
- package/dist/krill/modules/machine-id.js +6 -10
- package/dist/krill/modules/mkfs.d.ts +13 -0
- package/dist/krill/modules/mkfs.js +10 -13
- package/dist/krill/modules/mount-fs.d.ts +17 -0
- package/dist/krill/modules/mount-fs.js +20 -26
- package/dist/krill/modules/mount-vfs.d.ts +17 -0
- package/dist/krill/modules/mount-vfs.js +16 -21
- package/dist/krill/modules/network-cfg.d.ts +19 -0
- package/dist/krill/modules/network-cfg.js +16 -20
- package/dist/krill/modules/packages.d.ts +14 -0
- package/dist/krill/modules/packages.js +17 -21
- package/dist/krill/modules/partition.d.ts +20 -0
- package/dist/krill/modules/partition.js +78 -84
- package/dist/krill/modules/remove-installer-link.d.ts +13 -0
- package/dist/krill/modules/remove-installer-link.js +7 -11
- package/dist/krill/modules/umount.d.ts +14 -0
- package/dist/krill/modules/umount.js +9 -13
- package/dist/krill/modules/unpackfs.d.ts +13 -0
- package/dist/krill/modules/unpackfs.js +7 -11
- package/dist/krill/prepare.d.ts +77 -0
- package/dist/krill/{krill-prepare.js → prepare.js} +118 -124
- package/dist/krill/sequence.d.ts +156 -0
- package/dist/krill/{krill-sequence.js → sequence.js} +166 -170
- package/dist/lib/cli-autologin.d.ts +43 -0
- package/dist/lib/cli-autologin.js +88 -92
- package/dist/lib/get_address.d.ts +8 -0
- package/dist/lib/get_address.js +9 -11
- package/dist/lib/get_dns.d.ts +8 -0
- package/dist/lib/get_dns.js +9 -11
- package/dist/lib/get_domain.d.ts +8 -0
- package/dist/lib/get_domain.js +9 -11
- package/dist/lib/get_gateway.d.ts +8 -0
- package/dist/lib/get_gateway.js +9 -11
- package/dist/lib/get_hostname.d.ts +8 -0
- package/dist/lib/get_hostname.js +9 -11
- package/dist/lib/get_netmask.d.ts +8 -0
- package/dist/lib/get_netmask.js +9 -11
- package/dist/lib/get_password.d.ts +8 -0
- package/dist/lib/get_password.js +10 -13
- package/dist/lib/get_userfullname.d.ts +8 -0
- package/dist/lib/get_userfullname.js +9 -11
- package/dist/lib/get_username.d.ts +8 -0
- package/dist/lib/get_username.js +9 -12
- package/dist/lib/kill_me_softly.d.ts +11 -0
- package/dist/lib/kill_me_softly.js +19 -24
- package/dist/lib/select_address_type.d.ts +8 -0
- package/dist/lib/select_address_type.js +9 -12
- package/dist/lib/select_filesystem_type.d.ts +8 -0
- package/dist/lib/select_filesystem_type.js +15 -18
- package/dist/lib/select_installation_device.d.ts +8 -0
- package/dist/lib/select_installation_device.js +11 -15
- package/dist/lib/select_installation_mode.d.ts +8 -0
- package/dist/lib/select_installation_mode.js +9 -11
- package/dist/lib/select_interface.d.ts +8 -0
- package/dist/lib/select_interface.js +9 -12
- package/dist/lib/select_keyboard_layout.d.ts +11 -0
- package/dist/lib/select_keyboard_layout.js +11 -15
- package/dist/lib/select_keyboard_model.d.ts +11 -0
- package/dist/lib/select_keyboard_model.js +11 -15
- package/dist/lib/select_keyboard_option.d.ts +11 -0
- package/dist/lib/select_keyboard_option.js +11 -15
- package/dist/lib/select_keyboard_variant.d.ts +11 -0
- package/dist/lib/select_keyboard_variant.js +11 -15
- package/dist/lib/select_languages.d.ts +8 -0
- package/dist/lib/select_languages.js +11 -15
- package/dist/lib/select_regions.d.ts +8 -0
- package/dist/lib/select_regions.js +9 -11
- package/dist/lib/select_user_swap_choice.d.ts +8 -0
- package/dist/lib/select_user_swap_choice.js +13 -17
- package/dist/lib/select_zones.d.ts +8 -0
- package/dist/lib/select_zones.js +9 -11
- package/dist/lib/utils.d.ts +34 -0
- package/dist/lib/utils.js +24 -14
- package/manpages/doc/man/eggs.1.gz +0 -0
- package/manpages/doc/man/eggs.html +10 -10
- package/package.json +49 -70
- package/LICENSE +0 -339
- package/bin/dev +0 -17
- package/bin/run +0 -5
- package/dist/components/elements/information.js +0 -194
- package/dist/components/elements/steps.js +0 -152
- package/dist/components/elements/title.js +0 -36
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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/
|
|
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/
|
|
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
|
|
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/
|
|
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
|
|
536
|
+
Configure eggs to run it
|
|
534
537
|
|
|
535
538
|
```
|
|
536
539
|
USAGE
|
|
537
|
-
$ eggs config [-c] [-h] [-
|
|
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
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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 [-
|
|
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/
|
|
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
|
|
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/
|
|
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] [-
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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>] [-
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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.
|
|
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/
|
|
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] [-
|
|
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/
|
|
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/
|
|
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/
|
|
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
package/bin/dev.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
@@ -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
|
+
}
|
package/dist/classes/bleach.js
CHANGED
|
@@ -1,37 +1,33 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint-disable no-console */
|
|
3
1
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
16
|
-
|
|
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
|
-
|
|
23
|
+
Utils.warning('cleaning the system');
|
|
28
24
|
}
|
|
29
|
-
const distro = new
|
|
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
|
|
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 = {
|
|
41
|
+
let echo = { capture: false, echo: false, ignore: true };
|
|
46
42
|
if (verbose) {
|
|
47
|
-
echo = {
|
|
43
|
+
echo = { capture: false, echo: true, ignore: true };
|
|
48
44
|
}
|
|
49
|
-
await
|
|
50
|
-
await
|
|
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
|
-
|
|
56
|
+
Utils.warning('cleaning bash history');
|
|
61
57
|
}
|
|
62
58
|
const dest = '/root/.bash_history';
|
|
63
|
-
if (
|
|
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 = {
|
|
68
|
+
let echo = { capture: false, echo: false, ignore: true };
|
|
73
69
|
if (verbose) {
|
|
74
|
-
echo = {
|
|
75
|
-
|
|
70
|
+
echo = { capture: false, echo: true, ignore: true };
|
|
71
|
+
Utils.warning('cleaning journald');
|
|
76
72
|
}
|
|
77
|
-
if (
|
|
73
|
+
if (Utils.isSystemd()) {
|
|
78
74
|
try {
|
|
79
|
-
await
|
|
80
|
-
await
|
|
75
|
+
await exec('journalctl --rotate', echo);
|
|
76
|
+
await exec('journalctl --vacuum-time=1s', echo);
|
|
81
77
|
}
|
|
82
78
|
catch (error) {
|
|
83
|
-
|
|
79
|
+
Utils.error(error);
|
|
84
80
|
}
|
|
85
81
|
}
|
|
86
82
|
else {
|
|
87
83
|
// Truncate logs, remove archived logs.
|
|
88
|
-
await
|
|
89
|
-
await
|
|
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 = {
|
|
93
|
+
let echo = { capture: false, echo: false, ignore: true };
|
|
98
94
|
if (verbose) {
|
|
99
|
-
echo = {
|
|
100
|
-
|
|
95
|
+
echo = { capture: false, echo: true, ignore: true };
|
|
96
|
+
Utils.warning('cleaning system cache');
|
|
101
97
|
}
|
|
102
98
|
// Clear PageCache only.
|
|
103
|
-
await
|
|
99
|
+
await exec('sync; echo 1 > /proc/sys/vm/drop_caches', echo);
|
|
104
100
|
// Clear dentries and inodes.
|
|
105
|
-
await
|
|
101
|
+
await exec('sync; echo 2 > /proc/sys/vm/drop_caches', echo);
|
|
106
102
|
// Clear PageCache, dentries and inodes.
|
|
107
|
-
await
|
|
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 = {
|
|
111
|
+
let echo = { capture: false, echo: false, ignore: true };
|
|
117
112
|
if (verbose) {
|
|
118
|
-
echo = {
|
|
113
|
+
echo = { capture: false, echo: true, ignore: true };
|
|
119
114
|
}
|
|
120
|
-
if (
|
|
121
|
-
await
|
|
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 = {
|
|
123
|
+
let echo = { capture: false, echo: false, ignore: true };
|
|
129
124
|
if (verbose) {
|
|
130
|
-
echo = {
|
|
125
|
+
echo = { capture: false, echo: true, ignore: true };
|
|
131
126
|
}
|
|
132
|
-
const result =
|
|
127
|
+
const result = fs.readdirSync(dest);
|
|
133
128
|
if (result.length > 0) {
|
|
134
|
-
await
|
|
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
|
+
}
|