penguins-eggs 9.3.27 → 9.3.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/.oclif.manifest.json +1 -1
  2. package/dist/classes/bleach.js +26 -24
  3. package/dist/classes/compressors.js +4 -2
  4. package/dist/classes/daddy.js +30 -28
  5. package/dist/classes/distro.js +7 -5
  6. package/dist/classes/family/archlinux.js +21 -19
  7. package/dist/classes/family/debian.js +28 -26
  8. package/dist/classes/family/fedora.js +19 -17
  9. package/dist/classes/family/suse.js +19 -17
  10. package/dist/classes/incubation/branding.js +4 -2
  11. package/dist/classes/incubation/distros/bionic.js +5 -3
  12. package/dist/classes/incubation/distros/buster.js +5 -3
  13. package/dist/classes/incubation/distros/focal.js +5 -3
  14. package/dist/classes/incubation/distros/jessie.js +5 -3
  15. package/dist/classes/incubation/distros/rolling.js +5 -3
  16. package/dist/classes/incubation/fisherman-helper/displaymanager.js +5 -3
  17. package/dist/classes/incubation/fisherman-helper/packages.js +9 -7
  18. package/dist/classes/incubation/fisherman.js +14 -12
  19. package/dist/classes/incubation/incubator.js +30 -28
  20. package/dist/classes/incubation/installer.js +8 -6
  21. package/dist/classes/initrd.js +5 -3
  22. package/dist/classes/keyboards.js +9 -7
  23. package/dist/classes/locales.js +10 -8
  24. package/dist/classes/n8.js +4 -2
  25. package/dist/classes/network.js +4 -2
  26. package/dist/classes/ovary.js +214 -211
  27. package/dist/classes/pacman.js +127 -125
  28. package/dist/classes/pve-live.js +7 -5
  29. package/dist/classes/pxe.js +66 -63
  30. package/dist/classes/settings.js +32 -30
  31. package/dist/classes/sources_list.js +12 -10
  32. package/dist/classes/systemctl.js +14 -12
  33. package/dist/classes/tailor.js +64 -62
  34. package/dist/classes/tools.js +7 -5
  35. package/dist/classes/users.js +6 -4
  36. package/dist/classes/utils.js +22 -20
  37. package/dist/classes/xdg.js +44 -42
  38. package/dist/classes/yolk.js +32 -30
  39. package/dist/commands/adapt.js +12 -10
  40. package/dist/commands/analyze.js +15 -13
  41. package/dist/commands/calamares.js +22 -20
  42. package/dist/commands/config.js +71 -69
  43. package/dist/commands/cuckoo.js +11 -9
  44. package/dist/commands/dad.js +12 -10
  45. package/dist/commands/export/deb.js +12 -10
  46. package/dist/commands/export/iso.js +11 -9
  47. package/dist/commands/install.js +16 -14
  48. package/dist/commands/kill.js +14 -12
  49. package/dist/commands/mom.js +9 -7
  50. package/dist/commands/produce.js +21 -19
  51. package/dist/commands/status.js +5 -3
  52. package/dist/commands/syncfrom.js +39 -37
  53. package/dist/commands/syncto.js +47 -45
  54. package/dist/commands/tools/clean.js +10 -8
  55. package/dist/commands/tools/ppa.js +21 -19
  56. package/dist/commands/tools/skel.js +15 -13
  57. package/dist/commands/tools/stat.js +7 -5
  58. package/dist/commands/tools/yolk.js +11 -9
  59. package/dist/commands/update.js +25 -23
  60. package/dist/commands/wardrobe/get.js +10 -8
  61. package/dist/commands/wardrobe/list.js +12 -10
  62. package/dist/commands/wardrobe/show.js +13 -11
  63. package/dist/commands/wardrobe/wear.js +16 -14
  64. package/dist/components/elements/information.js +21 -19
  65. package/dist/components/elements/steps.js +4 -2
  66. package/dist/components/elements/title.js +4 -2
  67. package/dist/components/finished.js +10 -8
  68. package/dist/components/install.js +10 -8
  69. package/dist/components/keyboard.js +10 -8
  70. package/dist/components/location.js +10 -8
  71. package/dist/components/network.js +10 -8
  72. package/dist/components/partitions.js +10 -8
  73. package/dist/components/summary.js +10 -8
  74. package/dist/components/users.js +33 -8
  75. package/dist/components/welcome.js +10 -8
  76. package/dist/krill/krill-prepare.js +92 -90
  77. package/dist/krill/krill-sequence.js +148 -145
  78. package/dist/krill/modules/add-user.js +9 -7
  79. package/dist/krill/modules/bootloader-config-ubuntu.js +24 -22
  80. package/dist/krill/modules/bootloader.js +9 -7
  81. package/dist/krill/modules/change-password.js +2 -2
  82. package/dist/krill/modules/del-live-user.js +8 -6
  83. package/dist/krill/modules/fstab.js +14 -12
  84. package/dist/krill/modules/grubcfg.js +7 -5
  85. package/dist/krill/modules/hostname.js +4 -2
  86. package/dist/krill/modules/initramfs-cfg.js +6 -4
  87. package/dist/krill/modules/initramfs.js +13 -11
  88. package/dist/krill/modules/locale-cfg.js +4 -2
  89. package/dist/krill/modules/locale.js +7 -5
  90. package/dist/krill/modules/m-keyboard.js +13 -11
  91. package/dist/krill/modules/m-timezone.js +7 -5
  92. package/dist/krill/modules/machine-id.js +7 -5
  93. package/dist/krill/modules/mkfs.js +6 -6
  94. package/dist/krill/modules/mount-fs.js +17 -15
  95. package/dist/krill/modules/mount-vfs.js +12 -12
  96. package/dist/krill/modules/network-cfg.js +8 -6
  97. package/dist/krill/modules/packages.js +15 -13
  98. package/dist/krill/modules/partition.js +74 -72
  99. package/dist/krill/modules/remove-installer-link.js +4 -2
  100. package/dist/krill/modules/umount.js +9 -7
  101. package/dist/krill/modules/unpackfs.js +7 -5
  102. package/dist/lib/cli-autologin.js +163 -163
  103. package/dist/lib/get_address.js +4 -2
  104. package/dist/lib/get_dns.js +4 -2
  105. package/dist/lib/get_domain.js +4 -2
  106. package/dist/lib/get_gateway.js +4 -2
  107. package/dist/lib/get_hostname.js +4 -2
  108. package/dist/lib/get_netmask.js +4 -2
  109. package/dist/lib/get_password.js +4 -2
  110. package/dist/lib/get_root_password.js +4 -2
  111. package/dist/lib/get_userfullname.js +4 -2
  112. package/dist/lib/get_username.js +4 -2
  113. package/dist/lib/select_address_type.js +4 -2
  114. package/dist/lib/select_filesystem_type.js +6 -4
  115. package/dist/lib/select_installation_device.js +5 -3
  116. package/dist/lib/select_installation_mode.js +4 -2
  117. package/dist/lib/select_interface.js +4 -2
  118. package/dist/lib/select_keyboard_layout.js +6 -4
  119. package/dist/lib/select_keyboard_model.js +6 -4
  120. package/dist/lib/select_keyboard_option.js +6 -4
  121. package/dist/lib/select_keyboard_variant.js +6 -4
  122. package/dist/lib/select_languages.js +6 -4
  123. package/dist/lib/select_regions.js +4 -2
  124. package/dist/lib/select_user_swap_choice.js +6 -4
  125. package/dist/lib/select_zones.js +4 -2
  126. package/package.json +6 -5
  127. package/dist/types/etrick.js +0 -1
