penguins-eggs 8.1.0 → 9.0.9
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 +256 -167
- 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/addons/blissos/theme/livecd/README.md +23 -0
- package/{conf/distros/buster/grub/theme.cfg → addons/blissos/theme/livecd/grub.theme.cfg} +10 -10
- 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/livecd/README.md +21 -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/neon/theme/livecd/README.md +23 -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.pcx +0 -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/assets/penguins-minstall.desktop +95 -0
- 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 +313 -173
- 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.js +155 -138
- package/lib/classes/krill_prepare.d.ts +6 -2
- package/lib/classes/krill_prepare.js +72 -60
- package/lib/classes/n8.js +6 -11
- package/lib/classes/ovary.d.ts +29 -11
- package/lib/classes/ovary.js +750 -611
- package/lib/classes/pacman.d.ts +55 -56
- package/lib/classes/pacman.js +520 -419
- 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/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/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 +68 -74
- 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 -4
- package/lib/commands/install.js +25 -15
- 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/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-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 +246 -0
- package/scripts/bros/waydroid-helper.sh +92 -0
- package/scripts/eggs.bash +67 -21
- 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/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/changelog.md +0 -130
- 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/lib/classes/krill_install_compare.d.ts +0 -200
- package/lib/classes/krill_install_compare.js +0 -1110
- package/manpages/doc/man/eggs.1.gz +0 -0
|
@@ -7,13 +7,12 @@ 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 incubator_1 = tslib_1.__importDefault(require("../classes/incubation/incubator"));
|
|
14
|
-
const pacman_1 = tslib_1.__importDefault(require("../classes/pacman"));
|
|
15
|
-
|
|
16
|
-
class Calamares extends command_1.Command {
|
|
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 incubator_1 = (0, tslib_1.__importDefault)(require("../classes/incubation/incubator"));
|
|
14
|
+
const pacman_1 = (0, tslib_1.__importDefault)(require("../classes/pacman"));
|
|
15
|
+
class Calamares extends core_1.Command {
|
|
17
16
|
constructor() {
|
|
18
17
|
super(...arguments);
|
|
19
18
|
this.remix = {};
|
|
@@ -23,7 +22,7 @@ class Calamares extends command_1.Command {
|
|
|
23
22
|
async run() {
|
|
24
23
|
utils_1.default.titles(this.id + ' ' + this.argv);
|
|
25
24
|
this.settings = new settings_1.default();
|
|
26
|
-
const { flags } = this.parse(Calamares);
|
|
25
|
+
const { flags } = await this.parse(Calamares);
|
|
27
26
|
let verbose = false;
|
|
28
27
|
if (flags.verbose) {
|
|
29
28
|
verbose = true;
|
|
@@ -47,12 +46,12 @@ class Calamares extends command_1.Command {
|
|
|
47
46
|
console.log(`theme: ${theme}`);
|
|
48
47
|
if (utils_1.default.isRoot(this.id)) {
|
|
49
48
|
let installer = 'krill';
|
|
50
|
-
if (
|
|
49
|
+
if (pacman_1.default.isInstalledGui()) {
|
|
51
50
|
installer = 'calamares';
|
|
52
51
|
}
|
|
53
52
|
if (installer === 'calamares') {
|
|
54
53
|
if (!remove) {
|
|
55
|
-
if (await utils_1.default.customConfirm(
|
|
54
|
+
if (await utils_1.default.customConfirm('Select yes to continue...')) {
|
|
56
55
|
/**
|
|
57
56
|
* Install calamares
|
|
58
57
|
*/
|
|
@@ -62,7 +61,7 @@ class Calamares extends command_1.Command {
|
|
|
62
61
|
if (await this.settings.load()) {
|
|
63
62
|
this.settings.config.force_installer = true;
|
|
64
63
|
this.settings.save(this.settings.config);
|
|
65
|
-
await
|
|
64
|
+
await pacman_1.default.calamaresPolicies();
|
|
66
65
|
}
|
|
67
66
|
}
|
|
68
67
|
/**
|
|
@@ -89,35 +88,11 @@ class Calamares extends command_1.Command {
|
|
|
89
88
|
}
|
|
90
89
|
}
|
|
91
90
|
}
|
|
92
|
-
else {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
* Install krill
|
|
98
|
-
*/
|
|
99
|
-
if (install) {
|
|
100
|
-
if (!pacman_1.default.packageIsInstalled('krill')) {
|
|
101
|
-
console.log('Download krill from https://sourceforge.com/project/penguins-eggs/files');
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Configure krill
|
|
106
|
-
*/
|
|
107
|
-
if (await this.settings.load()) {
|
|
108
|
-
utils_1.default.warning('Configuring krill');
|
|
109
|
-
await this.settings.loadRemix(this.settings.config.snapshot_basename, theme);
|
|
110
|
-
this.incubator = new incubator_1.default(this.settings.remix, this.settings.distro, this.settings.config.user_opt, verbose);
|
|
111
|
-
await this.incubator.config(final);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
/**
|
|
117
|
-
* Remove krill
|
|
118
|
-
*/
|
|
119
|
-
await utils_2.exec('apt purge krill');
|
|
120
|
-
}
|
|
91
|
+
else if ((await utils_1.default.customConfirm('Select yes to continue...')) && (await this.settings.load())) {
|
|
92
|
+
utils_1.default.warning('Configuring krill');
|
|
93
|
+
await this.settings.loadRemix(this.settings.config.snapshot_basename, theme);
|
|
94
|
+
this.incubator = new incubator_1.default(this.settings.remix, this.settings.distro, this.settings.config.user_opt, verbose);
|
|
95
|
+
await this.incubator.config(final);
|
|
121
96
|
}
|
|
122
97
|
}
|
|
123
98
|
}
|
|
@@ -125,18 +100,11 @@ class Calamares extends command_1.Command {
|
|
|
125
100
|
exports.default = Calamares;
|
|
126
101
|
Calamares.description = 'calamares or install or configure it';
|
|
127
102
|
Calamares.flags = {
|
|
128
|
-
help:
|
|
129
|
-
verbose:
|
|
130
|
-
install:
|
|
131
|
-
final:
|
|
132
|
-
remove:
|
|
133
|
-
theme:
|
|
103
|
+
help: core_1.Flags.help({ char: 'h' }),
|
|
104
|
+
verbose: core_1.Flags.boolean({ char: 'v' }),
|
|
105
|
+
install: core_1.Flags.boolean({ char: 'i', description: "install calamares and it's dependencies" }),
|
|
106
|
+
final: core_1.Flags.boolean({ char: 'f', description: "final: remove calamares and all it's dependencies after the installation" }),
|
|
107
|
+
remove: core_1.Flags.boolean({ char: 'r', description: "remove calamares and it's dependencies" }),
|
|
108
|
+
theme: core_1.Flags.string({ description: 'theme/branding for eggs and calamares' })
|
|
134
109
|
};
|
|
135
|
-
Calamares.examples = [
|
|
136
|
-
/**
|
|
137
|
-
* adminPolicyCalamares
|
|
138
|
-
*/
|
|
139
|
-
async function adminPolicyCalamares() {
|
|
140
|
-
const policyFile = '/usr/share/polkit-1/actions/com.github.calamares.calamares.policy';
|
|
141
|
-
await utils_2.exec(`sed -i 's/auth_admin/yes/' ${policyFile}`);
|
|
142
|
-
}
|
|
110
|
+
Calamares.examples = ["~$ sudo eggs calamares \ncreate/renew calamares configuration's files\n", "~$ sudo eggs calamares -i \ninstall calamares and create it's configuration's files\n"];
|
package/lib/commands/config.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 { IInstall } from '../interfaces';
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
@@ -13,10 +13,10 @@ export default class Config extends Command {
|
|
|
13
13
|
static description: string;
|
|
14
14
|
static aliases: string[];
|
|
15
15
|
static flags: {
|
|
16
|
-
nointeractive: import("@oclif/
|
|
17
|
-
clean: import("@oclif/
|
|
18
|
-
help: import("@oclif/
|
|
19
|
-
verbose: import("@oclif/
|
|
16
|
+
nointeractive: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
17
|
+
clean: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
18
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
19
|
+
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
20
20
|
};
|
|
21
21
|
static examples: string[];
|
|
22
22
|
run(): Promise<void>;
|
package/lib/commands/config.js
CHANGED
|
@@ -7,47 +7,54 @@ const tslib_1 = require("tslib");
|
|
|
7
7
|
* email: piero.proietti@gmail.com
|
|
8
8
|
* license: MIT
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
11
|
-
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
12
|
-
const utils_1 = tslib_1.__importDefault(require("../classes/utils"));
|
|
13
|
-
const pacman_1 = tslib_1.__importDefault(require("../classes/pacman"));
|
|
14
|
-
const bleach_1 = tslib_1.__importDefault(require("../classes/bleach"));
|
|
15
|
-
const distro_1 = tslib_1.__importDefault(require("../classes/distro"));
|
|
10
|
+
const core_1 = require("@oclif/core");
|
|
11
|
+
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
|
|
12
|
+
const utils_1 = (0, tslib_1.__importDefault)(require("../classes/utils"));
|
|
13
|
+
const pacman_1 = (0, tslib_1.__importDefault)(require("../classes/pacman"));
|
|
14
|
+
const bleach_1 = (0, tslib_1.__importDefault)(require("../classes/bleach"));
|
|
16
15
|
const dependencies_1 = require("../lib/dependencies");
|
|
17
|
-
const
|
|
16
|
+
const utils_2 = require("../lib/utils");
|
|
18
17
|
/**
|
|
19
18
|
*
|
|
20
19
|
*/
|
|
21
|
-
class Config extends
|
|
20
|
+
class Config extends core_1.Command {
|
|
22
21
|
async run() {
|
|
23
|
-
const { flags } = this.parse(Config);
|
|
22
|
+
const { flags } = await this.parse(Config);
|
|
24
23
|
const nointeractive = flags.nointeractive;
|
|
25
24
|
const verbose = flags.verbose;
|
|
26
25
|
if (!nointeractive) {
|
|
27
26
|
utils_1.default.titles(this.id + ' ' + this.argv);
|
|
27
|
+
if (utils_1.default.isDebPackage()) {
|
|
28
|
+
utils_1.default.warning('running as package .deb');
|
|
29
|
+
}
|
|
30
|
+
else if (utils_1.default.isSources()) {
|
|
31
|
+
utils_1.default.warning('running as sources');
|
|
32
|
+
}
|
|
28
33
|
}
|
|
29
34
|
if (utils_1.default.isRoot(this.id)) {
|
|
30
35
|
if (flags.clean) {
|
|
31
|
-
|
|
36
|
+
utils_1.default.warning('removing old configurations');
|
|
37
|
+
await (0, utils_2.exec)('rm /etc/penguins-eggs.d -rf');
|
|
32
38
|
}
|
|
33
39
|
/**
|
|
34
|
-
* Se
|
|
35
|
-
*
|
|
40
|
+
* Se stiamo utilizzando eggs da sorgenti
|
|
41
|
+
* Aggiungo autocomplete e manPage
|
|
36
42
|
*/
|
|
37
|
-
if (
|
|
38
|
-
|
|
43
|
+
if (utils_1.default.isSources()) {
|
|
44
|
+
utils_1.default.warning('creating autocomplete...');
|
|
45
|
+
await pacman_1.default.autocompleteInstall(verbose);
|
|
46
|
+
utils_1.default.warning('creating eggs man page...');
|
|
39
47
|
await pacman_1.default.manPageInstall(verbose);
|
|
40
48
|
}
|
|
41
49
|
// Vediamo che cosa c'è da fare...
|
|
50
|
+
utils_1.default.warning('what we need?');
|
|
42
51
|
const i = await Config.thatWeNeed(nointeractive, verbose);
|
|
43
52
|
if (i.needApt || i.configurationInstall || i.configurationRefresh || i.distroTemplate) {
|
|
44
53
|
if (nointeractive) {
|
|
45
54
|
await Config.install(i, nointeractive, verbose);
|
|
46
55
|
}
|
|
47
|
-
else {
|
|
48
|
-
|
|
49
|
-
await Config.install(i, nointeractive, verbose);
|
|
50
|
-
}
|
|
56
|
+
else if (await utils_1.default.customConfirm()) {
|
|
57
|
+
await Config.install(i, nointeractive, verbose);
|
|
51
58
|
}
|
|
52
59
|
}
|
|
53
60
|
}
|
|
@@ -61,29 +68,17 @@ class Config extends command_1.Command {
|
|
|
61
68
|
const i = {};
|
|
62
69
|
i.distroTemplate = !pacman_1.default.distroTemplateCheck();
|
|
63
70
|
if (utils_1.default.machineArch() !== 'i386') {
|
|
64
|
-
i.efi =
|
|
71
|
+
i.efi = !pacman_1.default.isUefi();
|
|
65
72
|
}
|
|
66
|
-
if (!await pacman_1.default.calamaresCheck() && (
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
*/
|
|
70
|
-
const remix = {};
|
|
71
|
-
const distro = new distro_1.default(remix);
|
|
72
|
-
if (pacman_1.default.calamaresAble()) {
|
|
73
|
-
utils_1.default.warning('config: you are on a graphic system, I suggest to install the GUI installer calamares');
|
|
74
|
-
if (nointeractive) {
|
|
75
|
-
i.calamares = true;
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
i.calamares = (await utils_1.default.customConfirm('Want You install calamares?'));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
73
|
+
if (!(await pacman_1.default.calamaresCheck()) && pacman_1.default.isInstalledGui() && pacman_1.default.isCalamaresAvailable()) {
|
|
74
|
+
utils_1.default.warning('config: you are on a graphic system, I suggest to install the GUI installer calamares');
|
|
75
|
+
i.calamares = nointeractive ? true : await utils_1.default.customConfirm('Want You install calamares?');
|
|
81
76
|
}
|
|
82
77
|
i.configurationInstall = !pacman_1.default.configurationCheck();
|
|
83
78
|
if (!i.configurationInstall) {
|
|
84
79
|
i.configurationRefresh = !pacman_1.default.configurationMachineNew();
|
|
85
80
|
}
|
|
86
|
-
i.prerequisites = !await pacman_1.default.prerequisitesCheck();
|
|
81
|
+
i.prerequisites = !(await pacman_1.default.prerequisitesCheck());
|
|
87
82
|
if (i.efi || i.calamares || i.prerequisites) {
|
|
88
83
|
i.needApt = true;
|
|
89
84
|
}
|
|
@@ -91,30 +86,29 @@ class Config extends command_1.Command {
|
|
|
91
86
|
* Visualizza cosa c'è da fare
|
|
92
87
|
*/
|
|
93
88
|
if (!nointeractive) {
|
|
94
|
-
utils_1.default.warning('config: we need...');
|
|
95
89
|
if (i.needApt) {
|
|
96
90
|
console.log('- update the system');
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
if (i.efi) {
|
|
100
|
-
if (utils_1.default.machineArch() !== 'i386') {
|
|
101
|
-
console.log('- install efi packages');
|
|
102
|
-
console.log(chalk_1.default.yellow(' apt install -y grub-efi-' + utils_1.default.machineArch() + '-bin\n'));
|
|
91
|
+
if (pacman_1.default.distro().familyId === 'debian') {
|
|
92
|
+
console.log(chalk_1.default.yellow(' apt-get update --yes\n'));
|
|
103
93
|
}
|
|
104
94
|
}
|
|
95
|
+
if (i.efi && pacman_1.default.distro().familyId === 'debian' && utils_1.default.machineArch() !== 'i386') {
|
|
96
|
+
console.log('- install efi packages');
|
|
97
|
+
console.log(chalk_1.default.yellow(' apt install -y grub-efi-' + utils_1.default.machineArch() + '-bin\n'));
|
|
98
|
+
}
|
|
105
99
|
if (i.prerequisites) {
|
|
106
100
|
console.log('- install packages prerequisites');
|
|
107
|
-
const packages = pacman_1.default.
|
|
101
|
+
const packages = pacman_1.default.packages(verbose);
|
|
108
102
|
if (packages.length > 0) {
|
|
109
|
-
console.log(chalk_1.default.yellow('
|
|
103
|
+
console.log(chalk_1.default.yellow(' will install: ' + (0, dependencies_1.array2spaced)(packages)));
|
|
110
104
|
}
|
|
111
105
|
}
|
|
112
106
|
if (i.configurationInstall) {
|
|
113
|
-
console.log(
|
|
107
|
+
console.log("- creating configuration's files...");
|
|
114
108
|
pacman_1.default.configurationInstall(verbose);
|
|
115
109
|
}
|
|
116
110
|
if (i.configurationRefresh) {
|
|
117
|
-
console.log(
|
|
111
|
+
console.log("- refreshing configuration's files...");
|
|
118
112
|
pacman_1.default.configurationFresh();
|
|
119
113
|
}
|
|
120
114
|
if (i.distroTemplate) {
|
|
@@ -122,8 +116,10 @@ class Config extends command_1.Command {
|
|
|
122
116
|
}
|
|
123
117
|
if (i.calamares) {
|
|
124
118
|
console.log('- install calamares');
|
|
125
|
-
|
|
126
|
-
|
|
119
|
+
if (pacman_1.default.distro().familyId === 'debian') {
|
|
120
|
+
const packages = pacman_1.default.debs4calamares;
|
|
121
|
+
console.log(chalk_1.default.yellow(' will install: ' + (0, dependencies_1.array2spaced)(packages) + '\n'));
|
|
122
|
+
}
|
|
127
123
|
}
|
|
128
124
|
if (i.needApt) {
|
|
129
125
|
console.log('- cleaning apt\n');
|
|
@@ -136,7 +132,7 @@ class Config extends command_1.Command {
|
|
|
136
132
|
console.log('- refreshing configuration for new machine');
|
|
137
133
|
}
|
|
138
134
|
if (i.needApt) {
|
|
139
|
-
utils_1.default.warning(
|
|
135
|
+
utils_1.default.warning("Be sure! It's just a series of apt install from your repo.\nYou can follows them using flag --verbose");
|
|
140
136
|
}
|
|
141
137
|
}
|
|
142
138
|
return i;
|
|
@@ -161,46 +157,44 @@ class Config extends command_1.Command {
|
|
|
161
157
|
utils_1.default.warning('coping distro templates...');
|
|
162
158
|
await pacman_1.default.distroTemplateInstall(verbose);
|
|
163
159
|
}
|
|
164
|
-
if (i.needApt && !nointeractive) {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
await exec('apt-get update --yes', echo);
|
|
168
|
-
}
|
|
160
|
+
if (i.needApt && !nointeractive && !nointeractive && pacman_1.default.distro().familyId === 'debian') {
|
|
161
|
+
utils_1.default.warning('updating system...');
|
|
162
|
+
await (0, utils_2.exec)('apt-get update --yes', echo);
|
|
169
163
|
}
|
|
170
164
|
if (i.efi) {
|
|
171
165
|
if (nointeractive) {
|
|
172
166
|
utils_1.default.error('config: you are on a system UEFI');
|
|
173
167
|
utils_1.default.warning('I suggest You to install grub-efi-' + utils_1.default.machineArch() + '-bin before to produce your ISO.\nJust write:\n sudo apt install grub-efi-' + utils_1.default.machineArch());
|
|
174
168
|
}
|
|
175
|
-
else {
|
|
169
|
+
else if (pacman_1.default.distro().familyId === 'debian') {
|
|
176
170
|
utils_1.default.warning('Installing uefi support...');
|
|
177
|
-
await exec('apt-get install grub-efi-' + utils_1.default.machineArch() + '-bin --yes', echo);
|
|
171
|
+
await (0, utils_2.exec)('apt-get install grub-efi-' + utils_1.default.machineArch() + '-bin --yes', echo);
|
|
178
172
|
}
|
|
179
173
|
}
|
|
180
174
|
if (i.prerequisites) {
|
|
181
175
|
if (nointeractive) {
|
|
182
|
-
utils_1.default.warning(
|
|
176
|
+
utils_1.default.warning("Can't install prerequisites now...");
|
|
183
177
|
}
|
|
184
178
|
else {
|
|
185
179
|
await pacman_1.default.prerequisitesInstall(verbose);
|
|
186
180
|
}
|
|
187
181
|
}
|
|
188
|
-
if (i.calamares) {
|
|
189
|
-
if (
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
await pacman_1.default.calamaresInstall(verbose);
|
|
197
|
-
}
|
|
182
|
+
if (i.calamares && pacman_1.default.isCalamaresAvailable()) {
|
|
183
|
+
if (nointeractive) {
|
|
184
|
+
utils_1.default.warning('I suggest You to install calamares GUI installer before to produce your ISO.\nJust write:\n sudo eggs calamares --install');
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
utils_1.default.warning('Installing calamares...');
|
|
188
|
+
await pacman_1.default.calamaresInstall(verbose);
|
|
189
|
+
await pacman_1.default.calamaresPolicies();
|
|
198
190
|
}
|
|
199
191
|
}
|
|
200
192
|
if (i.needApt && !nointeractive) {
|
|
201
193
|
utils_1.default.warning('cleaning the system...');
|
|
202
|
-
|
|
203
|
-
|
|
194
|
+
if (pacman_1.default.distro().familyId === 'debian') {
|
|
195
|
+
const bleach = new bleach_1.default();
|
|
196
|
+
await bleach.clean(verbose);
|
|
197
|
+
}
|
|
204
198
|
}
|
|
205
199
|
}
|
|
206
200
|
}
|
|
@@ -208,9 +202,9 @@ exports.default = Config;
|
|
|
208
202
|
Config.description = 'Configure and install prerequisites deb packages to run it';
|
|
209
203
|
Config.aliases = ['prerequisites'];
|
|
210
204
|
Config.flags = {
|
|
211
|
-
nointeractive:
|
|
212
|
-
clean:
|
|
213
|
-
help:
|
|
214
|
-
verbose:
|
|
205
|
+
nointeractive: core_1.Flags.boolean({ char: 'n', description: 'assume yes' }),
|
|
206
|
+
clean: core_1.Flags.boolean({ char: 'c', description: 'remove old configuration before to create new one' }),
|
|
207
|
+
help: core_1.Flags.help({ char: 'h' }),
|
|
208
|
+
verbose: core_1.Flags.boolean({ char: 'v', description: 'verbose' })
|
|
215
209
|
};
|
|
216
|
-
Config.examples = [
|
|
210
|
+
Config.examples = ['~$ sudo eggs config\nConfigure and install prerequisites deb packages to run it'];
|
package/lib/commands/dad.d.ts
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
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 Dad extends Command {
|
|
9
9
|
static description: string;
|
|
10
10
|
static flags: {
|
|
11
|
-
help: import("@oclif/
|
|
12
|
-
clean: import("@oclif/
|
|
13
|
-
default: import("@oclif/
|
|
14
|
-
verbose: import("@oclif/
|
|
11
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
12
|
+
clean: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
13
|
+
default: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
15
15
|
};
|
|
16
16
|
run(): Promise<void>;
|
|
17
17
|
}
|
package/lib/commands/dad.js
CHANGED
|
@@ -7,19 +7,19 @@ 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 daddy_1 = tslib_1.__importDefault(require("../classes/daddy"));
|
|
10
|
+
const core_1 = require("@oclif/core");
|
|
11
|
+
const utils_1 = (0, tslib_1.__importDefault)(require("../classes/utils"));
|
|
12
|
+
const daddy_1 = (0, tslib_1.__importDefault)(require("../classes/daddy"));
|
|
13
13
|
const chalk = require("chalk");
|
|
14
|
-
const
|
|
15
|
-
class Dad extends
|
|
14
|
+
const utils_2 = require("../lib/utils");
|
|
15
|
+
class Dad extends core_1.Command {
|
|
16
16
|
async run() {
|
|
17
17
|
utils_1.default.titles(this.id + ' ' + this.argv);
|
|
18
18
|
console.log(chalk.cyan('Daddy, what else did you leave for me?'));
|
|
19
|
-
const { flags } = this.parse(Dad);
|
|
19
|
+
const { flags } = await this.parse(Dad);
|
|
20
20
|
if (utils_1.default.isRoot(this.id)) {
|
|
21
21
|
if (flags.clean || flags.default) {
|
|
22
|
-
await exec('rm /etc/penguins-eggs.d -rf');
|
|
22
|
+
await (0, utils_2.exec)('rm /etc/penguins-eggs.d -rf');
|
|
23
23
|
}
|
|
24
24
|
const daddy = new daddy_1.default();
|
|
25
25
|
daddy.helpMe(flags.default, flags.verbose);
|
|
@@ -29,8 +29,8 @@ class Dad extends command_1.Command {
|
|
|
29
29
|
exports.default = Dad;
|
|
30
30
|
Dad.description = 'ask help from daddy - configuration helper';
|
|
31
31
|
Dad.flags = {
|
|
32
|
-
help:
|
|
33
|
-
clean:
|
|
34
|
-
default:
|
|
35
|
-
verbose:
|
|
32
|
+
help: core_1.Flags.help({ char: 'h' }),
|
|
33
|
+
clean: core_1.Flags.boolean({ char: 'c', description: 'remove old configuration before to create' }),
|
|
34
|
+
default: core_1.Flags.boolean({ char: 'd', description: 'remove old configuration and force default' }),
|
|
35
|
+
verbose: core_1.Flags.boolean({ char: 'v' })
|
|
36
36
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Command } from '@oclif/
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
2
|
export default class ExportDeb extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
help: import("@oclif/
|
|
6
|
-
clean: import("@oclif/
|
|
7
|
-
amd64: import("@oclif/
|
|
8
|
-
i386: import("@oclif/
|
|
9
|
-
armel: import("@oclif/
|
|
10
|
-
arm64: import("@oclif/
|
|
11
|
-
all: import("@oclif/
|
|
5
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
6
|
+
clean: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
7
|
+
amd64: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
i386: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
armel: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
arm64: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
all: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
12
12
|
};
|
|
13
13
|
run(): Promise<void>;
|
|
14
14
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
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 ExportDeb 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 ExportDeb extends core_1.Command {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(ExportDeb);
|
|
10
|
+
const { args, flags } = await this.parse(ExportDeb);
|
|
11
11
|
utils_1.default.titles(this.id + ' ' + this.argv);
|
|
12
|
-
const Tu = new tools_1.default;
|
|
12
|
+
const Tu = new tools_1.default();
|
|
13
13
|
utils_1.default.warning(ExportDeb.description);
|
|
14
14
|
await Tu.loadSettings();
|
|
15
15
|
// rimozione
|
|
@@ -21,7 +21,7 @@ class ExportDeb extends command_1.Command {
|
|
|
21
21
|
}
|
|
22
22
|
arch += '.deb';
|
|
23
23
|
const cmd = 'ssh ' + Tu.config.remoteUser + '@' + Tu.config.remoteHost + ' rm -rf ' + Tu.config.remotePathDeb + Tu.config.filterDeb + arch;
|
|
24
|
-
await exec(cmd, { echo: true, capture: true });
|
|
24
|
+
await (0, utils_2.exec)(cmd, { echo: true, capture: true });
|
|
25
25
|
}
|
|
26
26
|
// esportazione
|
|
27
27
|
console.log('copy to remote host...');
|
|
@@ -31,17 +31,17 @@ class ExportDeb extends command_1.Command {
|
|
|
31
31
|
}
|
|
32
32
|
arch += '.deb';
|
|
33
33
|
const cmd = 'scp ' + Tu.config.localPathDeb + Tu.config.filterDeb + arch + ' root@' + Tu.config.remoteHost + ':' + Tu.config.remotePathDeb;
|
|
34
|
-
await exec(cmd, { echo: true, capture: true });
|
|
34
|
+
await (0, utils_2.exec)(cmd, { echo: true, capture: true });
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
exports.default = ExportDeb;
|
|
38
38
|
ExportDeb.description = 'export deb/docs/iso to the destination host';
|
|
39
39
|
ExportDeb.flags = {
|
|
40
|
-
help:
|
|
41
|
-
clean:
|
|
42
|
-
amd64:
|
|
43
|
-
i386:
|
|
44
|
-
armel:
|
|
45
|
-
arm64:
|
|
46
|
-
all:
|
|
40
|
+
help: core_1.Flags.help({ char: 'h' }),
|
|
41
|
+
clean: core_1.Flags.boolean({ char: 'c', description: 'remove old .deb before to copy' }),
|
|
42
|
+
amd64: core_1.Flags.boolean({ description: 'export amd64 arch' }),
|
|
43
|
+
i386: core_1.Flags.boolean({ description: 'export i386 arch' }),
|
|
44
|
+
armel: core_1.Flags.boolean({ description: 'export armel arch' }),
|
|
45
|
+
arm64: core_1.Flags.boolean({ description: 'export arm64 arch' }),
|
|
46
|
+
all: core_1.Flags.boolean({ char: 'a', description: 'export all archs' })
|
|
47
47
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Command } from '@oclif/
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
2
|
export default class ExportDocs extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
help: import("@oclif/
|
|
5
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
6
6
|
};
|
|
7
7
|
run(): Promise<void>;
|
|
8
8
|
}
|
|
@@ -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
|
}
|