penguins-eggs 8.1.3 → 9.0.16
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/README.md +332 -168
- package/addons/README.md +78 -84
- package/addons/{pve → blissos}/theme/applications/install-debian.desktop +0 -0
- package/addons/{deblinux → blissos}/theme/artwork/install-debian.png +0 -0
- package/addons/blissos/theme/calamares/branding/blissos-logo.png +0 -0
- package/addons/{guadalinex → blissos}/theme/calamares/branding/branding.desc +0 -0
- package/addons/blissos/theme/calamares/branding/languages.png +0 -0
- package/addons/blissos/theme/calamares/branding/show.qml +75 -0
- package/addons/blissos/theme/calamares/branding/slide1.png +0 -0
- package/addons/blissos/theme/calamares/branding/slide2.png +0 -0
- package/addons/blissos/theme/calamares/branding/slide3.png +0 -0
- package/addons/blissos/theme/calamares/branding/welcome.png +0 -0
- package/addons/{guadalinex → blissos}/theme/calamares/modules/partition.yml +1 -1
- package/{conf/distros/buster/grub/theme.cfg → addons/blissos/theme/livecd/grub.theme.cfg} +10 -9
- package/{conf/distros/buster/isolinux/stdmenu.template.cfg → addons/blissos/theme/livecd/isolinux.theme.cfg} +4 -0
- package/addons/blissos/theme/livecd/splash.png +0 -0
- package/addons/eggs/adapt/applications/eggs-adapt.desktop +1 -1
- package/addons/eggs/theme/calamares/branding/show.qml +1 -1
- package/addons/eggs/theme/livecd/README.md +19 -6
- package/addons/eggs/theme/livecd/{theme.cfg → grub.theme.cfg} +13 -12
- package/addons/eggs/theme/livecd/isolinux.theme.cfg +46 -0
- package/addons/eggs/theme/livecd/splash.png +0 -0
- package/addons/{ufficiozero/theme/livecd/theme.cfg → neon/theme/livecd/grub.theme.cfg} +13 -12
- package/addons/neon/theme/livecd/isolinux.theme.cfg +46 -0
- package/addons/neon/theme/livecd/splash.png +0 -0
- package/addons/templates/grub.template +28 -0
- package/addons/templates/isolinux.template +29 -0
- package/addons/ufficiozero/theme/applications/install-debian.desktop +17 -2
- package/bin/dev +17 -0
- package/bin/dev.cmd +3 -0
- package/bin/run +2 -4
- package/conf/distros/bionic/calamares/settings.yml +5 -5
- package/conf/distros/bookworm/README.md +9 -0
- package/conf/distros/bullseye/README.md +6 -8
- package/conf/distros/buster/calamares/calamares-modules/sources-yolk/sources-yolk.sh +1 -1
- package/conf/distros/buster/calamares/calamares-modules/sources-yolk/sources-yolk.working.sh +1 -1
- package/conf/distros/buster/calamares/modules/shellprocess_eggs-cleanup.yml +6 -0
- package/conf/distros/buster/calamares/settings.yml +14 -3
- package/conf/distros/chimaera/README.md +3 -0
- package/conf/distros/daedalus/README.md +3 -0
- package/conf/distros/focal/calamares/settings.yml +2 -2
- package/conf/distros/hirsute/README.md +1 -1
- package/conf/distros/impish/README.md +9 -0
- package/conf/distros/jammy/README.md +9 -0
- package/conf/distros/jessie/krill/krill-modules/sources-yolk/sources-yolk.sh +1 -1
- package/conf/distros/rolling/README.md +3 -0
- package/conf/distros/rolling/calamares/calamares-modules/remove-link/module.yml +9 -0
- package/conf/distros/rolling/calamares/calamares-modules/remove-link/remove-link.sh +3 -0
- package/conf/distros/rolling/calamares/modules/displaymanager.yml +22 -0
- package/conf/distros/rolling/calamares/modules/finished.yml +6 -0
- package/conf/distros/rolling/calamares/modules/fstab.yml +13 -0
- package/conf/distros/rolling/calamares/modules/locale.yml +97 -0
- package/conf/distros/rolling/calamares/modules/luksopenswaphookcfg.yml +6 -0
- package/conf/distros/rolling/calamares/modules/mount.yml +38 -0
- package/conf/distros/rolling/calamares/modules/packages.yml +8 -0
- package/conf/distros/rolling/calamares/modules/removeuser.yml +15 -0
- package/conf/distros/rolling/calamares/modules/unpackfs.yml +7 -0
- package/conf/distros/rolling/calamares/modules/users.yml +20 -0
- package/conf/distros/rolling/calamares/modules/welcome.yml +19 -0
- package/conf/distros/{bullseye → rolling}/calamares/settings.yml +17 -12
- package/conf/distros/thirtyfive/README.md +3 -0
- package/conf/distros/tumbleweed/README.md +3 -0
- package/conf/eggs.yaml +3 -3
- package/conf/exclude.list +12 -7
- package/conf/tools.yaml +1 -1
- package/lib/classes/basket.js +24 -20
- package/lib/classes/bleach.js +19 -19
- package/lib/classes/compressors.js +15 -14
- package/lib/classes/daddy.js +44 -31
- package/lib/classes/distro.d.ts +3 -2
- package/lib/classes/distro.js +314 -175
- package/lib/classes/family/archlinux.d.ts +69 -0
- package/lib/classes/family/archlinux.js +182 -0
- package/lib/classes/family/debian.d.ts +64 -0
- package/lib/classes/family/debian.js +227 -0
- package/lib/classes/family/fedora.d.ts +63 -0
- package/lib/classes/family/fedora.js +169 -0
- package/lib/classes/family/suse.d.ts +63 -0
- package/lib/classes/family/suse.js +169 -0
- package/lib/classes/i18n.js +16 -16
- package/lib/classes/incubation/branding.js +5 -4
- package/lib/classes/incubation/distros/bionic.js +1 -2
- package/lib/classes/incubation/distros/buster.js +2 -2
- package/lib/classes/incubation/distros/focal.js +3 -2
- package/lib/classes/incubation/distros/jessie.js +1 -25
- package/lib/classes/incubation/distros/{bullseye.d.ts → rolling.d.ts} +3 -3
- package/lib/classes/incubation/distros/{bullseye.js → rolling.js} +15 -16
- package/lib/classes/incubation/fisherman-helper/displaymanager.js +2 -7
- package/lib/classes/incubation/fisherman-helper/packages.js +31 -32
- package/lib/classes/incubation/fisherman.d.ts +17 -17
- package/lib/classes/incubation/fisherman.js +84 -71
- package/lib/classes/incubation/incubator.js +116 -74
- package/lib/classes/incubation/installer.d.ts +2 -2
- package/lib/classes/incubation/installer.js +6 -20
- package/lib/classes/initrd.d.ts +1 -1
- package/lib/classes/initrd.js +37 -30
- package/lib/classes/krill_install.d.ts +4 -4
- package/lib/classes/krill_install.js +166 -162
- package/lib/classes/krill_prepare.d.ts +6 -2
- package/lib/classes/krill_prepare.js +73 -60
- package/lib/classes/n8.js +6 -11
- package/lib/classes/ovary.d.ts +34 -25
- package/lib/classes/ovary.js +771 -688
- package/lib/classes/pacman.d.ts +55 -56
- package/lib/classes/pacman.js +524 -436
- package/lib/classes/pve-live.js +6 -6
- package/lib/classes/settings.js +47 -56
- package/lib/classes/systemctl.d.ts +6 -6
- package/lib/classes/systemctl.js +7 -7
- package/lib/classes/tools.d.ts +1 -1
- package/lib/classes/tools.js +10 -10
- package/lib/classes/users.d.ts +21 -0
- package/lib/classes/users.js +129 -0
- package/lib/classes/utils.d.ts +10 -13
- package/lib/classes/utils.js +128 -107
- package/lib/classes/xdg.js +112 -91
- package/lib/classes/yolk.js +38 -31
- package/lib/commands/adapt.d.ts +3 -3
- package/lib/commands/adapt.js +12 -12
- package/lib/commands/analyze.d.ts +25 -0
- package/lib/commands/analyze.js +74 -0
- package/lib/commands/bro.d.ts +14 -0
- package/lib/commands/bro.js +31 -0
- package/lib/commands/calamares.d.ts +7 -7
- package/lib/commands/calamares.js +22 -54
- package/lib/commands/config.d.ts +5 -5
- package/lib/commands/config.js +69 -79
- package/lib/commands/dad.d.ts +5 -5
- package/lib/commands/dad.js +11 -11
- package/lib/commands/export/deb.d.ts +8 -8
- package/lib/commands/export/deb.js +16 -16
- package/lib/commands/export/docs.d.ts +2 -2
- package/lib/commands/export/docs.js +9 -9
- package/lib/commands/export/iso.d.ts +4 -4
- package/lib/commands/export/iso.js +12 -17
- package/lib/commands/info.d.ts +9 -3
- package/lib/commands/info.js +14 -164
- package/lib/commands/install.d.ts +5 -5
- package/lib/commands/install.js +28 -42
- package/lib/commands/kill.d.ts +3 -3
- package/lib/commands/kill.js +11 -13
- package/lib/commands/mom.d.ts +2 -2
- package/lib/commands/mom.js +8 -8
- package/lib/commands/produce.d.ts +14 -14
- package/lib/commands/produce.js +48 -46
- package/lib/commands/remove.d.ts +5 -5
- package/lib/commands/remove.js +46 -57
- package/lib/commands/syncfrom.d.ts +37 -0
- package/lib/commands/syncfrom.js +156 -0
- package/lib/commands/syncto.d.ts +48 -0
- package/lib/commands/syncto.js +219 -0
- package/lib/commands/tools/clean.d.ts +3 -3
- package/lib/commands/tools/clean.js +10 -12
- package/lib/commands/tools/locales.d.ts +4 -4
- package/lib/commands/tools/locales.js +8 -8
- package/lib/commands/tools/skel.d.ts +4 -4
- package/lib/commands/tools/skel.js +10 -15
- package/lib/commands/tools/stat.d.ts +7 -4
- package/lib/commands/tools/stat.js +20 -13
- package/lib/commands/tools/yolk.d.ts +3 -3
- package/lib/commands/tools/yolk.js +13 -13
- package/lib/commands/update.d.ts +5 -10
- package/lib/commands/update.js +56 -72
- package/lib/components/elements/information.d.ts +4 -0
- package/lib/components/elements/information.js +166 -0
- package/lib/components/elements/steps.js +1 -1
- package/lib/components/elements/title.js +7 -10
- package/lib/components/finished.js +5 -5
- package/lib/components/install.js +5 -5
- package/lib/components/keyboard.js +5 -5
- package/lib/components/location.js +5 -5
- package/lib/components/network.js +5 -5
- package/lib/components/partitions.d.ts +2 -1
- package/lib/components/partitions.js +9 -7
- package/lib/components/summary.js +5 -5
- package/lib/components/users.js +6 -6
- package/lib/components/welcome.js +6 -6
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/lib/interfaces/i-analyze.d.ts +13 -0
- package/lib/interfaces/i-analyze.js +18 -0
- package/lib/interfaces/i-distro.d.ts +3 -2
- package/lib/interfaces/i-krill.d.ts +1 -0
- package/lib/interfaces/i-settings.d.ts +2 -2
- package/lib/lib/cli-autologin.d.ts +19 -2
- package/lib/lib/cli-autologin.js +114 -39
- package/lib/lib/dependencies.d.ts +9 -6
- package/lib/lib/dependencies.js +22 -13
- package/lib/lib/get_address.js +2 -2
- package/lib/lib/get_dns.js +2 -2
- package/lib/lib/get_domain.js +2 -2
- package/lib/lib/get_gateway.js +2 -2
- package/lib/lib/get_hostname.js +2 -2
- package/lib/lib/get_netmask.js +2 -2
- package/lib/lib/get_password.js +3 -2
- package/lib/lib/get_root_password.js +2 -2
- package/lib/lib/get_userfullname.js +2 -2
- package/lib/lib/get_username.js +2 -2
- package/lib/lib/select_address_type.js +2 -5
- package/lib/lib/select_filesystem_type.js +5 -14
- package/lib/lib/select_installation_device.js +3 -3
- package/lib/lib/select_interface.js +1 -1
- package/lib/lib/select_keyboard_layout.js +2 -10
- package/lib/lib/select_languages.js +2 -2
- package/lib/lib/select_regions.js +1 -12
- package/lib/lib/select_user_swap_choice.js +4 -4
- package/lib/lib/select_zones.js +483 -62
- package/manpages/doc/man/eggs.html +508 -0
- package/manpages/doc/man/eggs.roll.gz +0 -0
- package/oclif.manifest.json +1 -1
- package/package.json +115 -107
- package/scripts/_eggs +275 -0
- package/scripts/bros/waydroid-helper.sh +92 -0
- package/scripts/eggs.bash +68 -19
- package/scripts/mom-cli.sh +6 -5
- package/scripts/not-used/eggs-cleanup.sh +7 -0
- package/scripts/not-used/install-eggs-ppa.sh +2 -0
- package/scripts/{mkinitramfs → not-used/mkinitramfs} +0 -0
- package/scripts/{pve-live.sh → not-used/pve-live.sh} +0 -0
- package/addons/debian/theme/applications/install-debian.desktop +0 -13
- package/addons/debian/theme/artwork/install-debian.png +0 -0
- package/addons/debian/theme/branding/branding.desc +0 -27
- package/addons/debian/theme/branding/debian-logo.png +0 -0
- package/addons/debian/theme/branding/show.qml +0 -51
- package/addons/debian/theme/branding/slide1.png +0 -0
- package/addons/debian/theme/branding/welcome.png +0 -0
- package/addons/deblinux/theme/README.md +0 -16
- package/addons/deblinux/theme/applications/install-debian.desktop +0 -13
- package/addons/deblinux/theme/calamares/branding/branding.desc +0 -23
- package/addons/deblinux/theme/calamares/branding/deblinux-logo.png +0 -0
- package/addons/deblinux/theme/calamares/branding/show.qml +0 -46
- package/addons/deblinux/theme/calamares/branding/slide1.png +0 -0
- package/addons/deblinux/theme/calamares/branding/welcome.png +0 -0
- package/addons/deblinux/theme/calamares/modules/partition.yml +0 -233
- package/addons/eggs/theme/calamares/branding/4tation.png +0 -0
- package/addons/eggs/theme/livecd/grub.template.cfg +0 -60
- package/addons/eggs/theme/livecd/menu.template.cfg +0 -54
- package/addons/guadalinex/theme/README.md +0 -9
- package/addons/guadalinex/theme/applications/install-debian.desktop +0 -28
- package/addons/guadalinex/theme/artwork/install-debian.png +0 -0
- package/addons/guadalinex/theme/calamares/branding/guadalinex-logo.png +0 -0
- package/addons/guadalinex/theme/calamares/branding/show.qml +0 -85
- package/addons/guadalinex/theme/calamares/branding/slide1.png +0 -0
- package/addons/guadalinex/theme/calamares/branding/slide2.png +0 -0
- package/addons/guadalinex/theme/calamares/branding/slide3.png +0 -0
- package/addons/guadalinex/theme/calamares/branding/slide4.png +0 -0
- package/addons/guadalinex/theme/calamares/branding/slide5.png +0 -0
- package/addons/guadalinex/theme/calamares/branding/slide6.png +0 -0
- package/addons/guadalinex/theme/calamares/branding/slide7.png +0 -0
- package/addons/guadalinex/theme/calamares/branding/welcome.png +0 -0
- package/addons/guadalinex/theme/livecd/menu.template.cfg +0 -54
- package/addons/guadalinex/theme/livecd/splash.png +0 -0
- package/addons/guadalinex/theme/livecd/theme.cfg +0 -42
- package/addons/openos/theme/applications/Install-OpenOS-Neon_RLTS-Desktop.png +0 -0
- package/addons/openos/theme/applications/install-debian.desktop +0 -24
- package/addons/openos/theme/artwork/install-debian.png +0 -0
- package/addons/openos/theme/calamares/branding/branding.desc +0 -28
- package/addons/openos/theme/calamares/branding/openos-logo.png +0 -0
- package/addons/openos/theme/calamares/branding/show.qml +0 -203
- package/addons/openos/theme/calamares/branding/slide1.png +0 -0
- package/addons/openos/theme/calamares/branding/slide10.png +0 -0
- package/addons/openos/theme/calamares/branding/slide11.png +0 -0
- package/addons/openos/theme/calamares/branding/slide12.png +0 -0
- package/addons/openos/theme/calamares/branding/slide13.png +0 -0
- package/addons/openos/theme/calamares/branding/slide14.png +0 -0
- package/addons/openos/theme/calamares/branding/slide15.png +0 -0
- package/addons/openos/theme/calamares/branding/slide16.png +0 -0
- package/addons/openos/theme/calamares/branding/slide2.png +0 -0
- package/addons/openos/theme/calamares/branding/slide3.png +0 -0
- package/addons/openos/theme/calamares/branding/slide4.png +0 -0
- package/addons/openos/theme/calamares/branding/slide5.png +0 -0
- package/addons/openos/theme/calamares/branding/slide6.png +0 -0
- package/addons/openos/theme/calamares/branding/slide7.png +0 -0
- package/addons/openos/theme/calamares/branding/slide8.png +0 -0
- package/addons/openos/theme/calamares/branding/slide9.png +0 -0
- package/addons/openos/theme/calamares/branding/welcome.png +0 -0
- package/addons/openos/theme/calamares/branding.desc +0 -24
- package/addons/openos/theme/calamares/lang/calamares-default_ar.qm +0 -0
- package/addons/openos/theme/calamares/lang/calamares-default_en.qm +0 -0
- package/addons/openos/theme/calamares/lang/calamares-default_eo.qm +0 -0
- package/addons/openos/theme/calamares/lang/calamares-default_fr.qm +0 -0
- package/addons/openos/theme/calamares/lang/calamares-default_nl.qm +0 -0
- package/addons/openos/theme/calamares/modules/partition.yml +0 -233
- package/addons/openos/theme/livecd/grub.template.cfg +0 -60
- package/addons/openos/theme/livecd/menu.template.cfg +0 -54
- package/addons/openos/theme/livecd/splash.png +0 -0
- package/addons/openos/theme/livecd/theme.cfg +0 -42
- package/addons/pve/theme/applications/penguins-pve.desktop +0 -24
- package/addons/pve/theme/artwork/install-debian.png +0 -0
- package/addons/pve/theme/calamares/branding/branding.desc +0 -1
- package/addons/pve/theme/calamares/branding/pve-logo.png +0 -0
- package/addons/pve/theme/calamares/branding/show.qml +0 -227
- package/addons/pve/theme/calamares/branding/slide1.png +0 -0
- package/addons/pve/theme/calamares/branding/slide2.png +0 -0
- package/addons/pve/theme/calamares/branding/slide3.png +0 -0
- package/addons/pve/theme/calamares/branding/slide4.png +0 -0
- package/addons/pve/theme/calamares/branding/slide5.png +0 -0
- package/addons/pve/theme/calamares/branding/slide6.png +0 -0
- package/addons/pve/theme/calamares/branding/slide7.png +0 -0
- package/addons/pve/theme/calamares/branding/slide8.png +0 -0
- package/addons/pve/theme/calamares/branding/slide9.png +0 -0
- package/addons/pve/theme/calamares/branding/welcome.png +0 -0
- package/addons/pve/theme/calamares/modules/partition.yml +0 -233
- package/addons/pve/theme/livecd/README.md +0 -8
- package/addons/pve/theme/livecd/grub.template.cfg +0 -60
- package/addons/pve/theme/livecd/menu.template.cfg +0 -54
- package/addons/pve/theme/livecd/splash.png +0 -0
- package/addons/pve/theme/livecd/theme.cfg +0 -42
- package/addons/ufficiozero/theme/artwork/install-debian.png +0 -0
- package/addons/ufficiozero/theme/livecd/README.md +0 -8
- package/addons/ufficiozero/theme/livecd/grub.template.cfg +0 -60
- package/addons/ufficiozero/theme/livecd/menu.template.cfg +0 -54
- package/conf/distros/bullseye/calamares/calamares-modules/bootloader-config/bootloader-config.sh +0 -28
- package/conf/distros/bullseye/calamares/calamares-modules/bootloader-config/module.yml +0 -8
- package/conf/distros/buster/grub/grub.template.cfg +0 -58
- package/conf/distros/buster/grub/loopback.cfg +0 -1
- package/conf/distros/buster/isolinux/isolinux.template.cfg +0 -8
- package/conf/distros/buster/isolinux/menu.template.cfg +0 -56
- package/conf/distros/focal/grub/grub.template.cfg +0 -67
- package/conf/distros/focal/isolinux/menu.template.cfg +0 -54
- package/lib/classes/incubation/distros/beowulf.d.ts +0 -30
- package/lib/classes/incubation/distros/beowulf.js +0 -69
- package/manpages/doc/man/eggs.1.gz +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const
|
|
5
|
-
const tools_1 = tslib_1.__importDefault(require("../../classes/tools"));
|
|
6
|
-
const utils_1 = tslib_1.__importDefault(require("../../classes/utils"));
|
|
7
|
-
const
|
|
8
|
-
class ExportDocs extends
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const tools_1 = (0, tslib_1.__importDefault)(require("../../classes/tools"));
|
|
6
|
+
const utils_1 = (0, tslib_1.__importDefault)(require("../../classes/utils"));
|
|
7
|
+
const utils_2 = require("../../lib/utils");
|
|
8
|
+
class ExportDocs extends core_1.Command {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(ExportDocs);
|
|
10
|
+
const { args, flags } = await this.parse(ExportDocs);
|
|
11
11
|
const Tu = new tools_1.default();
|
|
12
12
|
utils_1.default.titles(this.id + ' ' + this.argv);
|
|
13
13
|
utils_1.default.warning(ExportDocs.description);
|
|
14
14
|
await Tu.loadSettings();
|
|
15
|
-
await exec(`ssh ${Tu.config.remoteUser}@${Tu.config.remoteHost} rm -rf ${Tu.config.remotePathDoc}*`, { echo: true, capture: true });
|
|
16
|
-
await exec(`scp -r ${Tu.config.localPathDoc}/* ${Tu.config.remoteUser}@${Tu.config.remoteHost}:${Tu.config.remotePathDoc}`, { echo: true, capture: true });
|
|
15
|
+
await (0, utils_2.exec)(`ssh ${Tu.config.remoteUser}@${Tu.config.remoteHost} rm -rf ${Tu.config.remotePathDoc}*`, { echo: true, capture: true });
|
|
16
|
+
await (0, utils_2.exec)(`scp -r ${Tu.config.localPathDoc}/* ${Tu.config.remoteUser}@${Tu.config.remoteHost}:${Tu.config.remotePathDoc}`, { echo: true, capture: true });
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
exports.default = ExportDocs;
|
|
20
20
|
ExportDocs.description = 'remove and export docType documentation of the sources in the destination host';
|
|
21
21
|
ExportDocs.flags = {
|
|
22
|
-
help:
|
|
22
|
+
help: core_1.Flags.help({ char: 'h' })
|
|
23
23
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
*
|
|
3
3
|
*/
|
|
4
|
-
import { Command } from '@oclif/
|
|
4
|
+
import { Command } from '@oclif/core';
|
|
5
5
|
export default class ExportIso extends Command {
|
|
6
6
|
static description: string;
|
|
7
7
|
static flags: {
|
|
8
|
-
help: import("@oclif/
|
|
9
|
-
backup: import("@oclif/
|
|
10
|
-
clean: import("@oclif/
|
|
8
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
9
|
+
backup: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
clean: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
run(): Promise<void>;
|
|
13
13
|
}
|
|
@@ -4,39 +4,34 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
|
-
const
|
|
8
|
-
const tools_1 = tslib_1.__importDefault(require("../../classes/tools"));
|
|
9
|
-
const utils_1 = tslib_1.__importDefault(require("../../classes/utils"));
|
|
10
|
-
const
|
|
11
|
-
class ExportIso extends
|
|
7
|
+
const core_1 = require("@oclif/core");
|
|
8
|
+
const tools_1 = (0, tslib_1.__importDefault)(require("../../classes/tools"));
|
|
9
|
+
const utils_1 = (0, tslib_1.__importDefault)(require("../../classes/utils"));
|
|
10
|
+
const utils_2 = require("../../lib/utils");
|
|
11
|
+
class ExportIso extends core_1.Command {
|
|
12
12
|
async run() {
|
|
13
|
-
const { flags } = this.parse(ExportIso);
|
|
13
|
+
const { flags } = await this.parse(ExportIso);
|
|
14
14
|
utils_1.default.titles(this.id + ' ' + this.argv);
|
|
15
15
|
const Tu = new tools_1.default();
|
|
16
16
|
utils_1.default.warning(ExportIso.description);
|
|
17
17
|
await Tu.loadSettings();
|
|
18
18
|
if (flags.backup) {
|
|
19
|
-
|
|
20
|
-
Tu.snapshot_name = 'backup-' + Tu.snapshot_name.substring(7);
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
Tu.snapshot_name = 'backup-' + Tu.snapshot_name;
|
|
24
|
-
}
|
|
19
|
+
Tu.snapshot_name = Tu.snapshot_name.slice(0, 7) === 'egg-of-' ? 'egg-eb-' + Tu.snapshot_name.slice(7) : 'backup-' + Tu.snapshot_name;
|
|
25
20
|
}
|
|
26
21
|
let cmd = `ssh root@${Tu.config.remoteHost} rm -rf ${Tu.config.remotePathIso}${Tu.snapshot_name}*`;
|
|
27
22
|
if (flags.clean) {
|
|
28
23
|
utils_1.default.warning('cleaning destination...');
|
|
29
|
-
await exec(cmd, { echo: true, capture: true });
|
|
24
|
+
await (0, utils_2.exec)(cmd, { echo: true, capture: true });
|
|
30
25
|
}
|
|
31
26
|
utils_1.default.warning('copy to destination...');
|
|
32
27
|
cmd = `scp ${Tu.snapshot_dir}${Tu.snapshot_name}* root@${Tu.config.remoteHost}:${Tu.config.remotePathIso}`;
|
|
33
|
-
await exec(cmd, { echo: true, capture: true });
|
|
28
|
+
await (0, utils_2.exec)(cmd, { echo: true, capture: true });
|
|
34
29
|
}
|
|
35
30
|
}
|
|
36
31
|
exports.default = ExportIso;
|
|
37
32
|
ExportIso.description = 'export iso in the destination host';
|
|
38
33
|
ExportIso.flags = {
|
|
39
|
-
help:
|
|
40
|
-
backup:
|
|
41
|
-
clean:
|
|
34
|
+
help: core_1.Flags.help({ char: 'h' }),
|
|
35
|
+
backup: core_1.Flags.boolean({ char: 'b', description: 'export backup ISOs' }),
|
|
36
|
+
clean: core_1.Flags.boolean({ char: 'c', description: 'delete old ISOs before to copy' })
|
|
42
37
|
};
|
package/lib/commands/info.d.ts
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* info
|
|
3
3
|
*/
|
|
4
|
-
import { Command } from '@oclif/
|
|
4
|
+
import { Command } from '@oclif/core';
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
5
8
|
export default class Info extends Command {
|
|
6
9
|
static description: string;
|
|
7
10
|
static flags: {
|
|
8
|
-
verbose: import("@oclif/
|
|
9
|
-
help: import("@oclif/
|
|
11
|
+
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
12
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
10
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
11
17
|
run(): Promise<void>;
|
|
12
18
|
}
|
package/lib/commands/info.js
CHANGED
|
@@ -4,177 +4,27 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
class Info extends command_1.Command {
|
|
7
|
+
const core_1 = require("@oclif/core");
|
|
8
|
+
const information_1 = (0, tslib_1.__importDefault)(require("../components/elements/information"));
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
class Info extends core_1.Command {
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
17
16
|
async run() {
|
|
18
|
-
const {
|
|
17
|
+
const { flags } = await this.parse(Info);
|
|
19
18
|
let verbose = false;
|
|
20
19
|
if (flags.verbose) {
|
|
21
20
|
verbose = true;
|
|
22
21
|
}
|
|
23
|
-
|
|
24
|
-
console.clear();
|
|
25
|
-
const settings = new settings_1.default();
|
|
26
|
-
settings.load();
|
|
27
|
-
/**
|
|
28
|
-
* nest
|
|
29
|
-
*/
|
|
30
|
-
const Nest = () => (react_1.default.createElement(ink_1.Box, { borderStyle: "round", marginRight: 2 },
|
|
31
|
-
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
32
|
-
react_1.default.createElement(ink_1.Text, null,
|
|
33
|
-
"nest: ",
|
|
34
|
-
react_1.default.createElement(ink_1.Text, { color: "cyan" }, settings.config.snapshot_dir))),
|
|
35
|
-
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
36
|
-
react_1.default.createElement(ink_1.Text, null,
|
|
37
|
-
"name: ",
|
|
38
|
-
react_1.default.createElement(ink_1.Text, { color: "cyan" },
|
|
39
|
-
settings.config.snapshot_prefix,
|
|
40
|
-
settings.config.snapshot_basename))),
|
|
41
|
-
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
42
|
-
react_1.default.createElement(ink_1.Text, null,
|
|
43
|
-
"ovarium: ",
|
|
44
|
-
react_1.default.createElement(ink_1.Text, { color: "cyan" }, settings.work_dir.path)))));
|
|
45
|
-
//render(<Nest />)
|
|
46
|
-
/**
|
|
47
|
-
* Boot
|
|
48
|
-
* @returns
|
|
49
|
-
*/
|
|
50
|
-
const Boot = () => (react_1.default.createElement(ink_1.Box, { borderStyle: "round", marginRight: 2 },
|
|
51
|
-
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
52
|
-
react_1.default.createElement(ink_1.Text, null,
|
|
53
|
-
"kernel: ",
|
|
54
|
-
react_1.default.createElement(ink_1.Text, { color: "cyan" }, settings.kernel_image))),
|
|
55
|
-
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
56
|
-
react_1.default.createElement(ink_1.Text, null,
|
|
57
|
-
"initrd.img: ",
|
|
58
|
-
react_1.default.createElement(ink_1.Text, { color: "cyan" }, settings.initrd_image)))));
|
|
59
|
-
ink_1.render(react_1.default.createElement(Boot, null));
|
|
60
|
-
/**
|
|
61
|
-
* Live
|
|
62
|
-
*/
|
|
63
|
-
const Live = () => (react_1.default.createElement(ink_1.Box, { borderStyle: "round", marginRight: 2 },
|
|
64
|
-
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
65
|
-
react_1.default.createElement(ink_1.Text, null,
|
|
66
|
-
"live user/passwd: ",
|
|
67
|
-
react_1.default.createElement(ink_1.Text, { color: "cyan" },
|
|
68
|
-
settings.config.user_opt,
|
|
69
|
-
"/",
|
|
70
|
-
settings.config.user_opt_passwd))),
|
|
71
|
-
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
72
|
-
react_1.default.createElement(ink_1.Text, null,
|
|
73
|
-
"root passwd: ",
|
|
74
|
-
react_1.default.createElement(ink_1.Text, { color: "cyan" }, settings.config.root_passwd)))));
|
|
75
|
-
ink_1.render(react_1.default.createElement(Live, null));
|
|
76
|
-
const distroId = shelljs_1.default.exec('lsb_release -is', { silent: true }).stdout.trim();
|
|
77
|
-
const versionId = shelljs_1.default.exec('lsb_release -cs', { silent: true }).stdout.trim();
|
|
78
|
-
const Distro = () => (react_1.default.createElement(ink_1.Box, { flexDirection: 'column' },
|
|
79
|
-
react_1.default.createElement(ink_1.Box, { borderStyle: "round", marginRight: 2, flexDirection: 'row' },
|
|
80
|
-
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
81
|
-
react_1.default.createElement(ink_1.Text, null,
|
|
82
|
-
"distro: ",
|
|
83
|
-
react_1.default.createElement(ink_1.Text, { color: "cyan" }, distroId))),
|
|
84
|
-
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
85
|
-
react_1.default.createElement(ink_1.Text, null,
|
|
86
|
-
"version: ",
|
|
87
|
-
react_1.default.createElement(ink_1.Text, { color: "cyan" }, versionId))),
|
|
88
|
-
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
89
|
-
react_1.default.createElement(ink_1.Text, null,
|
|
90
|
-
"compatible: ",
|
|
91
|
-
react_1.default.createElement(ink_1.Text, { color: "cyan" }, settings.distro.distroLike))),
|
|
92
|
-
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
93
|
-
react_1.default.createElement(ink_1.Text, null,
|
|
94
|
-
"version: ",
|
|
95
|
-
react_1.default.createElement(ink_1.Text, { color: "cyan" }, settings.distro.versionLike))))));
|
|
96
|
-
ink_1.render(react_1.default.createElement(Distro, null));
|
|
97
|
-
const dependencies = await pacman_1.default.prerequisitesCheck();
|
|
98
|
-
const configurations = pacman_1.default.configurationCheck();
|
|
99
|
-
let uefi = utils_1.default.isUefi();
|
|
100
|
-
let installer = false;
|
|
101
|
-
if (await pacman_1.default.isGui()) {
|
|
102
|
-
installer = await pacman_1.default.calamaresCheck();
|
|
103
|
-
}
|
|
104
|
-
const Ok = () => (react_1.default.createElement(ink_1.Text, { backgroundColor: "green" }, "OK"));
|
|
105
|
-
ink_1.render(react_1.default.createElement(Ok, null));
|
|
106
|
-
const Ko = () => (react_1.default.createElement(ink_1.Text, { backgroundColor: "red", color: "white" }, "KO"));
|
|
107
|
-
ink_1.render(react_1.default.createElement(Ko, null));
|
|
108
|
-
/**
|
|
109
|
-
* CLI va verde se naked, altrimenti giallo
|
|
110
|
-
*/
|
|
111
|
-
const CLI = () => (react_1.default.createElement(ink_1.Text, { backgroundColor: "green" }, "CLI"));
|
|
112
|
-
ink_1.render(react_1.default.createElement(CLI, null));
|
|
113
|
-
const GUI = () => (react_1.default.createElement(ink_1.Text, { backgroundColor: "green" }, "GUI"));
|
|
114
|
-
ink_1.render(react_1.default.createElement(GUI, null));
|
|
115
|
-
const Checks = () => (react_1.default.createElement(ink_1.Box, { borderStyle: "round", marginRight: 2, flexDirection: "row" },
|
|
116
|
-
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
117
|
-
react_1.default.createElement(ink_1.Text, null,
|
|
118
|
-
"dependencies: ",
|
|
119
|
-
dependencies ? react_1.default.createElement(Ok, null) : react_1.default.createElement(Ko, null))),
|
|
120
|
-
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
121
|
-
react_1.default.createElement(ink_1.Text, null,
|
|
122
|
-
"configurations: ",
|
|
123
|
-
configurations ? react_1.default.createElement(Ok, null) : react_1.default.createElement(Ko, null))),
|
|
124
|
-
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
125
|
-
react_1.default.createElement(ink_1.Text, null,
|
|
126
|
-
"installer: ",
|
|
127
|
-
installer ? react_1.default.createElement(GUI, null) : react_1.default.createElement(CLI, null))),
|
|
128
|
-
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
129
|
-
react_1.default.createElement(ink_1.Text, null,
|
|
130
|
-
"uefi: ",
|
|
131
|
-
uefi ? react_1.default.createElement(Ok, null) : react_1.default.createElement(Ko, null)))));
|
|
132
|
-
ink_1.render(react_1.default.createElement(Checks, null));
|
|
133
|
-
const Presentation = () => (react_1.default.createElement(react_1.default.Fragment, null,
|
|
134
|
-
react_1.default.createElement(ink_1.Box, null,
|
|
135
|
-
react_1.default.createElement(ink_1.Text, null, " ")),
|
|
136
|
-
react_1.default.createElement(ink_1.Box, { borderStyle: "round", marginRight: 2, flexDirection: "column" },
|
|
137
|
-
react_1.default.createElement(ink_1.Box, null,
|
|
138
|
-
react_1.default.createElement(ink_1.Text, null, "ISO images made with eggs can be installed with either the calamares GUI installer or the krill CLI installer. eggs includes krill installer inside.")),
|
|
139
|
-
react_1.default.createElement(ink_1.Box, null,
|
|
140
|
-
react_1.default.createElement(ink_1.Text, null, "krill installer is an opportunity if you are low on RAM, working on old distros or on architectures not yet supported by calamares.")),
|
|
141
|
-
react_1.default.createElement(ink_1.Box, null,
|
|
142
|
-
react_1.default.createElement(ink_1.Text, null, "Usage: sudo eggs install will allways run calamares if present, sudo eggs install --cli will force CLI installer.")),
|
|
143
|
-
react_1.default.createElement(ink_1.Box, null,
|
|
144
|
-
react_1.default.createElement(ink_1.Text, null, " ")),
|
|
145
|
-
react_1.default.createElement(ink_1.Box, { flexDirection: "row" },
|
|
146
|
-
react_1.default.createElement(ink_1.Box, { marginRight: 1 },
|
|
147
|
-
react_1.default.createElement(ink_1.Text, null, "Info: ")),
|
|
148
|
-
react_1.default.createElement(ink_1.Box, { flexDirection: "column" },
|
|
149
|
-
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
150
|
-
react_1.default.createElement(ink_1.Text, null, "blog "),
|
|
151
|
-
react_1.default.createElement(ink_1.Text, { color: "cyan" }, "https://penguins-eggs.net")),
|
|
152
|
-
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
153
|
-
react_1.default.createElement(ink_1.Text, null, "sources "),
|
|
154
|
-
react_1.default.createElement(ink_1.Text, { color: "cyan" }, "https://github.com/pieroproietti/penguins-eggs")),
|
|
155
|
-
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
156
|
-
react_1.default.createElement(ink_1.Text, null, "meeting "),
|
|
157
|
-
react_1.default.createElement(ink_1.Text, { color: "cyan" }, "https://meet.jit.si/PenguinsEggsMeeting")))))));
|
|
158
|
-
ink_1.render(react_1.default.createElement(Presentation, null));
|
|
159
|
-
/**
|
|
160
|
-
*
|
|
161
|
-
*/
|
|
162
|
-
const Main = () => (react_1.default.createElement(react_1.default.Fragment, null,
|
|
163
|
-
react_1.default.createElement(title_1.default, null),
|
|
164
|
-
react_1.default.createElement(ink_1.Box, null,
|
|
165
|
-
react_1.default.createElement(Live, null),
|
|
166
|
-
react_1.default.createElement(Nest, null),
|
|
167
|
-
react_1.default.createElement(Boot, null)),
|
|
168
|
-
react_1.default.createElement(ink_1.Box, null,
|
|
169
|
-
react_1.default.createElement(Distro, null),
|
|
170
|
-
react_1.default.createElement(Checks, null)),
|
|
171
|
-
react_1.default.createElement(Presentation, null)));
|
|
172
|
-
ink_1.render(react_1.default.createElement(Main, null));
|
|
22
|
+
await (0, information_1.default)(verbose);
|
|
173
23
|
}
|
|
174
24
|
}
|
|
175
25
|
exports.default = Info;
|
|
176
|
-
Info.description = 'thinking a different approach to CLI
|
|
26
|
+
Info.description = 're-thinking for a different approach to CLI';
|
|
177
27
|
Info.flags = {
|
|
178
|
-
verbose:
|
|
179
|
-
help:
|
|
28
|
+
verbose: core_1.Flags.boolean({ char: 'v' }),
|
|
29
|
+
help: core_1.Flags.help({ char: 'h' })
|
|
180
30
|
};
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
* email: piero.proietti@gmail.com
|
|
5
5
|
* license: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { Command } from '@oclif/
|
|
7
|
+
import { Command } from '@oclif/core';
|
|
8
8
|
/**
|
|
9
9
|
* Class Install
|
|
10
10
|
*/
|
|
11
11
|
export default class Install extends Command {
|
|
12
12
|
static flags: {
|
|
13
|
-
cli: import("@oclif/
|
|
14
|
-
|
|
15
|
-
help: import("@oclif/
|
|
16
|
-
verbose: import("@oclif/
|
|
13
|
+
cli: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
crypted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
15
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
16
|
+
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
};
|
|
18
18
|
static description: string;
|
|
19
19
|
static aliases: string[];
|
package/lib/commands/install.js
CHANGED
|
@@ -7,71 +7,57 @@ const tslib_1 = require("tslib");
|
|
|
7
7
|
* email: piero.proietti@gmail.com
|
|
8
8
|
* license: MIT
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
10
|
+
const core_1 = require("@oclif/core");
|
|
11
|
+
const shelljs_1 = (0, tslib_1.__importDefault)(require("shelljs"));
|
|
12
|
+
const utils_1 = (0, tslib_1.__importDefault)(require("../classes/utils"));
|
|
13
|
+
const krill_prepare_1 = (0, tslib_1.__importDefault)(require("../classes/krill_prepare"));
|
|
14
|
+
const pacman_1 = (0, tslib_1.__importDefault)(require("../classes/pacman"));
|
|
15
|
+
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
|
|
16
16
|
/**
|
|
17
17
|
* Class Install
|
|
18
18
|
*/
|
|
19
|
-
class Install extends
|
|
19
|
+
class Install extends core_1.Command {
|
|
20
20
|
/**
|
|
21
21
|
* Execute
|
|
22
22
|
*/
|
|
23
23
|
async run() {
|
|
24
24
|
utils_1.default.titles(this.id + ' ' + this.argv);
|
|
25
|
-
const { flags } = this.parse(Install);
|
|
25
|
+
const { flags } = await this.parse(Install);
|
|
26
|
+
let crypted = false;
|
|
27
|
+
if (flags.crypted) {
|
|
28
|
+
crypted = true;
|
|
29
|
+
}
|
|
26
30
|
let verbose = false;
|
|
27
31
|
if (flags.verbose) {
|
|
28
32
|
verbose = true;
|
|
29
33
|
}
|
|
30
34
|
if (utils_1.default.isRoot(this.id)) {
|
|
31
35
|
if (utils_1.default.isLive()) {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
if (pacman_1.default.packageIsInstalled('mx-installer') && pacman_1.default.guiEnabled() && flags.mx) {
|
|
39
|
-
if (!fs_1.default.existsSync('/live/')) {
|
|
40
|
-
child_process_1.execSync('mkdir /live/ ');
|
|
41
|
-
}
|
|
42
|
-
if (!fs_1.default.existsSync('/live/aufs')) {
|
|
43
|
-
child_process_1.execSync('ln -s /lib/live/mount/rootfs/filesystem.squashfs/ /live/aufs');
|
|
44
|
-
}
|
|
45
|
-
if (!fs_1.default.existsSync('/live/linux')) {
|
|
46
|
-
child_process_1.execSync('ln -s /lib/live/mount/rootfs/filesystem.squashfs/ /live/linux');
|
|
47
|
-
}
|
|
48
|
-
// execSync('apt update')
|
|
49
|
-
// execSync('apt install smartmontools')
|
|
50
|
-
child_process_1.execSync('minstall');
|
|
36
|
+
if (pacman_1.default.packageIsInstalled('calamares') && pacman_1.default.isRunningGui() && !flags.cli) {
|
|
37
|
+
shelljs_1.default.exec('/usb/sbin/install-debian');
|
|
38
|
+
}
|
|
39
|
+
else if (pacman_1.default.packageIsInstalled('calamares') && !flags.cli) {
|
|
40
|
+
utils_1.default.warning('Calamares installer is present, start GUI and choose calamares to install the system');
|
|
41
|
+
utils_1.default.warning('If you still want to use krill, type: ' + chalk_1.default.bold('sudo eggs install --cli'));
|
|
51
42
|
}
|
|
52
43
|
else {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
const krill = new krill_prepare_1.default();
|
|
58
|
-
await krill.prepare();
|
|
59
|
-
}
|
|
44
|
+
const krill = new krill_prepare_1.default();
|
|
45
|
+
await krill.prepare(crypted);
|
|
60
46
|
}
|
|
61
47
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
utils_1.default.warning('You are in an installed system!');
|
|
65
51
|
}
|
|
66
52
|
}
|
|
67
53
|
}
|
|
68
54
|
exports.default = Install;
|
|
69
55
|
Install.flags = {
|
|
70
|
-
cli:
|
|
71
|
-
|
|
72
|
-
help:
|
|
73
|
-
verbose:
|
|
56
|
+
cli: core_1.Flags.boolean({ char: 'c', description: 'force use CLI installer' }),
|
|
57
|
+
crypted: core_1.Flags.boolean({ char: 'k', description: 'crypted CLI installation' }),
|
|
58
|
+
help: core_1.Flags.help({ char: 'h' }),
|
|
59
|
+
verbose: core_1.Flags.boolean({ char: 'v', description: 'verbose' })
|
|
74
60
|
};
|
|
75
61
|
Install.description = 'command-line system installer - the egg became a penguin!';
|
|
76
62
|
Install.aliases = ['hatch', 'krill'];
|
|
77
|
-
Install.examples = [
|
|
63
|
+
Install.examples = ['$ eggs install\nInstall the system using GUI or CLI installer\n'];
|
package/lib/commands/kill.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* email: piero.proietti@gmail.com
|
|
5
5
|
* license: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { Command } from '@oclif/
|
|
7
|
+
import { Command } from '@oclif/core';
|
|
8
8
|
import { IWorkDir } from '../interfaces/i-workdir';
|
|
9
9
|
export default class Kill extends Command {
|
|
10
10
|
config_file: string;
|
|
@@ -12,8 +12,8 @@ export default class Kill extends Command {
|
|
|
12
12
|
work_dir: IWorkDir;
|
|
13
13
|
static description: string;
|
|
14
14
|
static flags: {
|
|
15
|
-
help: import("@oclif/
|
|
16
|
-
verbose: import("@oclif/
|
|
15
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
16
|
+
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
};
|
|
18
18
|
static examples: string[];
|
|
19
19
|
run(): Promise<void>;
|
package/lib/commands/kill.js
CHANGED
|
@@ -7,11 +7,11 @@ const tslib_1 = require("tslib");
|
|
|
7
7
|
* email: piero.proietti@gmail.com
|
|
8
8
|
* license: MIT
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
11
|
-
const utils_1 = tslib_1.__importDefault(require("../classes/utils"));
|
|
12
|
-
const settings_1 = tslib_1.__importDefault(require("../classes/settings"));
|
|
13
|
-
const
|
|
14
|
-
class Kill extends
|
|
10
|
+
const core_1 = require("@oclif/core");
|
|
11
|
+
const utils_1 = (0, tslib_1.__importDefault)(require("../classes/utils"));
|
|
12
|
+
const settings_1 = (0, tslib_1.__importDefault)(require("../classes/settings"));
|
|
13
|
+
const utils_2 = require("../lib/utils");
|
|
14
|
+
class Kill extends core_1.Command {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
17
17
|
this.config_file = '/etc/penguins-eggs.d/eggs.yaml';
|
|
@@ -20,7 +20,7 @@ class Kill extends command_1.Command {
|
|
|
20
20
|
}
|
|
21
21
|
async run() {
|
|
22
22
|
await utils_1.default.titles(this.id + ' ' + this.argv);
|
|
23
|
-
const { flags } = this.parse(Kill);
|
|
23
|
+
const { flags } = await this.parse(Kill);
|
|
24
24
|
let verbose = false;
|
|
25
25
|
if (flags.verbose) {
|
|
26
26
|
verbose = true;
|
|
@@ -32,8 +32,8 @@ class Kill extends command_1.Command {
|
|
|
32
32
|
await settings.load();
|
|
33
33
|
await settings.listFreeSpace();
|
|
34
34
|
if (await utils_1.default.customConfirm()) {
|
|
35
|
-
await
|
|
36
|
-
await
|
|
35
|
+
await (0, utils_2.exec)(`rm ${settings.work_dir.path} -rf`, echo);
|
|
36
|
+
await (0, utils_2.exec)(`rm ${settings.config.snapshot_dir} -rf`, echo);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -41,9 +41,7 @@ class Kill extends command_1.Command {
|
|
|
41
41
|
exports.default = Kill;
|
|
42
42
|
Kill.description = 'kill the eggs/free the nest';
|
|
43
43
|
Kill.flags = {
|
|
44
|
-
help:
|
|
45
|
-
verbose:
|
|
44
|
+
help: core_1.Flags.help({ char: 'h' }),
|
|
45
|
+
verbose: core_1.Flags.boolean({ char: 'v', description: 'verbose' })
|
|
46
46
|
};
|
|
47
|
-
Kill.examples = [
|
|
48
|
-
`$ eggs kill\nkill the eggs/free the nest`
|
|
49
|
-
];
|
|
47
|
+
Kill.examples = ['$ eggs kill\nkill the eggs/free the nest'];
|
package/lib/commands/mom.d.ts
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* email: piero.proietti@gmail.com
|
|
5
5
|
* license: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { Command } from '@oclif/
|
|
7
|
+
import { Command } from '@oclif/core';
|
|
8
8
|
export default class Mom extends Command {
|
|
9
9
|
static description: string;
|
|
10
10
|
static flags: {
|
|
11
|
-
help: import("@oclif/
|
|
11
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
12
12
|
};
|
|
13
13
|
run(): Promise<void>;
|
|
14
14
|
}
|
package/lib/commands/mom.js
CHANGED
|
@@ -7,11 +7,11 @@ const tslib_1 = require("tslib");
|
|
|
7
7
|
* email: piero.proietti@gmail.com
|
|
8
8
|
* license: MIT
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
class Mom extends
|
|
10
|
+
const core_1 = require("@oclif/core");
|
|
11
|
+
const node_path_1 = (0, tslib_1.__importDefault)(require("node:path"));
|
|
12
|
+
const utils_1 = (0, tslib_1.__importDefault)(require("../classes/utils"));
|
|
13
|
+
const utils_2 = require("../lib/utils");
|
|
14
|
+
class Mom extends core_1.Command {
|
|
15
15
|
async run() {
|
|
16
16
|
utils_1.default.titles(this.id + ' ' + this.argv);
|
|
17
17
|
// No sudo!
|
|
@@ -19,12 +19,12 @@ class Mom extends command_1.Command {
|
|
|
19
19
|
utils_1.default.warning('You must to be kind with your mom! Call her without sudo');
|
|
20
20
|
process.exit(0);
|
|
21
21
|
}
|
|
22
|
-
const cmd =
|
|
23
|
-
await exec(cmd);
|
|
22
|
+
const cmd = node_path_1.default.resolve(__dirname, '../../scripts/mom-cli.sh');
|
|
23
|
+
await (0, utils_2.exec)(cmd);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
exports.default = Mom;
|
|
27
27
|
Mom.description = 'ask for mommy - gui helper';
|
|
28
28
|
Mom.flags = {
|
|
29
|
-
help:
|
|
29
|
+
help: core_1.Flags.help({ char: 'h' })
|
|
30
30
|
};
|
|
@@ -4,22 +4,22 @@
|
|
|
4
4
|
* email: piero.proietti@gmail.com
|
|
5
5
|
* license: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { Command
|
|
7
|
+
import { Command } from '@oclif/core';
|
|
8
8
|
export default class Produce extends Command {
|
|
9
9
|
static flags: {
|
|
10
|
-
prefix:
|
|
11
|
-
basename:
|
|
12
|
-
backup: import("@oclif/
|
|
13
|
-
fast: import("@oclif/
|
|
14
|
-
normal: import("@oclif/
|
|
15
|
-
max: import("@oclif/
|
|
16
|
-
verbose: import("@oclif/
|
|
17
|
-
yolk: import("@oclif/
|
|
18
|
-
script: import("@oclif/
|
|
19
|
-
help: import("@oclif/
|
|
20
|
-
theme:
|
|
21
|
-
addons:
|
|
22
|
-
release: import("@oclif/
|
|
10
|
+
prefix: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
11
|
+
basename: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
12
|
+
backup: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
13
|
+
fast: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
normal: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
15
|
+
max: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
16
|
+
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
17
|
+
yolk: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
18
|
+
script: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
19
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
20
|
+
theme: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
21
|
+
addons: import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
22
|
+
release: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
23
23
|
};
|
|
24
24
|
static description: string;
|
|
25
25
|
static aliases: string[];
|