@@ -1 +1 @@
1
- {"version":"9.3.27","commands":{"adapt":{"id":"adapt","description":"adapt monitor resolution for VM only","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs adapt"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"analyze":{"id":"analyze","description":"analyze for syncto","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs analyze"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"calamares":{"id":"calamares","description":"configure calamares or install or configure it","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs calamares","sudo eggs calamares --install","sudo eggs calamares --install --theme=/path/to/theme","sudo eggs calamares --remove"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"install":{"name":"install","type":"boolean","char":"i","description":"install calamares and it's dependencies","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"release":{"name":"release","type":"boolean","char":"r","description":"release: remove calamares and all it's dependencies after the installation","allowNo":false},"remove":{"name":"remove","type":"boolean","description":"remove calamares and it's dependencies","allowNo":false},"theme":{"name":"theme","type":"option","description":"theme/branding for eggs and calamares","multiple":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"config":{"id":"config","description":"Configure and install prerequisites deb packages to run it","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs config","sudo eggs config --clean","sudo eggs config --clean --nointeractive"],"flags":{"clean":{"name":"clean","type":"boolean","char":"c","description":"remove old configuration before to create new one","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"cuckoo":{"id":"cuckoo","description":"PXE start with proxy-dhcp","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs cuckoo"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"dad":{"id":"dad","description":"ask help from daddy - TUI configuration helper","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo dad","sudo dad --clean","sudo dad --default"],"flags":{"clean":{"name":"clean","type":"boolean","char":"c","description":"remove old configuration before to create","allowNo":false},"default":{"name":"default","type":"boolean","char":"d","description":"remove old configuration and force default","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"install":{"id":"install","description":"krill: the CLI system installer - the egg became a penguin!","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs install","sudo eggs install --unattended","sudo eggs install --custom it"],"flags":{"crypted":{"name":"crypted","type":"boolean","char":"k","description":"Crypted CLI installation","allowNo":false},"custom":{"name":"custom","type":"option","char":"c","description":"custom unattended configuration","multiple":false},"domain":{"name":"domain","type":"option","char":"d","description":"Domain name, defult: .local","multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"ip":{"name":"ip","type":"boolean","char":"i","description":"hostname as ip, eg: ip-192-168-1-33","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"none":{"name":"none","type":"boolean","char":"N","description":"Swap none: 256M","allowNo":false},"pve":{"name":"pve","type":"boolean","char":"p","description":"Proxmox VE install","allowNo":false},"random":{"name":"random","type":"boolean","char":"r","description":"Add random to hostname, eg: colibri-ay412dt","allowNo":false},"small":{"name":"small","type":"boolean","char":"s","description":"Swap small: RAM","allowNo":false},"suspend":{"name":"suspend","type":"boolean","char":"S","description":"Swap suspend: RAM x 2","allowNo":false},"unattended":{"name":"unattended","type":"boolean","char":"u","description":"Unattended installation","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose","allowNo":false}},"args":[]},"kill":{"id":"kill","description":"kill the eggs/free the nest","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs kill"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"mom":{"id":"mom","description":"ask help from mommy - TUI helper","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs mom"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"produce":{"id":"produce","description":"produce a live image from your system whithout your data","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs produce","sudo eggs produce --standard","sudo eggs produce --max","sudo eggs produce --max --basename=colibri","sudo eggs produce --cryptedclone","sudo eggs produce --clone","sudo eggs produce --basename=colibri","sudo eggs produce --basename=colibri --theme /path/to/theme --addons adapt"],"flags":{"addons":{"name":"addons","type":"option","description":"addons to be used: adapt, ichoice, pve, rsupport","multiple":true},"basename":{"name":"basename","type":"option","description":"basename","multiple":false},"clone":{"name":"clone","type":"boolean","char":"c","description":"clone","allowNo":false},"cryptedclone":{"name":"cryptedclone","type":"boolean","char":"C","description":"crypted clone","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"max":{"name":"max","type":"boolean","char":"m","description":"max compression","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"prefix":{"name":"prefix","type":"option","char":"p","description":"prefix","multiple":false},"release":{"name":"release","type":"boolean","description":"release: max compression, remove penguins-eggs and calamares after installation","allowNo":false},"script":{"name":"script","type":"boolean","char":"s","description":"script mode. Generate scripts to manage iso build","allowNo":false},"standard":{"name":"standard","type":"boolean","char":"f","description":"standard compression","allowNo":false},"theme":{"name":"theme","type":"option","description":"theme for livecd, calamares branding and partitions","multiple":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false},"yolk":{"name":"yolk","type":"boolean","char":"y","description":"-y force yolk renew","allowNo":false}},"args":[]},"status":{"id":"status","description":"informations about eggs status","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs status"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"syncfrom":{"id":"syncfrom","description":"restore users and user data from a LUKS volumes","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs syncfrom","sudo eggs syncfrom --file /path/to/fileLUKS"],"flags":{"delete":{"name":"delete","type":"option","description":"rsync --delete delete extraneous files from dest dirs","multiple":false},"file":{"name":"file","type":"option","char":"f","description":"file LUKS volume encrypted","multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"rootdir":{"name":"rootdir","type":"option","char":"r","description":"rootdir of the installed system, when used from live","multiple":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"syncto":{"id":"syncto","description":"saves users and user data in a LUKS volume inside the iso","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs syncto","sudo eggs syncto --file /path/to/fileLUKS"],"flags":{"delete":{"name":"delete","type":"option","description":"rsync --delete delete extraneous files from dest dirs","multiple":false},"file":{"name":"file","type":"option","char":"f","description":"file LUKS volume encrypted","multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"update":{"id":"update","description":"update the penguin's eggs tool","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs update"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"export:deb":{"id":"export:deb","description":"export deb/docs/iso to the destination host","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs export deb","eggs export deb --clean","eggs export deb --all"],"flags":{"all":{"name":"all","type":"boolean","char":"a","description":"export all archs","allowNo":false},"clean":{"name":"clean","type":"boolean","char":"c","description":"remove old .deb before to copy","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"export:iso":{"id":"export:iso","description":"export iso in the destination host","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs export iso","eggs export iso --clean"],"flags":{"clean":{"name":"clean","type":"boolean","char":"c","description":"delete old ISOs before to copy","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"tools:clean":{"id":"tools:clean","description":"clean system log, apt, etc","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs tools clean"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"tools:ppa":{"id":"tools:ppa","description":"add/remove PPA repositories (Debian family)","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs tools ppa --add","sudo eggs tools ppa --remove"],"flags":{"add":{"name":"add","type":"boolean","char":"a","description":"add penguins-eggs PPA repository","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"remove":{"name":"remove","type":"boolean","char":"r","description":"remove penguins-eggs PPA repository","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"tools:skel":{"id":"tools:skel","description":"update skel from home configuration","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs skel","sudo eggs skel --user user-to-be-copied"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"user":{"name":"user","type":"option","char":"u","description":"user to be used","multiple":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"tools:stat":{"id":"tools:stat","description":"get statistics from sourceforge","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs tools stat","eggs tools stat --month","eggs tools stat --year"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"month":{"name":"month","type":"boolean","char":"m","description":"current month","allowNo":false},"year":{"name":"year","type":"boolean","char":"y","description":"current year","allowNo":false}},"args":[]},"tools:yolk":{"id":"tools:yolk","description":"configure eggs to install without internet","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs yolk"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[],"dir":"/var/local/yolk"},"wardrobe:get":{"id":"wardrobe:get","description":"get warorobe","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs wardrobe get","eggs wardrobe get your-wardrobe"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[{"name":"repo","description":"repository to get","required":false}]},"wardrobe:list":{"id":"wardrobe:list","description":"list costumes and accessoires in wardrobe","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs wardrobe list","eggs wardrobe list your-wardrove"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[{"name":"wardrobe","description":"wardrobe","required":false}]},"wardrobe:show":{"id":"wardrobe:show","description":"show costumes/accessories in wardrobe","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs wardrobe show colibri","eggs wardrobe show accessories/firmwares","eggs wardrobe show accessories/"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"output JSON","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"wardrobe":{"name":"wardrobe","type":"option","char":"w","description":"wardrobe","multiple":false}},"args":[{"name":"costume","description":"costume","required":false}],"example":["eggs wardrobe show colibri","eggs wardrobe show accessories/firmwares","eggs wardrobe show accessories/"]},"wardrobe:wear":{"id":"wardrobe:wear","description":"wear costume/accessories from wardrobe","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs wardrobe wear duck","sudo eggs wardrobe wear accessories/firmwares","sudo eggs wardrobe wear wagtail/waydroid"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"no_accessories":{"name":"no_accessories","type":"boolean","char":"a","description":"not install accessories","allowNo":false},"no_firmwares":{"name":"no_firmwares","type":"boolean","char":"f","description":"not install firmwares","allowNo":false},"silent":{"name":"silent","type":"boolean","char":"s","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"wardrobe":{"name":"wardrobe","type":"option","char":"w","description":"wardrobe","multiple":false}},"args":[{"name":"costume","description":"costume","required":false}]}}}
1
+ {"version":"9.3.28","commands":{"adapt":{"id":"adapt","description":"adapt monitor resolution for VM only","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs adapt"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"analyze":{"id":"analyze","description":"analyze for syncto","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs analyze"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"calamares":{"id":"calamares","description":"configure calamares or install or configure it","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs calamares","sudo eggs calamares --install","sudo eggs calamares --install --theme=/path/to/theme","sudo eggs calamares --remove"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"install":{"name":"install","type":"boolean","char":"i","description":"install calamares and it's dependencies","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"release":{"name":"release","type":"boolean","char":"r","description":"release: remove calamares and all it's dependencies after the installation","allowNo":false},"remove":{"name":"remove","type":"boolean","description":"remove calamares and it's dependencies","allowNo":false},"theme":{"name":"theme","type":"option","description":"theme/branding for eggs and calamares","multiple":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"config":{"id":"config","description":"Configure and install prerequisites deb packages to run it","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs config","sudo eggs config --clean","sudo eggs config --clean --nointeractive"],"flags":{"clean":{"name":"clean","type":"boolean","char":"c","description":"remove old configuration before to create new one","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"cuckoo":{"id":"cuckoo","description":"PXE start with proxy-dhcp","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs cuckoo"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"dad":{"id":"dad","description":"ask help from daddy - TUI configuration helper","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo dad","sudo dad --clean","sudo dad --default"],"flags":{"clean":{"name":"clean","type":"boolean","char":"c","description":"remove old configuration before to create","allowNo":false},"default":{"name":"default","type":"boolean","char":"d","description":"remove old configuration and force default","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"install":{"id":"install","description":"krill: the CLI system installer - the egg became a penguin!","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs install","sudo eggs install --unattended","sudo eggs install --custom it"],"flags":{"crypted":{"name":"crypted","type":"boolean","char":"k","description":"Crypted CLI installation","allowNo":false},"custom":{"name":"custom","type":"option","char":"c","description":"custom unattended configuration","multiple":false},"domain":{"name":"domain","type":"option","char":"d","description":"Domain name, defult: .local","multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"ip":{"name":"ip","type":"boolean","char":"i","description":"hostname as ip, eg: ip-192-168-1-33","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"none":{"name":"none","type":"boolean","char":"N","description":"Swap none: 256M","allowNo":false},"pve":{"name":"pve","type":"boolean","char":"p","description":"Proxmox VE install","allowNo":false},"random":{"name":"random","type":"boolean","char":"r","description":"Add random to hostname, eg: colibri-ay412dt","allowNo":false},"small":{"name":"small","type":"boolean","char":"s","description":"Swap small: RAM","allowNo":false},"suspend":{"name":"suspend","type":"boolean","char":"S","description":"Swap suspend: RAM x 2","allowNo":false},"unattended":{"name":"unattended","type":"boolean","char":"u","description":"Unattended installation","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose","allowNo":false}},"args":[]},"kill":{"id":"kill","description":"kill the eggs/free the nest","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs kill"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"mom":{"id":"mom","description":"ask help from mommy - TUI helper","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs mom"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"produce":{"id":"produce","description":"produce a live image from your system whithout your data","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs produce","sudo eggs produce --standard","sudo eggs produce --max","sudo eggs produce --max --basename=colibri","sudo eggs produce --cryptedclone","sudo eggs produce --clone","sudo eggs produce --basename=colibri","sudo eggs produce --basename=colibri --theme /path/to/theme --addons adapt"],"flags":{"addons":{"name":"addons","type":"option","description":"addons to be used: adapt, ichoice, pve, rsupport","multiple":true},"basename":{"name":"basename","type":"option","description":"basename","multiple":false},"clone":{"name":"clone","type":"boolean","char":"c","description":"clone","allowNo":false},"cryptedclone":{"name":"cryptedclone","type":"boolean","char":"C","description":"crypted clone","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"max":{"name":"max","type":"boolean","char":"m","description":"max compression","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"prefix":{"name":"prefix","type":"option","char":"p","description":"prefix","multiple":false},"release":{"name":"release","type":"boolean","description":"release: max compression, remove penguins-eggs and calamares after installation","allowNo":false},"script":{"name":"script","type":"boolean","char":"s","description":"script mode. Generate scripts to manage iso build","allowNo":false},"standard":{"name":"standard","type":"boolean","char":"f","description":"standard compression","allowNo":false},"theme":{"name":"theme","type":"option","description":"theme for livecd, calamares branding and partitions","multiple":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false},"yolk":{"name":"yolk","type":"boolean","char":"y","description":"-y force yolk renew","allowNo":false}},"args":[]},"status":{"id":"status","description":"informations about eggs status","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs status"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"syncfrom":{"id":"syncfrom","description":"restore users and user data from a LUKS volumes","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs syncfrom","sudo eggs syncfrom --file /path/to/fileLUKS"],"flags":{"delete":{"name":"delete","type":"option","description":"rsync --delete delete extraneous files from dest dirs","multiple":false},"file":{"name":"file","type":"option","char":"f","description":"file LUKS volume encrypted","multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"rootdir":{"name":"rootdir","type":"option","char":"r","description":"rootdir of the installed system, when used from live","multiple":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"syncto":{"id":"syncto","description":"saves users and user data in a LUKS volume inside the iso","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs syncto","sudo eggs syncto --file /path/to/fileLUKS"],"flags":{"delete":{"name":"delete","type":"option","description":"rsync --delete delete extraneous files from dest dirs","multiple":false},"file":{"name":"file","type":"option","char":"f","description":"file LUKS volume encrypted","multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"update":{"id":"update","description":"update the penguin's eggs tool","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs update"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"export:deb":{"id":"export:deb","description":"export deb/docs/iso to the destination host","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs export deb","eggs export deb --clean","eggs export deb --all"],"flags":{"all":{"name":"all","type":"boolean","char":"a","description":"export all archs","allowNo":false},"clean":{"name":"clean","type":"boolean","char":"c","description":"remove old .deb before to copy","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"export:iso":{"id":"export:iso","description":"export iso in the destination host","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs export iso","eggs export iso --clean"],"flags":{"clean":{"name":"clean","type":"boolean","char":"c","description":"delete old ISOs before to copy","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"tools:clean":{"id":"tools:clean","description":"clean system log, apt, etc","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs tools clean"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"tools:ppa":{"id":"tools:ppa","description":"add/remove PPA repositories (Debian family)","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs tools ppa --add","sudo eggs tools ppa --remove"],"flags":{"add":{"name":"add","type":"boolean","char":"a","description":"add penguins-eggs PPA repository","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"no user interaction","allowNo":false},"remove":{"name":"remove","type":"boolean","char":"r","description":"remove penguins-eggs PPA repository","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"tools:skel":{"id":"tools:skel","description":"update skel from home configuration","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs skel","sudo eggs skel --user user-to-be-copied"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"user":{"name":"user","type":"option","char":"u","description":"user to be used","multiple":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"tools:stat":{"id":"tools:stat","description":"get statistics from sourceforge","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs tools stat","eggs tools stat --month","eggs tools stat --year"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"month":{"name":"month","type":"boolean","char":"m","description":"current month","allowNo":false},"year":{"name":"year","type":"boolean","char":"y","description":"current year","allowNo":false}},"args":[]},"tools:yolk":{"id":"tools:yolk","description":"configure eggs to install without internet","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs yolk"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[],"dir":"/var/local/yolk"},"wardrobe:get":{"id":"wardrobe:get","description":"get warorobe","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs wardrobe get","eggs wardrobe get your-wardrobe"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[{"name":"repo","description":"repository to get","required":false}]},"wardrobe:list":{"id":"wardrobe:list","description":"list costumes and accessoires in wardrobe","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs wardrobe list","eggs wardrobe list your-wardrove"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[{"name":"wardrobe","description":"wardrobe","required":false}]},"wardrobe:show":{"id":"wardrobe:show","description":"show costumes/accessories in wardrobe","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["eggs wardrobe show colibri","eggs wardrobe show accessories/firmwares","eggs wardrobe show accessories/"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"output JSON","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"wardrobe":{"name":"wardrobe","type":"option","char":"w","description":"wardrobe","multiple":false}},"args":[{"name":"costume","description":"costume","required":false}],"example":["eggs wardrobe show colibri","eggs wardrobe show accessories/firmwares","eggs wardrobe show accessories/"]},"wardrobe:wear":{"id":"wardrobe:wear","description":"wear costume/accessories from wardrobe","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["sudo eggs wardrobe wear duck","sudo eggs wardrobe wear accessories/firmwares","sudo eggs wardrobe wear wagtail/waydroid"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"no_accessories":{"name":"no_accessories","type":"boolean","char":"a","description":"not install accessories","allowNo":false},"no_firmwares":{"name":"no_firmwares","type":"boolean","char":"f","description":"not install firmwares","allowNo":false},"silent":{"name":"silent","type":"boolean","char":"s","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"wardrobe":{"name":"wardrobe","type":"option","char":"w","description":"wardrobe","multiple":false}},"args":[{"name":"costume","description":"costume","required":false}]}}}
@@ -6,13 +6,15 @@
6
6
  * author: Piero Proietti
7
7
  * mail: piero.proietti@gmail.com
8
8
  */
9
+ var __importDefault = (this && this.__importDefault) || function (mod) {
10
+ return (mod && mod.__esModule) ? mod : { "default": mod };
11
+ };
9
12
  Object.defineProperty(exports, "__esModule", { value: true });
10
- const tslib_1 = require("tslib");
11
- const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
12
- const utils_1 = tslib_1.__importDefault(require("./utils"));
13
+ const node_fs_1 = __importDefault(require("node:fs"));
14
+ const utils_js_1 = __importDefault(require("./utils.js"));
13
15
  // libraries
14
- const utils_2 = require("../lib/utils");
15
- const distro_1 = tslib_1.__importDefault(require("./distro"));
16
+ const utils_js_2 = require("../lib/utils.js");
17
+ const distro_js_1 = __importDefault(require("./distro.js"));
16
18
  /**
17
19
  * Bleach:
18
20
  */
@@ -23,14 +25,14 @@ class Bleach {
23
25
  */
24
26
  async clean(verbose = false) {
25
27
  if (verbose) {
26
- utils_1.default.warning('cleaning the system');
28
+ utils_js_1.default.warning('cleaning the system');
27
29
  }
28
- const distro = new distro_1.default();
30
+ const distro = new distro_js_1.default();
29
31
  if (distro.familyId === 'debian') {
30
32
  await this.cleanApt(verbose);
31
33
  }
32
34
  else if (distro.familyId === 'archlinux') {
33
- await (0, utils_2.exec)('pacman -Scc', utils_1.default.setEcho(true));
35
+ await (0, utils_js_2.exec)('pacman -Scc', utils_js_1.default.setEcho(true));
34
36
  }
35
37
  await this.cleanHistory(verbose);
36
38
  await this.cleanJournal(verbose);
@@ -45,8 +47,8 @@ class Bleach {
45
47
  if (verbose) {
46
48
  echo = { echo: true, ignore: true, capture: false };
47
49
  }
48
- await (0, utils_2.exec)('apt-get clean', echo);
49
- await (0, utils_2.exec)('apt-get autoclean', echo);
50
+ await (0, utils_js_2.exec)('apt-get clean', echo);
51
+ await (0, utils_js_2.exec)('apt-get autoclean', echo);
50
52
  const dest = '/var/lib/apt/lists/';
51
53
  rmdir(dest, verbose);
52
54
  }
@@ -56,7 +58,7 @@ class Bleach {
56
58
  */
57
59
  async cleanHistory(verbose = false) {
58
60
  if (verbose) {
59
- utils_1.default.warning('cleaning bash history');
61
+ utils_js_1.default.warning('cleaning bash history');
60
62
  }
61
63
  const dest = '/root/.bash_history';
62
64
  if (node_fs_1.default.existsSync(dest)) {
@@ -71,21 +73,21 @@ class Bleach {
71
73
  let echo = { echo: false, ignore: true, capture: false };
72
74
  if (verbose) {
73
75
  echo = { echo: true, ignore: true, capture: false };
74
- utils_1.default.warning('cleaning journald');
76
+ utils_js_1.default.warning('cleaning journald');
75
77
  }
76
- if (utils_1.default.isSystemd()) {
78
+ if (utils_js_1.default.isSystemd()) {
77
79
  try {
78
- await (0, utils_2.exec)('journalctl --rotate', echo);
79
- await (0, utils_2.exec)('journalctl --vacuum-time=1s', echo);
80
+ await (0, utils_js_2.exec)('journalctl --rotate', echo);
81
+ await (0, utils_js_2.exec)('journalctl --vacuum-time=1s', echo);
80
82
  }
81
83
  catch (error) {
82
- utils_1.default.error(error);
84
+ utils_js_1.default.error(error);
83
85
  }
84
86
  }
85
87
  else {
86
88
  // Truncate logs, remove archived logs.
87
- await (0, utils_2.exec)('find /var/log -name "*gz" -print0 | xargs -0r rm -f', echo);
88
- await (0, utils_2.exec)('find /var/log/ -type f -exec truncate -s 0 {} \\;', echo);
89
+ await (0, utils_js_2.exec)('find /var/log -name "*gz" -print0 | xargs -0r rm -f', echo);
90
+ await (0, utils_js_2.exec)('find /var/log/ -type f -exec truncate -s 0 {} \\;', echo);
89
91
  }
90
92
  }
91
93
  /**
@@ -96,14 +98,14 @@ class Bleach {
96
98
  let echo = { echo: false, ignore: true, capture: false };
97
99
  if (verbose) {
98
100
  echo = { echo: true, ignore: true, capture: false };
99
- utils_1.default.warning('cleaning system cache');
101
+ utils_js_1.default.warning('cleaning system cache');
100
102
  }
101
103
  // Clear PageCache only.
102
- await (0, utils_2.exec)('sync; echo 1 > /proc/sys/vm/drop_caches', echo);
104
+ await (0, utils_js_2.exec)('sync; echo 1 > /proc/sys/vm/drop_caches', echo);
103
105
  // Clear dentries and inodes.
104
- await (0, utils_2.exec)('sync; echo 2 > /proc/sys/vm/drop_caches', echo);
106
+ await (0, utils_js_2.exec)('sync; echo 2 > /proc/sys/vm/drop_caches', echo);
105
107
  // Clear PageCache, dentries and inodes.
106
- await (0, utils_2.exec)('sync; echo 3 > /proc/sys/vm/drop_caches', echo);
108
+ await (0, utils_js_2.exec)('sync; echo 3 > /proc/sys/vm/drop_caches', echo);
107
109
  }
108
110
  }
109
111
  exports.default = Bleach;
@@ -117,7 +119,7 @@ async function rm(dest = '', verbose = false) {
117
119
  echo = { echo: true, ignore: true, capture: false };
118
120
  }
119
121
  if (node_fs_1.default.existsSync(dest)) {
120
- await (0, utils_2.exec)(`rm ${dest} -rf`, echo);
122
+ await (0, utils_js_2.exec)(`rm ${dest} -rf`, echo);
121
123
  }
122
124
  else {
123
125
  console.log(`non esiste ${dest}`);
@@ -130,7 +132,7 @@ async function rmdir(dest = '', verbose = false) {
130
132
  }
131
133
  const result = node_fs_1.default.readdirSync(dest);
132
134
  if (result.length > 0) {
133
- await (0, utils_2.exec)(`rm ${dest} -rf`, echo);
135
+ await (0, utils_js_2.exec)(`rm ${dest} -rf`, echo);
134
136
  }
135
137
  }
136
138
  /**
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
6
  /**
5
7
  * test available compressors
6
8
  */
7
- const shelljs_1 = tslib_1.__importDefault(require("shelljs"));
9
+ const shelljs_1 = __importDefault(require("shelljs"));
8
10
  class Compressors {
9
11
  constructor() {
10
12
  this.isEnabled = {
@@ -1,42 +1,44 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
6
  /**
5
7
  * penguins-eggs-v8
6
8
  * author: Piero Proietti
7
9
  * email: piero.proietti@gmail.com
8
10
  * license: MIT
9
11
  */
10
- const utils_1 = tslib_1.__importDefault(require("../classes/utils"));
11
- const pacman_1 = tslib_1.__importDefault(require("../classes/pacman"));
12
- const settings_1 = tslib_1.__importDefault(require("../classes/settings"));
13
- const ovary_1 = tslib_1.__importDefault(require("../classes/ovary"));
14
- const compressors_1 = tslib_1.__importDefault(require("../classes/compressors"));
15
- const inquirer_1 = tslib_1.__importDefault(require("inquirer"));
16
- const chalk_1 = tslib_1.__importDefault(require("chalk"));
17
- const utils_2 = require("../lib/utils");
12
+ const utils_js_1 = __importDefault(require("../classes/utils.js"));
13
+ const pacman_js_1 = __importDefault(require("../classes/pacman.js"));
14
+ const settings_js_1 = __importDefault(require("../classes/settings.js"));
15
+ const ovary_js_1 = __importDefault(require("../classes/ovary.js"));
16
+ const compressors_js_1 = __importDefault(require("../classes/compressors.js"));
17
+ const inquirer_1 = __importDefault(require("inquirer"));
18
+ const chalk_1 = __importDefault(require("chalk"));
19
+ const utils_js_2 = require("../lib/utils.js");
18
20
  class Daddy {
19
21
  constructor() {
20
22
  this.settings = {};
21
23
  }
22
24
  async helpMe(loadDefault = false, verbose = false) {
23
25
  // Controllo configurazione
24
- if (!pacman_1.default.configurationCheck()) {
26
+ if (!pacman_js_1.default.configurationCheck()) {
25
27
  console.log('- creating configuration dir...');
26
- await pacman_1.default.configurationInstall(verbose);
28
+ await pacman_js_1.default.configurationInstall(verbose);
27
29
  }
28
30
  // Controllo prerequisites
29
- if (!(await pacman_1.default.prerequisitesCheck())) {
31
+ if (!(await pacman_js_1.default.prerequisitesCheck())) {
30
32
  console.log('- installing prerequisites...');
31
- await pacman_1.default.prerequisitesInstall(verbose);
33
+ await pacman_js_1.default.prerequisitesInstall(verbose);
32
34
  }
33
35
  // Templates
34
- if (!pacman_1.default.distroTemplateCheck()) {
36
+ if (!pacman_js_1.default.distroTemplateCheck()) {
35
37
  console.log('- distro template install...');
36
- await pacman_1.default.distroTemplateInstall(verbose);
38
+ await pacman_js_1.default.distroTemplateInstall(verbose);
37
39
  }
38
40
  // show and edit configuration
39
- this.settings = new settings_1.default();
41
+ this.settings = new settings_js_1.default();
40
42
  let config = {};
41
43
  if (await this.settings.load()) {
42
44
  config = this.settings.config;
@@ -46,7 +48,7 @@ class Daddy {
46
48
  }
47
49
  else {
48
50
  if (config.snapshot_prefix === '') {
49
- config.snapshot_prefix = utils_1.default.snapshotPrefix(this.settings.distro.distroId, this.settings.distro.codenameId);
51
+ config.snapshot_prefix = utils_js_1.default.snapshotPrefix(this.settings.distro.distroId, this.settings.distro.codenameId);
50
52
  config.compression = 'fast';
51
53
  }
52
54
  jsonConf = JSON.stringify(config);
@@ -62,7 +64,7 @@ class Daddy {
62
64
  /**
63
65
  * Analisi del tipo di compressione disponibile
64
66
  */
65
- const compressors = new compressors_1.default();
67
+ const compressors = new compressors_js_1.default();
66
68
  await compressors.populate();
67
69
  config.compression = compressors.normal();
68
70
  if (newConf.compression === 'fast') {
@@ -74,20 +76,20 @@ class Daddy {
74
76
  await this.settings.save(config);
75
77
  let flags = '';
76
78
  if (loadDefault) {
77
- await (0, utils_2.exec)(`rm ${this.settings.work_dir.path} -rf`);
78
- await (0, utils_2.exec)(`rm ${this.settings.config.snapshot_dir} -rf`);
79
+ await (0, utils_js_2.exec)(`rm ${this.settings.work_dir.path} -rf`);
80
+ await (0, utils_js_2.exec)(`rm ${this.settings.config.snapshot_dir} -rf`);
79
81
  }
80
82
  else {
81
83
  // Controllo se serve il kill
82
84
  if (verbose) {
83
85
  flags = '--verbose ';
84
86
  }
85
- utils_1.default.titles('kill' + flags);
87
+ utils_js_1.default.titles('kill' + flags);
86
88
  console.log(chalk_1.default.cyan('Daddy, what else did you leave for me?'));
87
89
  await this.settings.listFreeSpace();
88
- if (await utils_1.default.customConfirm()) {
89
- await (0, utils_2.exec)(`rm ${this.settings.work_dir.path} -rf`);
90
- await (0, utils_2.exec)(`rm ${this.settings.config.snapshot_dir} -rf`);
90
+ if (await utils_js_1.default.customConfirm()) {
91
+ await (0, utils_js_2.exec)(`rm ${this.settings.work_dir.path} -rf`);
92
+ await (0, utils_js_2.exec)(`rm ${this.settings.config.snapshot_dir} -rf`);
91
93
  }
92
94
  /**
93
95
  * produce
@@ -97,7 +99,7 @@ class Daddy {
97
99
  }
98
100
  flags += ' --' + newConf.compression;
99
101
  flags += ' --addons adapt';
100
- utils_1.default.titles('produce' + ' ' + flags);
102
+ utils_js_1.default.titles('produce' + ' ' + flags);
101
103
  console.log(chalk_1.default.cyan('Daddy, what else did you leave for me?'));
102
104
  const myAddons = {};
103
105
  myAddons.adapt = true;
@@ -106,8 +108,8 @@ class Daddy {
106
108
  const scriptOnly = false;
107
109
  const yolkRenew = false;
108
110
  const final = false;
109
- const ovary = new ovary_1.default();
110
- utils_1.default.warning('Produce an egg...');
111
+ const ovary = new ovary_js_1.default();
112
+ utils_js_1.default.warning('Produce an egg...');
111
113
  if (await ovary.fertilization(config.snapshot_prefix, config.snapshot_basename, config.theme, config.compression)) {
112
114
  await ovary.produce(backup, personal, scriptOnly, yolkRenew, final, myAddons, verbose);
113
115
  ovary.finished(scriptOnly);
@@ -129,7 +131,7 @@ class Daddy {
129
131
  compressionOpt = 2;
130
132
  }
131
133
  if (c.snapshot_prefix === '') {
132
- c.snapshot_prefix = utils_1.default.snapshotPrefix(this.settings.distro.distroId, this.settings.distro.codenameId);
134
+ c.snapshot_prefix = utils_js_1.default.snapshotPrefix(this.settings.distro.distroId, this.settings.distro.codenameId);
133
135
  }
134
136
  return new Promise(function (resolve) {
135
137
  const questions = [
@@ -6,12 +6,14 @@
6
6
  * mail: piero.proietti@gmail.com
7
7
  */
8
8
  'use strict';
9
+ var __importDefault = (this && this.__importDefault) || function (mod) {
10
+ return (mod && mod.__esModule) ? mod : { "default": mod };
11
+ };
9
12
  Object.defineProperty(exports, "__esModule", { value: true });
10
- const tslib_1 = require("tslib");
11
- const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
12
- const node_path_1 = tslib_1.__importDefault(require("node:path"));
13
- const shelljs_1 = tslib_1.__importDefault(require("shelljs"));
14
- const js_yaml_1 = tslib_1.__importDefault(require("js-yaml"));
13
+ const node_fs_1 = __importDefault(require("node:fs"));
14
+ const node_path_1 = __importDefault(require("node:path"));
15
+ const shelljs_1 = __importDefault(require("shelljs"));
16
+ const js_yaml_1 = __importDefault(require("js-yaml"));
15
17
  /**
16
18
  * Classe
17
19
  */
@@ -5,14 +5,16 @@
5
5
  * email: piero.proietti@gmail.com
6
6
  * license: MIT
7
7
  */
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
8
11
  Object.defineProperty(exports, "__esModule", { value: true });
9
- const tslib_1 = require("tslib");
10
- const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
11
- const shelljs_1 = tslib_1.__importDefault(require("shelljs"));
12
- const utils_1 = tslib_1.__importDefault(require("../utils"));
13
- const pacman_1 = tslib_1.__importDefault(require("../pacman"));
14
- const dependencies_1 = require("../../lib/dependencies");
15
- const utils_2 = require("../../lib/utils");
12
+ const node_fs_1 = __importDefault(require("node:fs"));
13
+ const shelljs_1 = __importDefault(require("shelljs"));
14
+ const utils_js_1 = __importDefault(require("../utils.js"));
15
+ const pacman_js_1 = __importDefault(require("../pacman.js"));
16
+ const dependencies_js_1 = require("../../lib/dependencies.js");
17
+ const utils_js_2 = require("../../lib/utils.js");
16
18
  /**
17
19
  * Utils: general porpourse utils
18
20
  * @remarks all the utilities
@@ -61,10 +63,10 @@ class Archlinux {
61
63
  *
62
64
  */
63
65
  static async prerequisitesInstall(verbose = true) {
64
- const echo = utils_1.default.setEcho(verbose);
66
+ const echo = utils_js_1.default.setEcho(verbose);
65
67
  const retVal = false;
66
- await (0, utils_2.exec)(`pacman -Sy ${(0, dependencies_1.array2spaced)(this.packages(false, verbose))}`, echo);
67
- if (!pacman_1.default.isInstalledGui()) {
68
+ await (0, utils_js_2.exec)(`pacman -Sy ${(0, dependencies_js_1.array2spaced)(this.packages(false, verbose))}`, echo);
69
+ if (!pacman_js_1.default.isInstalledGui()) {
68
70
  /**
69
71
  * live-config-getty-generator
70
72
  *
@@ -77,7 +79,7 @@ class Archlinux {
77
79
  */
78
80
  const fileToRemove = '/lib/systemd/system-generators/live-config-getty-generator';
79
81
  if (node_fs_1.default.existsSync(fileToRemove)) {
80
- await (0, utils_2.exec)(`rm ${fileToRemove}`);
82
+ await (0, utils_js_2.exec)(`rm ${fileToRemove}`);
81
83
  }
82
84
  }
83
85
  return retVal;
@@ -100,13 +102,13 @@ class Archlinux {
100
102
  */
101
103
  static async calamaresInstall(verbose = false) {
102
104
  verbose = true; // serve per pacman
103
- const echo = utils_1.default.setEcho(verbose);
104
- const cmd = `pacman -Sy --noconfirm ${(0, dependencies_1.array2spaced)(this.packs4calamares)}`;
105
+ const echo = utils_js_1.default.setEcho(verbose);
106
+ const cmd = `pacman -Sy --noconfirm ${(0, dependencies_js_1.array2spaced)(this.packs4calamares)}`;
105
107
  try {
106
- await (0, utils_2.exec)(cmd, echo);
108
+ await (0, utils_js_2.exec)(cmd, echo);
107
109
  }
108
110
  catch {
109
- utils_1.default.error(`Archlinux.calamaresInstall(): ${cmd}`); // + e.error)
111
+ utils_js_1.default.error(`Archlinux.calamaresInstall(): ${cmd}`); // + e.error)
110
112
  }
111
113
  }
112
114
  /**
@@ -114,19 +116,19 @@ class Archlinux {
114
116
  */
115
117
  static async calamaresPolicies() {
116
118
  const policyFile = '/usr/share/polkit-1/actions/com.github.calamares.calamares.policy';
117
- await (0, utils_2.exec)(`sed -i 's/auth_admin/yes/' ${policyFile}`);
119
+ await (0, utils_js_2.exec)(`sed -i 's/auth_admin/yes/' ${policyFile}`);
118
120
  }
119
121
  /**
120
122
  *
121
123
  */
122
124
  static async calamaresRemove(verbose = true) {
123
125
  verbose = true; // serve per pacman
124
- const echo = utils_1.default.setEcho(verbose);
126
+ const echo = utils_js_1.default.setEcho(verbose);
125
127
  const retVal = false;
126
128
  if (node_fs_1.default.existsSync('/etc/calamares')) {
127
- await (0, utils_2.exec)('rm /etc/calamares -rf', echo);
129
+ await (0, utils_js_2.exec)('rm /etc/calamares -rf', echo);
128
130
  }
129
- await (0, utils_2.exec)('yay -Rns calamares', echo);
131
+ await (0, utils_js_2.exec)('yay -Rns calamares', echo);
130
132
  return retVal;
131
133
  }
132
134
  /**