penguins-eggs 9.0.25 → 9.0.31
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 +16 -16
- package/addons/telos/theme/applications/install-debian.desktop +28 -0
- package/addons/telos/theme/artwork/install-debian.png +0 -0
- package/addons/telos/theme/calamares/branding/banner.png +0 -0
- package/addons/telos/theme/calamares/branding/branding.desc +25 -0
- package/addons/telos/theme/calamares/branding/show.qml +51 -0
- package/addons/telos/theme/calamares/branding/slide1.png +0 -0
- package/addons/telos/theme/calamares/branding/telos-logo.png +0 -0
- package/addons/telos/theme/calamares/branding/welcome.png +0 -0
- package/addons/telos/theme/calamares/modules/partition.yml +233 -0
- package/addons/telos/theme/livecd/grub.theme.cfg +43 -0
- package/addons/telos/theme/livecd/isolinux.theme.cfg +45 -0
- package/addons/telos/theme/livecd/splash.png +0 -0
- package/conf/distros/buster/calamares/calamares-modules/sources-yolk/sources-yolk.sh +57 -38
- package/lib/classes/daddy.js +5 -5
- package/lib/classes/krill_install.d.ts +7 -1
- package/lib/classes/krill_install.js +258 -302
- package/lib/classes/krill_prepare.js +31 -12
- package/lib/classes/ovary.d.ts +28 -27
- package/lib/classes/ovary.js +309 -343
- package/lib/classes/systemctl.d.ts +36 -7
- package/lib/classes/systemctl.js +63 -28
- package/lib/classes/utils.d.ts +8 -0
- package/lib/classes/utils.js +44 -15
- package/lib/classes/yolk.d.ts +6 -5
- package/lib/classes/yolk.js +30 -29
- package/lib/commands/produce.js +2 -2
- package/lib/components/elements/information.js +17 -1
- package/lib/lib/select_installation_device.js +1 -0
- package/oclif.manifest.json +1 -1
- package/package.json +4 -4
- package/scripts/bros/waydroid-helper.sh +1 -1
- package/scripts/{not-used/install-eggs-ppa.sh → install-eggs-ppa.sh} +1 -0
- package/scripts/mom-cli.sh +1 -1
- package/scripts/pve-live.sh +2 -6
- package/scripts/not-used/eggs-cleanup.sh +0 -7
- package/scripts/not-used/mkinitramfs +0 -469
- package/scripts/update-initramfs +0 -94
|
@@ -7,11 +7,40 @@
|
|
|
7
7
|
* Presa da https://github.com/VolantisDev/node-systemctl
|
|
8
8
|
*/
|
|
9
9
|
export default class SistemdCtl {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
echo: {};
|
|
11
|
+
constructor(verbose?: boolean);
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
reload(service: string): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
disable(service: string, chroot?: string, report?: boolean): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
enable(service: string): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
restart(service: string): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
start(service: string): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
stop(service: string): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @param service
|
|
39
|
+
* @returns
|
|
40
|
+
*/
|
|
41
|
+
isActive(service: string): Promise<unknown>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
isEnabled(service: string): Promise<unknown>;
|
|
17
46
|
}
|
package/lib/classes/systemctl.js
CHANGED
|
@@ -8,47 +8,82 @@
|
|
|
8
8
|
* Presa da https://github.com/VolantisDev/node-systemctl
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
11
12
|
const utils_1 = require("../lib/utils");
|
|
13
|
+
const utils_2 = (0, tslib_1.__importDefault)(require("./utils"));
|
|
12
14
|
class SistemdCtl {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
constructor(verbose = false) {
|
|
16
|
+
this.echo = {};
|
|
17
|
+
this.echo = utils_2.default.setEcho(verbose);
|
|
15
18
|
}
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
async reload(service) {
|
|
23
|
+
await (0, utils_1.exec)(`systemctl reload ${service}`, this.echo);
|
|
18
24
|
}
|
|
19
|
-
|
|
20
|
-
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
async disable(service, chroot = '/', report = false) {
|
|
29
|
+
await (0, utils_1.exec)(`chroot ${chroot}} systemctl disable ${service}`, this.echo);
|
|
30
|
+
if (report) {
|
|
31
|
+
console.log(`systemctl: disabled ${service} on ${chroot}`);
|
|
32
|
+
}
|
|
21
33
|
}
|
|
22
|
-
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
async enable(service) {
|
|
38
|
+
await (0, utils_1.exec)(`systemctl enable ${service}`, this.echo);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
async restart(service) {
|
|
44
|
+
await (0, utils_1.exec)(`systemctl restart ${service}`, this.echo);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
async start(service) {
|
|
50
|
+
await (0, utils_1.exec)(`systemctl start ${service}`, this.echo);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
async stop(service) {
|
|
56
|
+
await (0, utils_1.exec)(`systemctl stop ${service}`, this.echo);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @param service
|
|
61
|
+
* @returns
|
|
62
|
+
*/
|
|
63
|
+
async isActive(service) {
|
|
23
64
|
return new Promise((resolve, reject) => {
|
|
24
|
-
|
|
65
|
+
(0, utils_1.exec)(`systemctl is-active ${service}`, this.echo)
|
|
25
66
|
.then((result) => {
|
|
26
|
-
resolve(result.data.includes('
|
|
67
|
+
resolve(!result.data.includes('inactive'));
|
|
27
68
|
})
|
|
28
69
|
.catch(function (error) {
|
|
29
70
|
resolve(false);
|
|
30
71
|
});
|
|
31
72
|
});
|
|
32
73
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
async isEnabled(service) {
|
|
78
|
+
return new Promise((resolve, reject) => {
|
|
79
|
+
(0, utils_1.exec)(`systemctl is-enabled ${service}`, this.echo)
|
|
80
|
+
.then((result) => {
|
|
81
|
+
resolve(result.data.includes('enabled'));
|
|
82
|
+
})
|
|
83
|
+
.catch(function (error) {
|
|
84
|
+
resolve(false);
|
|
85
|
+
});
|
|
86
|
+
});
|
|
41
87
|
}
|
|
42
88
|
}
|
|
43
89
|
exports.default = SistemdCtl;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
async function run(cmd, serviceName = '') {
|
|
48
|
-
let command = 'systemctl ' + cmd;
|
|
49
|
-
if (serviceName !== '') {
|
|
50
|
-
command = command + ' ' + serviceName;
|
|
51
|
-
}
|
|
52
|
-
console.log(command);
|
|
53
|
-
return (0, utils_1.exec)(command);
|
|
54
|
-
}
|
package/lib/classes/utils.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export default class Utils {
|
|
|
21
21
|
* ma viene avviato con init
|
|
22
22
|
*/
|
|
23
23
|
static isSystemd(): boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @returns
|
|
27
|
+
*/
|
|
24
28
|
static isSysvinit(): boolean;
|
|
25
29
|
/**
|
|
26
30
|
* ricava path per vmlinuz
|
|
@@ -258,6 +262,10 @@ export default class Utils {
|
|
|
258
262
|
* @param msg
|
|
259
263
|
*/
|
|
260
264
|
static customConfirmAbort(msg?: string): Promise<any>;
|
|
265
|
+
/**
|
|
266
|
+
*
|
|
267
|
+
*/
|
|
268
|
+
static pressKeyToExit(warming?: string, canContinue?: boolean): Promise<void>;
|
|
261
269
|
/**
|
|
262
270
|
* titles
|
|
263
271
|
* Penguin's are gettings alive!
|
package/lib/classes/utils.js
CHANGED
|
@@ -17,6 +17,7 @@ const pjson_1 = (0, tslib_1.__importDefault)(require("pjson"));
|
|
|
17
17
|
const inquirer_1 = (0, tslib_1.__importDefault)(require("inquirer"));
|
|
18
18
|
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
|
|
19
19
|
const pacman_1 = (0, tslib_1.__importDefault)(require("./pacman"));
|
|
20
|
+
const child_process_1 = require("child_process");
|
|
20
21
|
/**
|
|
21
22
|
* Utils: general porpourse utils
|
|
22
23
|
* @remarks all the utilities
|
|
@@ -38,31 +39,44 @@ class Utils {
|
|
|
38
39
|
* ma viene avviato con init
|
|
39
40
|
*/
|
|
40
41
|
static isSystemd() {
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
const checkFile = '/tmp/checksystemd';
|
|
43
|
+
shelljs_1.default.exec(`ps -p 1 -o comm= >${checkFile}`);
|
|
44
|
+
const isSystemd = fs_1.default.readFileSync(checkFile).includes('systemd');
|
|
45
|
+
shelljs_1.default.exec(`rm ${checkFile}`);
|
|
46
|
+
return isSystemd;
|
|
43
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @returns
|
|
51
|
+
*/
|
|
44
52
|
static isSysvinit() {
|
|
45
|
-
|
|
46
|
-
|
|
53
|
+
const checkFile = '/tmp/checkinit';
|
|
54
|
+
shelljs_1.default.exec(`ps -p 1 -o comm= >${checkFile}`);
|
|
55
|
+
const isSysvinit = fs_1.default.readFileSync(checkFile).includes('init');
|
|
56
|
+
shelljs_1.default.exec(`rm ${checkFile}`);
|
|
57
|
+
return isSysvinit;
|
|
47
58
|
}
|
|
48
59
|
/**
|
|
49
60
|
* ricava path per vmlinuz
|
|
50
61
|
* BOOT_IMAGE=(hd0,msdos1)/vmlinuz-5.15.6-200.fc35.x86_64 root=UUID=91cf614e-62a1-464c-904f-38d0a1ceb7a7 ro rootflags=subvol=root rhgb quiet
|
|
51
62
|
*/
|
|
52
63
|
static vmlinuz() {
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
if (
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
const cmdline = fs_1.default.readFileSync('/proc/cmdline', 'utf8');
|
|
65
|
+
// start = find BOOT_IMAGE
|
|
66
|
+
const start = cmdline.search('BOOT_IMAGE=/') + 11;
|
|
67
|
+
// end first space after
|
|
68
|
+
const end = cmdline.substring(start).indexOf(' ');
|
|
69
|
+
let vmlinux = cmdline.substring(start, start + end);
|
|
70
|
+
// btrfs
|
|
71
|
+
if (vmlinux.indexOf('@') > 0) {
|
|
72
|
+
vmlinux = vmlinux.substring(vmlinux.indexOf(' ') + 1);
|
|
73
|
+
}
|
|
74
|
+
if (!fs_1.default.existsSync(vmlinux)) {
|
|
75
|
+
if (fs_1.default.existsSync('/boot' + vmlinux)) {
|
|
76
|
+
vmlinux = '/boot' + vmlinux;
|
|
63
77
|
}
|
|
64
78
|
}
|
|
65
|
-
return
|
|
79
|
+
return vmlinux;
|
|
66
80
|
}
|
|
67
81
|
/**
|
|
68
82
|
* ricava path per initrdImg
|
|
@@ -685,6 +699,21 @@ class Utils {
|
|
|
685
699
|
});
|
|
686
700
|
});
|
|
687
701
|
}
|
|
702
|
+
/**
|
|
703
|
+
*
|
|
704
|
+
*/
|
|
705
|
+
static async pressKeyToExit(warming = 'Process will end', canContinue = true) {
|
|
706
|
+
Utils.warning(warming);
|
|
707
|
+
let msg = 'Press a key to exit...';
|
|
708
|
+
if (canContinue) {
|
|
709
|
+
msg = 'Press a key to continue...';
|
|
710
|
+
}
|
|
711
|
+
console.log(msg);
|
|
712
|
+
const pressKeyToExit = (0, child_process_1.spawnSync)('read _ ', { shell: true, stdio: [0, 1, 2] });
|
|
713
|
+
if (!canContinue) {
|
|
714
|
+
process.exit(0);
|
|
715
|
+
}
|
|
716
|
+
}
|
|
688
717
|
/**
|
|
689
718
|
* titles
|
|
690
719
|
* Penguin's are gettings alive!
|
package/lib/classes/yolk.d.ts
CHANGED
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
*
|
|
3
3
|
*/
|
|
4
4
|
export default class Yolk {
|
|
5
|
-
|
|
5
|
+
yolkDir: string;
|
|
6
|
+
verbose: boolean;
|
|
7
|
+
echo: {};
|
|
6
8
|
/**
|
|
7
9
|
*
|
|
8
|
-
* @param verbose
|
|
9
10
|
*/
|
|
10
11
|
create(verbose?: boolean): Promise<void>;
|
|
11
12
|
/**
|
|
12
13
|
* Svuota la repo yolk
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
+
yolkClean(): Promise<void>;
|
|
15
16
|
/**
|
|
16
|
-
*
|
|
17
|
+
* Check if yoil exists and it's a repo
|
|
17
18
|
*/
|
|
18
|
-
|
|
19
|
+
yolkExists(): boolean;
|
|
19
20
|
/**
|
|
20
21
|
*
|
|
21
22
|
* @param depends
|
package/lib/classes/yolk.js
CHANGED
|
@@ -10,7 +10,6 @@ const tslib_1 = require("tslib");
|
|
|
10
10
|
const fs_1 = (0, tslib_1.__importDefault)(require("fs"));
|
|
11
11
|
const utils_1 = (0, tslib_1.__importDefault)(require("./utils"));
|
|
12
12
|
const pacman_1 = (0, tslib_1.__importDefault)(require("./pacman"));
|
|
13
|
-
const child_process_1 = require("child_process");
|
|
14
13
|
const bleach_1 = (0, tslib_1.__importDefault)(require("./bleach"));
|
|
15
14
|
const utils_2 = require("../lib/utils");
|
|
16
15
|
/**
|
|
@@ -18,36 +17,35 @@ const utils_2 = require("../lib/utils");
|
|
|
18
17
|
*/
|
|
19
18
|
class Yolk {
|
|
20
19
|
constructor() {
|
|
21
|
-
this.
|
|
20
|
+
this.yolkDir = '/var/local/yolk';
|
|
21
|
+
this.verbose = false;
|
|
22
|
+
this.echo = {};
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
24
25
|
*
|
|
25
|
-
* @param verbose
|
|
26
26
|
*/
|
|
27
27
|
async create(verbose = false) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
*
|
|
31
|
-
* deb [trusted=yes] file:/var/local/yolk ./
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
28
|
+
this.verbose = verbose;
|
|
29
|
+
this.echo = utils_1.default.setEcho(verbose);
|
|
34
30
|
utils_1.default.warning('updating system...');
|
|
35
31
|
if (!pacman_1.default.commandIsInstalled('dpkg-scanpackages')) {
|
|
36
32
|
process.exit(0);
|
|
37
33
|
}
|
|
38
|
-
|
|
34
|
+
let cmd = '';
|
|
39
35
|
try {
|
|
40
|
-
|
|
36
|
+
cmd = 'apt-get update --yes';
|
|
37
|
+
await (0, utils_2.exec)(cmd, this.echo);
|
|
41
38
|
}
|
|
42
|
-
catch {
|
|
43
|
-
|
|
39
|
+
catch (error) {
|
|
40
|
+
console.log(error);
|
|
41
|
+
await utils_1.default.pressKeyToExit(cmd);
|
|
44
42
|
}
|
|
45
|
-
if (!this.
|
|
46
|
-
await (0, utils_2.exec)(`mkdir ${this.
|
|
47
|
-
await (0, utils_2.exec)(`chown _apt:root ${this.
|
|
43
|
+
if (!this.yolkExists()) {
|
|
44
|
+
await (0, utils_2.exec)(`mkdir ${this.yolkDir} -p`, this.echo);
|
|
45
|
+
await (0, utils_2.exec)(`chown _apt:root ${this.yolkDir} -R`, this.echo);
|
|
48
46
|
}
|
|
49
47
|
else {
|
|
50
|
-
this.
|
|
48
|
+
await this.yolkClean();
|
|
51
49
|
}
|
|
52
50
|
/**
|
|
53
51
|
* I pacchetti che servono per l'installazione sono solo questi
|
|
@@ -64,20 +62,18 @@ class Yolk {
|
|
|
64
62
|
packages.push('grub-efi-' + utils_1.default.machineArch() + '-bin');
|
|
65
63
|
}
|
|
66
64
|
// I Downloads avverranno nell directory corrente
|
|
67
|
-
process.chdir(this.
|
|
65
|
+
process.chdir(this.yolkDir);
|
|
68
66
|
// Per tutti i pacchetti cerca le dipendenze, controlla se non siano installate e le scarico.
|
|
69
67
|
for (const package_ of packages) {
|
|
70
|
-
let cmd = '';
|
|
71
68
|
utils_1.default.warning(`downloading package ${package_} and it's dependencies...`);
|
|
72
69
|
cmd = `apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances ${package_} | grep "^\\w" | sort -u`;
|
|
73
70
|
const depends = (await (0, utils_2.exec)(cmd, { echo: false, capture: true })).data;
|
|
74
71
|
await this.installDeps(depends.split('\n'));
|
|
75
72
|
}
|
|
76
73
|
// Creo Package.gz
|
|
77
|
-
|
|
78
|
-
const cmd = 'dpkg-scanpackages -h md5,sha1,sha256 . | gzip -c > Packages.gz';
|
|
74
|
+
cmd = 'dpkg-scanpackages -h md5,sha1,sha256 . | gzip -c > Packages.gz';
|
|
79
75
|
utils_1.default.warning(cmd);
|
|
80
|
-
await (0, utils_2.exec)(cmd);
|
|
76
|
+
await (0, utils_2.exec)(cmd, this.echo);
|
|
81
77
|
// Creo Release
|
|
82
78
|
const date = await (0, utils_2.exec)('date -R -u');
|
|
83
79
|
const content = 'Archive: stable\nComponent: yolk\nOrigin: penguins-eggs\nArchitecture: ' + utils_1.default.machineArch() + '\nDate: ' + date + '\n';
|
|
@@ -90,14 +86,14 @@ class Yolk {
|
|
|
90
86
|
/**
|
|
91
87
|
* Svuota la repo yolk
|
|
92
88
|
*/
|
|
93
|
-
|
|
94
|
-
(0,
|
|
89
|
+
async yolkClean() {
|
|
90
|
+
await (0, utils_2.exec)(`rm ${this.yolkDir}/*`, this.echo);
|
|
95
91
|
}
|
|
96
92
|
/**
|
|
97
|
-
*
|
|
93
|
+
* Check if yoil exists and it's a repo
|
|
98
94
|
*/
|
|
99
|
-
|
|
100
|
-
const check = `${this.
|
|
95
|
+
yolkExists() {
|
|
96
|
+
const check = `${this.yolkDir}/Packages.gz`;
|
|
101
97
|
return fs_1.default.existsSync(check);
|
|
102
98
|
}
|
|
103
99
|
/**
|
|
@@ -112,14 +108,19 @@ class Yolk {
|
|
|
112
108
|
if (!pacman_1.default.packageIsInstalled(depend)) {
|
|
113
109
|
toDownloads.push(depend);
|
|
114
110
|
}
|
|
111
|
+
else {
|
|
112
|
+
if (this.verbose) {
|
|
113
|
+
console.log(`eggs >>> already installed: ${depend}`);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
115
116
|
}
|
|
116
117
|
}
|
|
117
118
|
// e li vado a scaricare in /var/local/yolk
|
|
118
119
|
for (const toDownload of toDownloads) {
|
|
119
|
-
process.chdir(this.
|
|
120
|
+
process.chdir(this.yolkDir);
|
|
120
121
|
const cmd = `apt-get download ${toDownload}`;
|
|
121
122
|
utils_1.default.warning(`- ${cmd}`);
|
|
122
|
-
await (0, utils_2.exec)(cmd);
|
|
123
|
+
await (0, utils_2.exec)(cmd, this.echo);
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
126
|
}
|
package/lib/commands/produce.js
CHANGED
|
@@ -125,9 +125,9 @@ class Produce extends core_1.Command {
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
utils_1.default.titles(this.id + ' ' + this.argv);
|
|
128
|
-
const ovary = new ovary_1.default(
|
|
128
|
+
const ovary = new ovary_1.default();
|
|
129
129
|
utils_1.default.warning('Produce an egg...');
|
|
130
|
-
if (await ovary.fertilization()) {
|
|
130
|
+
if (await ovary.fertilization(prefix, basename, theme, compression)) {
|
|
131
131
|
await ovary.produce(backup, scriptOnly, yolkRenew, release, myAddons, verbose);
|
|
132
132
|
ovary.finished(scriptOnly);
|
|
133
133
|
}
|
|
@@ -104,6 +104,18 @@ async function information(verbose = false) {
|
|
|
104
104
|
(0, ink_1.render)(react_1.default.createElement(CLI, null));
|
|
105
105
|
const GUI = () => (react_1.default.createElement(ink_1.Text, { backgroundColor: "green" }, "GUI"));
|
|
106
106
|
(0, ink_1.render)(react_1.default.createElement(GUI, null));
|
|
107
|
+
let initType = '';
|
|
108
|
+
if (utils_1.default.isSysvinit()) {
|
|
109
|
+
initType = 'sysvinit';
|
|
110
|
+
}
|
|
111
|
+
if (utils_1.default.isSystemd()) {
|
|
112
|
+
if (initType === 'sysvinit') {
|
|
113
|
+
initType += '/';
|
|
114
|
+
}
|
|
115
|
+
initType = 'systemd';
|
|
116
|
+
}
|
|
117
|
+
const sysvinit = utils_1.default.isSysvinit();
|
|
118
|
+
const systemd = utils_1.default.isSystemd();
|
|
107
119
|
const Checks = () => (react_1.default.createElement(ink_1.Box, { borderStyle: "round", marginRight: 2, flexDirection: "row" },
|
|
108
120
|
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
109
121
|
react_1.default.createElement(ink_1.Text, null,
|
|
@@ -120,7 +132,11 @@ async function information(verbose = false) {
|
|
|
120
132
|
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
121
133
|
react_1.default.createElement(ink_1.Text, null,
|
|
122
134
|
"uefi: ",
|
|
123
|
-
uefi ? react_1.default.createElement(Ok, null) : react_1.default.createElement(Ko, null)))
|
|
135
|
+
uefi ? react_1.default.createElement(Ok, null) : react_1.default.createElement(Ko, null))),
|
|
136
|
+
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
137
|
+
react_1.default.createElement(ink_1.Text, null,
|
|
138
|
+
"init: ",
|
|
139
|
+
react_1.default.createElement(ink_1.Text, { color: "cyan" }, initType)))));
|
|
124
140
|
(0, ink_1.render)(react_1.default.createElement(Checks, null));
|
|
125
141
|
const Presentation = () => (react_1.default.createElement(react_1.default.Fragment, null,
|
|
126
142
|
react_1.default.createElement(ink_1.Box, null,
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"9.0.25","commands":{"adapt":{"id":"adapt","description":"adapt monitor resolution for VM only","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":["adjust"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"analyze":{"id":"analyze","description":"analyze situation","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":[]},"bro":{"id":"bro","description":"bro: waydroid helper","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"calamares":{"id":"calamares","description":"calamares or install or configure it","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"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"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"install":{"name":"install","type":"boolean","char":"i","description":"install calamares and it's dependencies","allowNo":false},"final":{"name":"final","type":"boolean","char":"f","description":"final: remove calamares and all it's dependencies after the installation","allowNo":false},"remove":{"name":"remove","type":"boolean","char":"r","description":"remove calamares and it's dependencies","allowNo":false},"theme":{"name":"theme","type":"option","description":"theme/branding for eggs and calamares","multiple":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":["prerequisites"],"examples":["~$ sudo eggs config\nConfigure and install prerequisites deb packages to run it"],"flags":{"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"assume yes","allowNo":false},"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},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[]},"dad":{"id":"dad","description":"ask help from daddy - configuration helper","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"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},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[]},"info":{"id":"info","description":"re-thinking for a different approach to CLI","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"install":{"id":"install","description":"command-line system installer - the egg became a penguin!","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":["hatch","krill"],"examples":["$ eggs install\nInstall the system using GUI or CLI installer\n"],"flags":{"cli":{"name":"cli","type":"boolean","char":"c","description":"force use CLI installer","allowNo":false},"crypted":{"name":"crypted","type":"boolean","char":"k","description":"crypted CLI installation","allowNo":false},"pve":{"name":"pve","type":"boolean","char":"p","description":"Proxmox VE install","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":[]},"kill":{"id":"kill","description":"kill the eggs/free the nest","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["$ eggs kill\nkill the eggs/free the nest"],"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":[]},"mom":{"id":"mom","description":"ask for mommy - gui helper","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"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":["spawn","lay"],"examples":["$ sudo eggs produce \nproduce an ISO called [hostname]-[arch]-YYYY-MM-DD_HHMM.iso, compressed xz (standard compression).\nIf hostname=ugo and arch=i386 ugo-x86-2020-08-25_1215.iso\n","$ sudo eggs produce -v\nsame as previuos, but with --verbose output\n","$ sudo eggs produce -vf\nsame as previuos, compression zstd, lz4 or gzip (depend from system capability)\n","$ sudo eggs produce -vm\nsame as previuos, compression xz -Xbcj x86 (max compression, about 10%\nmore compressed)\n","$ sudo eggs produce -vf --basename leo --theme debian --addons adapt \nproduce an ISO called leo-i386-2020-08-25_1215.iso compression fast,\nusing Debian theme and link to adapt\n","$ sudo eggs produce -v --basename leo --theme debian --addons rsupport \nproduce an ISO called leo-i386-2020-08-25_1215.iso compression xz,\nusing Debian theme and link to dwagent\n","$ sudo eggs produce -v --basename leo --rsupport \nproduce an ISO called leo-i386-2020-08-25_1215.iso compression xz, using eggs\ntheme and link to dwagent\n","$ sudo eggs produce -vs --basename leo --rsupport \nproduce scripts to build an ISO as the previus example. Scripts can be found\nin /home/eggs/ovarium and you can customize all you need\n"],"flags":{"prefix":{"name":"prefix","type":"option","char":"p","description":"prefix","multiple":false},"basename":{"name":"basename","type":"option","description":"basename","multiple":false},"backup":{"name":"backup","type":"boolean","char":"b","description":"backup mode","allowNo":false},"fast":{"name":"fast","type":"boolean","char":"f","description":"fast compression","allowNo":false},"normal":{"name":"normal","type":"boolean","char":"n","description":"normal compression","allowNo":false},"max":{"name":"max","type":"boolean","char":"m","description":"max compression","allowNo":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},"script":{"name":"script","type":"boolean","char":"s","description":"script mode. Generate scripts to manage iso build","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"theme":{"name":"theme","type":"option","description":"theme for livecd, calamares branding and partitions","multiple":false},"addons":{"name":"addons","type":"option","description":"addons to be used: adapt, ichoice, pve, rsupport","multiple":true},"release":{"name":"release","type":"boolean","description":"release: configure GUI installer to remove eggs and calamares after installation","allowNo":false}},"args":[]},"remove":{"id":"remove","description":"remove eggs and others stuff","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["$ sudo eggs remove \nremove eggs\n","$ sudo eggs remove --purge \nremove eggs, eggs configurations, configuration's files\n","$ sudo eggs remove --autoremove \nremove eggs, eggs configurations, packages dependencies\n"],"flags":{"purge":{"name":"purge","type":"boolean","char":"p","description":"remove eggs configurations files","allowNo":false},"autoremove":{"name":"autoremove","type":"boolean","char":"a","description":"remove eggs packages dependencies","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":[]},"syncfrom":{"id":"syncfrom","description":"Restore users, server and datas from luks-eggs-backup","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":["restore"],"examples":["$ sudo eggs restore"],"flags":{"file":{"name":"file","type":"option","char":"f","description":"file with LUKS volume encrypted","multiple":false},"rootdir":{"name":"rootdir","type":"option","char":"r","description":"rootdir of the installed system, when used from live","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":[]},"syncto":{"id":"syncto","description":"Backup users, server and datas to luks-eggs-backup","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":["backup"],"examples":["$ sudo eggs restore"],"flags":{"krill":{"name":"krill","type":"boolean","char":"k","description":"krill","allowNo":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\nupdate/upgrade the penguin's eggs tool"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"apt":{"name":"apt","type":"boolean","char":"a","description":"if eggs package is .deb, update from distro repositories","allowNo":false},"basket":{"name":"basket","type":"boolean","char":"b","description":"if eggs package is .deb, update from eggs basket","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":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"clean":{"name":"clean","type":"boolean","char":"c","description":"remove old .deb before to copy","allowNo":false},"amd64":{"name":"amd64","type":"boolean","description":"export amd64 arch","allowNo":false},"i386":{"name":"i386","type":"boolean","description":"export i386 arch","allowNo":false},"armel":{"name":"armel","type":"boolean","description":"export armel arch","allowNo":false},"arm64":{"name":"arm64","type":"boolean","description":"export arm64 arch","allowNo":false},"all":{"name":"all","type":"boolean","char":"a","description":"export all archs","allowNo":false}},"args":[]},"export:docs":{"id":"export:docs","description":"remove and export docType documentation of the sources in the destination host","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","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":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"backup":{"name":"backup","type":"boolean","char":"b","description":"export backup ISOs","allowNo":false},"clean":{"name":"clean","type":"boolean","char":"c","description":"delete old ISOs before to copy","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":["clean"],"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":[]},"tools:locales":{"id":"tools:locales","description":"install/clean locales","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"reinstall":{"name":"reinstall","type":"boolean","char":"r","description":"reinstall locales","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":["skel"],"examples":["$ eggs skel --user mauro\ndesktop configuration of user mauro will get used as default"],"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":["stat"],"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":["$ eggs yolk -v"],"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"}}}
|
|
1
|
+
{"version":"9.0.31","commands":{"adapt":{"id":"adapt","description":"adapt monitor resolution for VM only","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":["adjust"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[],"_globalFlags":{}},"analyze":{"id":"analyze","description":"analyze situation","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":[],"_globalFlags":{}},"bro":{"id":"bro","description":"bro: waydroid helper","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[],"_globalFlags":{}},"calamares":{"id":"calamares","description":"calamares or install or configure it","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"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"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"install":{"name":"install","type":"boolean","char":"i","description":"install calamares and it's dependencies","allowNo":false},"final":{"name":"final","type":"boolean","char":"f","description":"final: remove calamares and all it's dependencies after the installation","allowNo":false},"remove":{"name":"remove","type":"boolean","char":"r","description":"remove calamares and it's dependencies","allowNo":false},"theme":{"name":"theme","type":"option","description":"theme/branding for eggs and calamares","multiple":false}},"args":[],"_globalFlags":{}},"config":{"id":"config","description":"Configure and install prerequisites deb packages to run it","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":["prerequisites"],"examples":["~$ sudo eggs config\nConfigure and install prerequisites deb packages to run it"],"flags":{"nointeractive":{"name":"nointeractive","type":"boolean","char":"n","description":"assume yes","allowNo":false},"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},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[],"_globalFlags":{}},"dad":{"id":"dad","description":"ask help from daddy - configuration helper","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"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},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[],"_globalFlags":{}},"info":{"id":"info","description":"re-thinking for a different approach to CLI","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[],"_globalFlags":{}},"install":{"id":"install","description":"command-line system installer - the egg became a penguin!","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":["hatch","krill"],"examples":["$ eggs install\nInstall the system using GUI or CLI installer\n"],"flags":{"cli":{"name":"cli","type":"boolean","char":"c","description":"force use CLI installer","allowNo":false},"crypted":{"name":"crypted","type":"boolean","char":"k","description":"crypted CLI installation","allowNo":false},"pve":{"name":"pve","type":"boolean","char":"p","description":"Proxmox VE install","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":[],"_globalFlags":{}},"kill":{"id":"kill","description":"kill the eggs/free the nest","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["$ eggs kill\nkill the eggs/free the nest"],"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":[],"_globalFlags":{}},"mom":{"id":"mom","description":"ask for mommy - gui helper","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[],"_globalFlags":{}},"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":["spawn","lay"],"examples":["$ sudo eggs produce \nproduce an ISO called [hostname]-[arch]-YYYY-MM-DD_HHMM.iso, compressed xz (standard compression).\nIf hostname=ugo and arch=i386 ugo-x86-2020-08-25_1215.iso\n","$ sudo eggs produce -v\nsame as previuos, but with --verbose output\n","$ sudo eggs produce -vf\nsame as previuos, compression zstd, lz4 or gzip (depend from system capability)\n","$ sudo eggs produce -vm\nsame as previuos, compression xz -Xbcj x86 (max compression, about 10%\nmore compressed)\n","$ sudo eggs produce -vf --basename leo --theme debian --addons adapt \nproduce an ISO called leo-i386-2020-08-25_1215.iso compression fast,\nusing Debian theme and link to adapt\n","$ sudo eggs produce -v --basename leo --theme debian --addons rsupport \nproduce an ISO called leo-i386-2020-08-25_1215.iso compression xz,\nusing Debian theme and link to dwagent\n","$ sudo eggs produce -v --basename leo --rsupport \nproduce an ISO called leo-i386-2020-08-25_1215.iso compression xz, using eggs\ntheme and link to dwagent\n","$ sudo eggs produce -vs --basename leo --rsupport \nproduce scripts to build an ISO as the previus example. Scripts can be found\nin /home/eggs/ovarium and you can customize all you need\n"],"flags":{"prefix":{"name":"prefix","type":"option","char":"p","description":"prefix","multiple":false},"basename":{"name":"basename","type":"option","description":"basename","multiple":false},"backup":{"name":"backup","type":"boolean","char":"b","description":"backup mode","allowNo":false},"fast":{"name":"fast","type":"boolean","char":"f","description":"fast compression","allowNo":false},"normal":{"name":"normal","type":"boolean","char":"n","description":"normal compression","allowNo":false},"max":{"name":"max","type":"boolean","char":"m","description":"max compression","allowNo":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},"script":{"name":"script","type":"boolean","char":"s","description":"script mode. Generate scripts to manage iso build","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"theme":{"name":"theme","type":"option","description":"theme for livecd, calamares branding and partitions","multiple":false},"addons":{"name":"addons","type":"option","description":"addons to be used: adapt, ichoice, pve, rsupport","multiple":true},"release":{"name":"release","type":"boolean","description":"release: configure GUI installer to remove eggs and calamares after installation","allowNo":false}},"args":[],"_globalFlags":{}},"remove":{"id":"remove","description":"remove eggs and others stuff","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["$ sudo eggs remove \nremove eggs\n","$ sudo eggs remove --purge \nremove eggs, eggs configurations, configuration's files\n","$ sudo eggs remove --autoremove \nremove eggs, eggs configurations, packages dependencies\n"],"flags":{"purge":{"name":"purge","type":"boolean","char":"p","description":"remove eggs configurations files","allowNo":false},"autoremove":{"name":"autoremove","type":"boolean","char":"a","description":"remove eggs packages dependencies","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":[],"_globalFlags":{}},"syncfrom":{"id":"syncfrom","description":"Restore users, server and datas from luks-eggs-backup","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":["restore"],"examples":["$ sudo eggs restore"],"flags":{"file":{"name":"file","type":"option","char":"f","description":"file with LUKS volume encrypted","multiple":false},"rootdir":{"name":"rootdir","type":"option","char":"r","description":"rootdir of the installed system, when used from live","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":[],"_globalFlags":{}},"syncto":{"id":"syncto","description":"Backup users, server and datas to luks-eggs-backup","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":["backup"],"examples":["$ sudo eggs restore"],"flags":{"krill":{"name":"krill","type":"boolean","char":"k","description":"krill","allowNo":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":[],"_globalFlags":{}},"update":{"id":"update","description":"update the penguin's eggs tool","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["$ eggs update\nupdate/upgrade the penguin's eggs tool"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"apt":{"name":"apt","type":"boolean","char":"a","description":"if eggs package is .deb, update from distro repositories","allowNo":false},"basket":{"name":"basket","type":"boolean","char":"b","description":"if eggs package is .deb, update from eggs basket","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[],"_globalFlags":{}},"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":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"clean":{"name":"clean","type":"boolean","char":"c","description":"remove old .deb before to copy","allowNo":false},"amd64":{"name":"amd64","type":"boolean","description":"export amd64 arch","allowNo":false},"i386":{"name":"i386","type":"boolean","description":"export i386 arch","allowNo":false},"armel":{"name":"armel","type":"boolean","description":"export armel arch","allowNo":false},"arm64":{"name":"arm64","type":"boolean","description":"export arm64 arch","allowNo":false},"all":{"name":"all","type":"boolean","char":"a","description":"export all archs","allowNo":false}},"args":[],"_globalFlags":{}},"export:docs":{"id":"export:docs","description":"remove and export docType documentation of the sources in the destination host","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[],"_globalFlags":{}},"export:iso":{"id":"export:iso","description":"export iso in the destination host","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"backup":{"name":"backup","type":"boolean","char":"b","description":"export backup ISOs","allowNo":false},"clean":{"name":"clean","type":"boolean","char":"c","description":"delete old ISOs before to copy","allowNo":false}},"args":[],"_globalFlags":{}},"tools:clean":{"id":"tools:clean","description":"clean system log, apt, etc","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":["clean"],"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":[],"_globalFlags":{}},"tools:locales":{"id":"tools:locales","description":"install/clean locales","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"reinstall":{"name":"reinstall","type":"boolean","char":"r","description":"reinstall locales","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose","allowNo":false}},"args":[],"_globalFlags":{}},"tools:skel":{"id":"tools:skel","description":"update skel from home configuration","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":["skel"],"examples":["$ eggs skel --user mauro\ndesktop configuration of user mauro will get used as default"],"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":[],"_globalFlags":{}},"tools:stat":{"id":"tools:stat","description":"get statistics from sourceforge","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":["stat"],"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":[],"_globalFlags":{}},"tools:yolk":{"id":"tools:yolk","description":"configure eggs to install without internet","strict":true,"pluginName":"penguins-eggs","pluginAlias":"penguins-eggs","pluginType":"core","aliases":[],"examples":["$ eggs yolk -v"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","allowNo":false}},"args":[],"_globalFlags":{},"dir":"/var/local/yolk"}}}
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "penguins-eggs",
|
|
3
3
|
"description": "Perri's Brewery edition: remaster your system and distribuite it",
|
|
4
|
-
"version": "9.0.
|
|
4
|
+
"version": "9.0.31",
|
|
5
5
|
"author": "Piero Proietti @pieroproietti",
|
|
6
6
|
"bin": {
|
|
7
7
|
"eggs": "bin/run"
|
|
8
8
|
},
|
|
9
9
|
"bugs": "https://github.com/pieroproietti/penguins-eggs/issues",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@oclif/core": "github:pieroproietti/core#oclif-main",
|
|
12
11
|
"@oclif/plugin-autocomplete": "^1.2.0",
|
|
13
12
|
"@oclif/plugin-help": "^5.1.11",
|
|
14
13
|
"@oclif/plugin-not-found": "^2.3.1",
|
|
@@ -22,6 +21,7 @@
|
|
|
22
21
|
"inquirer": "^8.2.0",
|
|
23
22
|
"js-yaml": "^4.1.0",
|
|
24
23
|
"mustache": "^4.2.0",
|
|
24
|
+
"oclif": "github:pieroproietti/oclif",
|
|
25
25
|
"npm": "^8.5.1",
|
|
26
26
|
"pjson": "github:pieroproietti/pjson",
|
|
27
27
|
"react": "^17.0.2",
|
|
@@ -29,8 +29,9 @@
|
|
|
29
29
|
"tslib": "^2.3.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@oclif/
|
|
32
|
+
"@oclif/core": "^1.5.0",
|
|
33
33
|
"@types/chai": "^4.3.0",
|
|
34
|
+
"@oclif/test": "^2.1.0",
|
|
34
35
|
"@types/ink-big-text": "^1.2.1",
|
|
35
36
|
"@types/ink-gradient": "^2.0.1",
|
|
36
37
|
"@types/inquirer": "^8.2.0",
|
|
@@ -47,7 +48,6 @@
|
|
|
47
48
|
"globby": "^11.0.1",
|
|
48
49
|
"mocha": "^9.2.0",
|
|
49
50
|
"nyc": "^15.1.0",
|
|
50
|
-
"oclif": "github:pieroproietti/oclif",
|
|
51
51
|
"perrisbrewery": "github:pieroproietti/perrisbrewery",
|
|
52
52
|
"prettier": "^2.5.1",
|
|
53
53
|
"shx": "^0.3.4",
|