penguins-eggs 9.6.15 → 9.6.17

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/scripts/_eggs CHANGED
@@ -132,6 +132,7 @@ kill)
132
132
  _command_flags=(
133
133
  "--help[Show CLI help.]"
134
134
  "--nointeractive[no user interaction]"
135
+ "--isos[erase all ISOs on remote mount]"
135
136
  "--verbose[verbose]"
136
137
  )
137
138
  ;;
package/scripts/eggs.bash CHANGED
@@ -20,7 +20,7 @@ dad --clean --default --help --verbose
20
20
  export:deb --all --clean --help --verbose
21
21
  export:iso --clean --checksum --help --verbose
22
22
  install --crypted --custom --domain --halt --help --ip --nointeractive --none --pve --random --small --suspend --unattended --verbose
23
- kill --help --nointeractive --verbose
23
+ kill --help --nointeractive --isos --verbose
24
24
  mom --help
25
25
  produce --addons --basename --clone --cryptedclone --help --max --nointeractive --noicons --prefix --release --script --standard --theme --verbose --yolk
26
26
  status --help --verbose
@@ -1,39 +0,0 @@
1
- /**
2
- * penguins-eggs
3
- * lib: get_root_password.ts
4
- * author: Piero Proietti
5
- * email: piero.proietti@gmail.com
6
- * license: MIT
7
- */
8
- 'use strict';
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- const inquirer = require('inquirer');
11
- async function geRootPassword(initial) {
12
- const requireLetterAndNumber = (value) => {
13
- if (/\w/.test(value) && /\d/.test(value)) {
14
- return true;
15
- }
16
- };
17
- return new Promise(function (resolve) {
18
- const questions = [
19
- {
20
- type: 'password',
21
- message: 'Repeat password: ',
22
- name: 'password',
23
- default: initial,
24
- // validate: requireLetterAndNumber,
25
- },
26
- {
27
- type: 'password',
28
- message: 'Choose a password to keep your account safe: ',
29
- name: 'confirmPassword',
30
- default: initial,
31
- // validate: requireLetterAndNumber,
32
- },
33
- ];
34
- inquirer.prompt(questions).then(function (options) {
35
- resolve(options.password);
36
- });
37
- });
38
- }
39
- exports.default = geRootPassword;