penguins-eggs 9.0.35 → 9.1.11
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 +136 -71
- package/assets/leaves.svg +1 -0
- package/assets/live-installer/com.github.pieroproietti.penguins-eggs.policy +25 -0
- package/assets/live-installer/filesystem.packages-remove +49 -0
- package/assets/penguins-live-installer.desktop +27 -0
- package/conf/distros/buster/calamares/modules/bootloader.yml +3 -1
- package/conf/eggs.yaml +9 -2
- package/lib/classes/bleach.js +2 -2
- package/lib/classes/compressors.js +1 -1
- package/lib/classes/daddy.js +28 -28
- package/lib/classes/distro.d.ts +1 -1
- package/lib/classes/distro.js +18 -4
- package/lib/classes/family/archlinux.js +4 -4
- package/lib/classes/family/debian.d.ts +4 -0
- package/lib/classes/family/debian.js +11 -4
- package/lib/classes/family/fedora.js +4 -4
- package/lib/classes/family/suse.js +4 -4
- package/lib/classes/i18n.d.ts +28 -4
- package/lib/classes/i18n.js +112 -84
- package/lib/classes/incubation/branding.js +13 -7
- package/lib/classes/incubation/distros/bionic.js +1 -1
- package/lib/classes/incubation/distros/buster.js +1 -1
- package/lib/classes/incubation/distros/focal.js +1 -1
- package/lib/classes/incubation/distros/jessie.js +1 -1
- package/lib/classes/incubation/distros/rolling.js +1 -1
- package/lib/classes/incubation/fisherman-helper/displaymanager.js +1 -1
- package/lib/classes/incubation/fisherman-helper/packages.js +1 -1
- package/lib/classes/incubation/fisherman.js +5 -5
- package/lib/classes/incubation/incubator.js +4 -4
- package/lib/classes/incubation/installer.js +2 -2
- package/lib/classes/initrd.js +2 -2
- package/lib/classes/keyboards.d.ts +45 -0
- package/lib/classes/keyboards.js +196 -0
- package/lib/classes/krill_install.d.ts +4 -0
- package/lib/classes/krill_install.js +28 -10
- package/lib/classes/krill_prepare.d.ts +4 -0
- package/lib/classes/krill_prepare.js +56 -77
- package/lib/classes/locales.d.ts +14 -0
- package/lib/classes/locales.js +54 -0
- package/lib/classes/n8.js +1 -1
- package/lib/classes/ovary.d.ts +6 -0
- package/lib/classes/ovary.js +38 -24
- package/lib/classes/pacman.js +19 -19
- package/lib/classes/pve-live.js +3 -3
- package/lib/classes/settings.d.ts +6 -0
- package/lib/classes/settings.js +13 -16
- package/lib/classes/sources_list.d.ts +27 -0
- package/lib/classes/sources_list.js +103 -0
- package/lib/classes/systemctl.js +1 -1
- package/lib/classes/tailor.d.ts +41 -0
- package/lib/classes/tailor.js +356 -0
- package/lib/classes/tools.js +4 -4
- package/lib/classes/users.js +1 -1
- package/lib/classes/utils.d.ts +10 -0
- package/lib/classes/utils.js +39 -19
- package/lib/classes/xdg.d.ts +2 -1
- package/lib/classes/xdg.js +52 -111
- package/lib/classes/yolk.js +5 -5
- package/lib/commands/adapt.d.ts +0 -1
- package/lib/commands/adapt.js +2 -2
- package/lib/commands/analyze.js +6 -3
- package/lib/commands/calamares.js +4 -4
- package/lib/commands/config.d.ts +0 -1
- package/lib/commands/config.js +12 -7
- package/lib/commands/dad.js +5 -2
- package/lib/commands/export/deb.js +2 -2
- package/lib/commands/export/docs.js +2 -2
- package/lib/commands/export/iso.js +2 -2
- package/lib/commands/info.js +2 -2
- package/lib/commands/install.d.ts +0 -1
- package/lib/commands/install.js +11 -8
- package/lib/commands/kill.js +6 -3
- package/lib/commands/mom.js +2 -2
- package/lib/commands/produce.d.ts +0 -1
- package/lib/commands/produce.js +13 -10
- package/lib/commands/remove.js +5 -2
- package/lib/commands/syncfrom.d.ts +0 -1
- package/lib/commands/syncfrom.js +6 -3
- package/lib/commands/syncto.d.ts +0 -1
- package/lib/commands/syncto.js +7 -4
- package/lib/commands/tools/clean.d.ts +0 -1
- package/lib/commands/tools/clean.js +11 -6
- package/lib/commands/tools/locales.js +12 -4
- package/lib/commands/tools/skel.d.ts +0 -1
- package/lib/commands/tools/skel.js +6 -3
- package/lib/commands/tools/stat.d.ts +0 -1
- package/lib/commands/tools/stat.js +4 -4
- package/lib/commands/tools/yolk.js +7 -4
- package/lib/commands/update.d.ts +0 -2
- package/lib/commands/update.js +12 -58
- package/lib/commands/wardrobe/get.d.ts +17 -0
- package/lib/commands/wardrobe/get.js +43 -0
- package/lib/commands/wardrobe/ironing.d.ts +15 -0
- package/lib/commands/wardrobe/ironing.js +125 -0
- package/lib/commands/wardrobe/list.d.ts +17 -0
- package/lib/commands/wardrobe/list.js +81 -0
- package/lib/commands/wardrobe/show.d.ts +19 -0
- package/lib/commands/wardrobe/show.js +71 -0
- package/lib/commands/wardrobe/wear.d.ts +20 -0
- package/lib/commands/wardrobe/wear.js +79 -0
- package/lib/components/elements/information.js +29 -25
- package/lib/components/elements/steps.js +1 -1
- package/lib/components/elements/title.js +5 -4
- package/lib/components/finished.js +6 -5
- package/lib/components/install.js +5 -5
- package/lib/components/keyboard.js +5 -8
- package/lib/components/location.js +5 -5
- package/lib/components/network.js +6 -5
- package/lib/components/partitions.js +5 -5
- package/lib/components/summary.js +5 -5
- package/lib/components/users.js +5 -5
- package/lib/components/welcome.js +7 -7
- package/lib/interfaces/i-costume.d.ts +27 -0
- package/lib/interfaces/i-costume.js +2 -0
- package/lib/interfaces/i-krill.d.ts +1 -0
- package/lib/interfaces/i-materia.d.ts +32 -0
- package/lib/interfaces/i-materia.js +2 -0
- package/lib/interfaces/i-packages.d.ts +13 -0
- package/lib/interfaces/i-packages.js +2 -0
- package/lib/interfaces/i-xkb-model.d.ts +17 -0
- package/lib/interfaces/i-xkb-model.js +2 -0
- package/lib/interfaces/index.d.ts +2 -0
- package/lib/lib/cli-autologin.js +3 -3
- package/lib/lib/select_address_type.js +1 -1
- package/lib/lib/select_filesystem_type.js +2 -2
- package/lib/lib/select_installation_device.js +1 -1
- package/lib/lib/select_interface.js +1 -1
- package/lib/lib/select_keyboard_layout.d.ts +1 -28
- package/lib/lib/select_keyboard_layout.js +18 -33
- package/lib/lib/select_keyboard_model.d.ts +4 -0
- package/lib/lib/select_keyboard_model.js +36 -0
- package/lib/lib/select_keyboard_option.d.ts +4 -0
- package/lib/lib/select_keyboard_option.js +36 -0
- package/lib/lib/select_keyboard_variant.d.ts +1 -5
- package/lib/lib/select_keyboard_variant.js +32 -5
- package/lib/lib/select_languages.d.ts +1 -1
- package/lib/lib/select_languages.js +8 -7
- package/lib/lib/select_regions.d.ts +1 -1
- package/lib/lib/select_regions.js +2 -2
- package/lib/lib/select_user_swap_choice.js +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +19 -20
- package/scripts/_eggs +54 -16
- package/scripts/eggs.bash +9 -5
- package/scripts/mom-cli.sh +66 -0
- package/scripts/resy.sh +8 -0
- package/assets/penguins-clinstaller.desktop +0 -24
- package/assets/penguins-minstall.desktop +0 -95
- package/conf/distros/buster/locales/locale.gen.template +0 -10
- package/conf/distros/buster/locales/locale.template +0 -11
- package/conf/distros/focal/locale.gen.template +0 -8
- package/lib/classes/basket.d.ts +0 -22
- package/lib/classes/basket.js +0 -114
- package/lib/commands/bro.d.ts +0 -14
- package/lib/commands/bro.js +0 -31
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const utils_1 = tslib_1.__importDefault(require("../../classes/utils"));
|
|
6
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
7
|
+
const js_yaml_1 = tslib_1.__importDefault(require("js-yaml"));
|
|
8
|
+
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
9
|
+
// libraries
|
|
10
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
class List extends core_1.Command {
|
|
15
|
+
async run() {
|
|
16
|
+
const { args, flags } = await this.parse(List);
|
|
17
|
+
let verbose = false;
|
|
18
|
+
if (flags.verbose) {
|
|
19
|
+
verbose = true;
|
|
20
|
+
}
|
|
21
|
+
const echo = utils_1.default.setEcho(verbose);
|
|
22
|
+
utils_1.default.titles(this.id + ' ' + this.argv);
|
|
23
|
+
/**
|
|
24
|
+
* wardobe
|
|
25
|
+
*/
|
|
26
|
+
let wardrobe = await utils_1.default.wardrobe();
|
|
27
|
+
if (this.argv['0'] !== undefined) {
|
|
28
|
+
wardrobe = this.argv['0'];
|
|
29
|
+
}
|
|
30
|
+
wardrobe = `${path_1.default.resolve(process.cwd(), wardrobe)}/`;
|
|
31
|
+
if (!fs_1.default.existsSync(wardrobe)) {
|
|
32
|
+
utils_1.default.warning(`wardrobe: ${wardrobe} not found!`);
|
|
33
|
+
process.exit();
|
|
34
|
+
}
|
|
35
|
+
console.log(chalk_1.default.green(`wardrobe: `) + wardrobe);
|
|
36
|
+
console.log();
|
|
37
|
+
/**
|
|
38
|
+
* costumes
|
|
39
|
+
*/
|
|
40
|
+
const costumes = fs_1.default.readdirSync(`${wardrobe}costumes/`);
|
|
41
|
+
console.log(chalk_1.default.green(`costumes: `));
|
|
42
|
+
costumes.forEach(costume => {
|
|
43
|
+
if (fs_1.default.existsSync(`${wardrobe}costumes/${costume}/index.yml`)) {
|
|
44
|
+
const materials = js_yaml_1.default.load(fs_1.default.readFileSync(`${wardrobe}costumes/${costume}/index.yml`, 'utf-8'));
|
|
45
|
+
console.log(chalk_1.default.cyan(costume) + ': ' + materials.description);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
console.log();
|
|
49
|
+
/**
|
|
50
|
+
* accessories
|
|
51
|
+
*/
|
|
52
|
+
const accessories = fs_1.default.readdirSync(`${wardrobe}/accessories/`);
|
|
53
|
+
console.log(chalk_1.default.green(`accessories: `));
|
|
54
|
+
accessories.forEach(accessory => {
|
|
55
|
+
if (fs_1.default.existsSync(`${wardrobe}/accessories/${accessory}/index.yml`)) {
|
|
56
|
+
const materials = js_yaml_1.default.load(fs_1.default.readFileSync(`${wardrobe}/accessories/${accessory}/index.yml`, 'utf-8'));
|
|
57
|
+
console.log(chalk_1.default.cyan(accessory) + ': ' + materials.description);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
console.log();
|
|
61
|
+
/**
|
|
62
|
+
* servers
|
|
63
|
+
*/
|
|
64
|
+
const servers = fs_1.default.readdirSync(`${wardrobe}/servers/`);
|
|
65
|
+
console.log(chalk_1.default.green(`servers: `));
|
|
66
|
+
servers.forEach(server => {
|
|
67
|
+
if (fs_1.default.existsSync(`${wardrobe}/servers/${server}/index.yml`)) {
|
|
68
|
+
const materials = js_yaml_1.default.load(fs_1.default.readFileSync(`${wardrobe}/servers/${server}/index.yml`, 'utf-8'));
|
|
69
|
+
console.log(chalk_1.default.cyan(server) + ': ' + materials.description);
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
console.log();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.default = List;
|
|
76
|
+
List.description = 'list costumes and accessoires in wardrobe';
|
|
77
|
+
List.args = [{ name: 'wardrobe', description: 'wardrobe', required: false }];
|
|
78
|
+
List.flags = {
|
|
79
|
+
verbose: core_1.Flags.boolean({ char: 'v' }),
|
|
80
|
+
help: core_1.Flags.help({ char: 'h' })
|
|
81
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export default class Show extends Command {
|
|
6
|
+
static description: string;
|
|
7
|
+
static args: {
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
required: boolean;
|
|
11
|
+
}[];
|
|
12
|
+
static flags: {
|
|
13
|
+
wardrobe: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
14
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
15
|
+
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
16
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
17
|
+
};
|
|
18
|
+
run(): Promise<void>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const utils_1 = tslib_1.__importDefault(require("../../classes/utils"));
|
|
6
|
+
const js_yaml_1 = tslib_1.__importDefault(require("js-yaml"));
|
|
7
|
+
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
8
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
9
|
+
// libraries
|
|
10
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
class Show extends core_1.Command {
|
|
15
|
+
async run() {
|
|
16
|
+
const { args, flags } = await this.parse(Show);
|
|
17
|
+
let verbose = flags.verbose;
|
|
18
|
+
let json = flags.json;
|
|
19
|
+
const echo = utils_1.default.setEcho(verbose);
|
|
20
|
+
utils_1.default.titles(this.id + ' ' + this.argv);
|
|
21
|
+
let wardrobe = await utils_1.default.wardrobe();
|
|
22
|
+
if (flags.wardrobe !== undefined) {
|
|
23
|
+
wardrobe = flags.wardrobe;
|
|
24
|
+
}
|
|
25
|
+
wardrobe = `${path_1.default.resolve(process.cwd(), wardrobe)}/`;
|
|
26
|
+
if (!fs_1.default.existsSync(wardrobe)) {
|
|
27
|
+
utils_1.default.warning(`wardrobe: ${wardrobe} not found!`);
|
|
28
|
+
process.exit();
|
|
29
|
+
}
|
|
30
|
+
console.log(chalk_1.default.green(`wardrobe: `) + wardrobe);
|
|
31
|
+
/**
|
|
32
|
+
* costume
|
|
33
|
+
*/
|
|
34
|
+
let costume = 'costumes/colibri';
|
|
35
|
+
if (this.argv['0'] !== undefined) {
|
|
36
|
+
costume = this.argv['0'];
|
|
37
|
+
if (costume.substring(0, 8) !== 'costumes' && costume.substring(0, 11) !== 'accessories' && costume.substring(0, 7) !== 'servers') {
|
|
38
|
+
costume = `costumes/${costume}`;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
costume = wardrobe + costume;
|
|
42
|
+
if (!fs_1.default.existsSync(costume)) {
|
|
43
|
+
console.log(`costume: ${chalk_1.default.green(path_1.default.basename(costume))} not found in wardrobe: ${chalk_1.default.green(wardrobe)}`);
|
|
44
|
+
process.exit();
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* tailorList
|
|
48
|
+
*/
|
|
49
|
+
let tailorList = `${costume}/index.yml`;
|
|
50
|
+
if (!fs_1.default.existsSync(tailorList)) {
|
|
51
|
+
utils_1.default.warning(`index.yml not found in : ${costume}!`);
|
|
52
|
+
process.exit();
|
|
53
|
+
}
|
|
54
|
+
const materials = js_yaml_1.default.load(fs_1.default.readFileSync(tailorList, 'utf-8'));
|
|
55
|
+
if (json) {
|
|
56
|
+
console.log(JSON.stringify(materials, null, ' '));
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
console.log(js_yaml_1.default.dump(materials));
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.default = Show;
|
|
64
|
+
Show.description = 'show costumes/accessories in wardrobe';
|
|
65
|
+
Show.args = [{ name: 'costume', description: 'costume', required: false }];
|
|
66
|
+
Show.flags = {
|
|
67
|
+
wardrobe: core_1.Flags.string({ char: 'w', description: 'wardrobe' }),
|
|
68
|
+
json: core_1.Flags.boolean({ char: 'j', description: 'output JSON' }),
|
|
69
|
+
verbose: core_1.Flags.boolean({ char: 'v' }),
|
|
70
|
+
help: core_1.Flags.help({ char: 'h' })
|
|
71
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export default class Wear extends Command {
|
|
6
|
+
static description: string;
|
|
7
|
+
static args: {
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
required: boolean;
|
|
11
|
+
}[];
|
|
12
|
+
static flags: {
|
|
13
|
+
wardrobe: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
14
|
+
no_accessories: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
15
|
+
silent: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
16
|
+
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
17
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
18
|
+
};
|
|
19
|
+
run(): Promise<void>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
|
+
const utils_1 = tslib_1.__importDefault(require("../../classes/utils"));
|
|
7
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
8
|
+
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
9
|
+
const tailor_1 = tslib_1.__importDefault(require("../../classes/tailor"));
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
class Wear extends core_1.Command {
|
|
14
|
+
async run() {
|
|
15
|
+
const { argv, flags } = await this.parse(Wear);
|
|
16
|
+
let verbose = flags.verbose;
|
|
17
|
+
utils_1.default.titles(this.id + ' ' + this.argv);
|
|
18
|
+
let no_accessories = false;
|
|
19
|
+
if (flags.no_accessories) {
|
|
20
|
+
no_accessories = true;
|
|
21
|
+
}
|
|
22
|
+
let wardrobe = await utils_1.default.wardrobe();
|
|
23
|
+
if (flags.wardrobe !== undefined) {
|
|
24
|
+
wardrobe = flags.wardrobe;
|
|
25
|
+
}
|
|
26
|
+
wardrobe = `${path_1.default.resolve(process.cwd(), wardrobe)}/`;
|
|
27
|
+
if (!fs_1.default.existsSync(wardrobe)) {
|
|
28
|
+
utils_1.default.warning(`wardrobe: ${wardrobe} not found!`);
|
|
29
|
+
process.exit();
|
|
30
|
+
}
|
|
31
|
+
console.log(chalk_1.default.green(`wardrobe: `) + wardrobe);
|
|
32
|
+
/**
|
|
33
|
+
* costume
|
|
34
|
+
*/
|
|
35
|
+
let costume = 'costumes/colibri';
|
|
36
|
+
if (this.argv['0'] !== undefined) {
|
|
37
|
+
costume = this.argv['0']; //12345678 12345678901 1234567
|
|
38
|
+
if (costume.substring(0, 8) !== 'costumes' && costume.substring(0, 11) !== 'accessories' && costume.substring(0, 7) !== 'servers') {
|
|
39
|
+
costume = `costumes/${costume}`;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
costume = wardrobe + costume;
|
|
43
|
+
console.log(costume);
|
|
44
|
+
if (!fs_1.default.existsSync(costume)) {
|
|
45
|
+
console.log(`costume: ${chalk_1.default.green(path_1.default.basename(costume))} not found in wardrobe: ${chalk_1.default.green(wardrobe)}`);
|
|
46
|
+
process.exit();
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* tailorList
|
|
50
|
+
*/
|
|
51
|
+
let tailorList = `${costume}/index.yml`;
|
|
52
|
+
if (!fs_1.default.existsSync(tailorList)) {
|
|
53
|
+
utils_1.default.warning(`index.yml not found in : ${costume}!`);
|
|
54
|
+
process.exit();
|
|
55
|
+
}
|
|
56
|
+
if (await utils_1.default.customConfirm(`Prepare your costume: ${costume}? Select yes to continue...`)) {
|
|
57
|
+
if (utils_1.default.isRoot()) {
|
|
58
|
+
const tailor = new tailor_1.default(costume);
|
|
59
|
+
await tailor.prepare(verbose, no_accessories);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
utils_1.default.useRoot(this.id);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
console.log('costume ' + chalk_1.default.cyan(costume) + ' not found in wardrobe: ' + chalk_1.default.green(wardrobe));
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.default = Wear;
|
|
71
|
+
Wear.description = 'wear costume/accessories from wardrobe';
|
|
72
|
+
Wear.args = [{ name: 'costume', description: 'costume', required: false }];
|
|
73
|
+
Wear.flags = {
|
|
74
|
+
wardrobe: core_1.Flags.string({ char: 'w', description: 'wardrobe' }),
|
|
75
|
+
no_accessories: core_1.Flags.boolean({ char: 'n', description: 'not install accessories' }),
|
|
76
|
+
silent: core_1.Flags.boolean({ char: 's' }),
|
|
77
|
+
verbose: core_1.Flags.boolean({ char: 'v' }),
|
|
78
|
+
help: core_1.Flags.help({ char: 'h' })
|
|
79
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const shelljs_1 =
|
|
5
|
-
const react_1 =
|
|
4
|
+
const shelljs_1 = tslib_1.__importDefault(require("shelljs"));
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const ink_1 = require("ink");
|
|
7
|
-
const settings_1 =
|
|
8
|
-
const pacman_1 =
|
|
9
|
-
const utils_1 =
|
|
10
|
-
const title_1 =
|
|
7
|
+
const settings_1 = tslib_1.__importDefault(require("../../classes/settings"));
|
|
8
|
+
const pacman_1 = tslib_1.__importDefault(require("../../classes/pacman"));
|
|
9
|
+
const utils_1 = tslib_1.__importDefault(require("../../classes/utils"));
|
|
10
|
+
const title_1 = tslib_1.__importDefault(require("./title"));
|
|
11
11
|
/**
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
@@ -16,6 +16,10 @@ async function information(verbose = false) {
|
|
|
16
16
|
console.clear();
|
|
17
17
|
const settings = new settings_1.default();
|
|
18
18
|
settings.load();
|
|
19
|
+
const Wait = () => (react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
20
|
+
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
21
|
+
react_1.default.createElement(ink_1.Text, null, " E G G S: the reproductive system of penguins"))));
|
|
22
|
+
(0, ink_1.render)(react_1.default.createElement(Wait, null));
|
|
19
23
|
/**
|
|
20
24
|
* nest
|
|
21
25
|
*/
|
|
@@ -34,7 +38,7 @@ async function information(verbose = false) {
|
|
|
34
38
|
react_1.default.createElement(ink_1.Text, null,
|
|
35
39
|
"ovarium: ",
|
|
36
40
|
react_1.default.createElement(ink_1.Text, { color: "cyan" }, settings.work_dir.path)))));
|
|
37
|
-
//render(<Nest />)
|
|
41
|
+
// render(<Nest />)
|
|
38
42
|
/**
|
|
39
43
|
* Boot
|
|
40
44
|
* @returns
|
|
@@ -48,7 +52,7 @@ async function information(verbose = false) {
|
|
|
48
52
|
react_1.default.createElement(ink_1.Text, null,
|
|
49
53
|
"initrd.img: ",
|
|
50
54
|
react_1.default.createElement(ink_1.Text, { color: "cyan" }, settings.initrd_image)))));
|
|
51
|
-
|
|
55
|
+
// render(<Boot />)
|
|
52
56
|
/**
|
|
53
57
|
* Live
|
|
54
58
|
*/
|
|
@@ -64,7 +68,7 @@ async function information(verbose = false) {
|
|
|
64
68
|
react_1.default.createElement(ink_1.Text, null,
|
|
65
69
|
"root passwd: ",
|
|
66
70
|
react_1.default.createElement(ink_1.Text, { color: "cyan" }, settings.config.root_passwd)))));
|
|
67
|
-
|
|
71
|
+
// render(<Live />)
|
|
68
72
|
const distroId = shelljs_1.default.exec('lsb_release -is', { silent: true }).stdout.trim();
|
|
69
73
|
const releaseId = shelljs_1.default.exec('lsb_release -rs', { silent: true }).stdout.trim();
|
|
70
74
|
const codenameId = shelljs_1.default.exec('lsb_release -cs', { silent: true }).stdout.trim();
|
|
@@ -84,29 +88,29 @@ async function information(verbose = false) {
|
|
|
84
88
|
"compatible: ",
|
|
85
89
|
react_1.default.createElement(ink_1.Text, { color: "cyan" },
|
|
86
90
|
settings.distro.distroLike,
|
|
87
|
-
"
|
|
91
|
+
" ",
|
|
88
92
|
settings.distro.releaseLike,
|
|
89
|
-
"
|
|
93
|
+
" ",
|
|
90
94
|
settings.distro.codenameLikeId))))));
|
|
91
|
-
|
|
95
|
+
// render(<Distro />)
|
|
92
96
|
const dependencies = await pacman_1.default.prerequisitesCheck();
|
|
93
97
|
const configurations = pacman_1.default.configurationCheck();
|
|
94
98
|
let uefi = pacman_1.default.isUefi();
|
|
95
99
|
let installer = false;
|
|
96
|
-
if (
|
|
100
|
+
if (pacman_1.default.isInstalledGui()) {
|
|
97
101
|
installer = await pacman_1.default.calamaresCheck();
|
|
98
102
|
}
|
|
99
103
|
const Ok = () => (react_1.default.createElement(ink_1.Text, { backgroundColor: "green" }, "OK"));
|
|
100
|
-
|
|
104
|
+
// render(<Ok />)
|
|
101
105
|
const Ko = () => (react_1.default.createElement(ink_1.Text, { backgroundColor: "red", color: "white" }, "KO"));
|
|
102
|
-
|
|
106
|
+
// render(<Ko />)
|
|
103
107
|
/**
|
|
104
108
|
* CLI va verde se naked, altrimenti giallo
|
|
105
109
|
*/
|
|
106
110
|
const CLI = () => (react_1.default.createElement(ink_1.Text, { backgroundColor: "green" }, "CLI"));
|
|
107
|
-
|
|
111
|
+
// render(<CLI />)
|
|
108
112
|
const GUI = () => (react_1.default.createElement(ink_1.Text, { backgroundColor: "green" }, "GUI"));
|
|
109
|
-
|
|
113
|
+
// render(<GUI />)
|
|
110
114
|
let initType = '';
|
|
111
115
|
if (utils_1.default.isSysvinit()) {
|
|
112
116
|
initType = 'sysvinit';
|
|
@@ -140,17 +144,17 @@ async function information(verbose = false) {
|
|
|
140
144
|
react_1.default.createElement(ink_1.Text, null,
|
|
141
145
|
"init: ",
|
|
142
146
|
react_1.default.createElement(ink_1.Text, { color: "cyan" }, initType)))));
|
|
143
|
-
|
|
147
|
+
// render(<Checks />)
|
|
144
148
|
const Presentation = () => (react_1.default.createElement(react_1.default.Fragment, null,
|
|
145
149
|
react_1.default.createElement(ink_1.Box, null,
|
|
146
150
|
react_1.default.createElement(ink_1.Text, null, " ")),
|
|
147
151
|
react_1.default.createElement(ink_1.Box, { borderStyle: "round", marginRight: 2, flexDirection: "column" },
|
|
148
152
|
react_1.default.createElement(ink_1.Box, null,
|
|
149
|
-
react_1.default.createElement(ink_1.Text,
|
|
150
|
-
|
|
151
|
-
react_1.default.createElement(ink_1.Text, null, "krill installer is an opportunity if you are low on RAM, working on old distros or on architectures not yet supported by calamares.")),
|
|
153
|
+
react_1.default.createElement(ink_1.Text, { color: "cyan" }, "eggs install"),
|
|
154
|
+
react_1.default.createElement(ink_1.Text, null, " install your CLI iso with TUI installer krill, on GUI prefere calamares")),
|
|
152
155
|
react_1.default.createElement(ink_1.Box, null,
|
|
153
|
-
react_1.default.createElement(ink_1.Text,
|
|
156
|
+
react_1.default.createElement(ink_1.Text, { color: "cyan" }, "eggs wardrobe"),
|
|
157
|
+
react_1.default.createElement(ink_1.Text, null, " build your personal system starting from cli")),
|
|
154
158
|
react_1.default.createElement(ink_1.Box, null,
|
|
155
159
|
react_1.default.createElement(ink_1.Text, null, " ")),
|
|
156
160
|
react_1.default.createElement(ink_1.Box, { flexDirection: "row" },
|
|
@@ -164,9 +168,9 @@ async function information(verbose = false) {
|
|
|
164
168
|
react_1.default.createElement(ink_1.Text, null, "sources "),
|
|
165
169
|
react_1.default.createElement(ink_1.Text, { color: "cyan" }, "https://github.com/pieroproietti/penguins-eggs")),
|
|
166
170
|
react_1.default.createElement(ink_1.Box, { marginRight: 2 },
|
|
167
|
-
react_1.default.createElement(ink_1.Text, null, "
|
|
168
|
-
react_1.default.createElement(ink_1.Text, { color: "cyan" }, "https://
|
|
169
|
-
|
|
171
|
+
react_1.default.createElement(ink_1.Text, null, "wardrobe "),
|
|
172
|
+
react_1.default.createElement(ink_1.Text, { color: "cyan" }, "https://github.com/pieroproietti/penguins-wardrobe")))))));
|
|
173
|
+
// render(<Presentation />)
|
|
170
174
|
/**
|
|
171
175
|
*
|
|
172
176
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 =
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const ink_1 = require("ink");
|
|
6
6
|
function Steps({ step = 1 }) {
|
|
7
7
|
let activeWelcome = false;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const
|
|
5
|
-
const react_1 = (0, tslib_1.__importDefault)(require("react"));
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
5
|
const ink_1 = require("ink");
|
|
6
|
+
// import package.json
|
|
7
|
+
const pjson = require('../../../package.json');
|
|
7
8
|
function Title({ title = "krill" }) {
|
|
8
9
|
return (
|
|
9
10
|
// font="slick"
|
|
@@ -17,12 +18,12 @@ function Title({ title = "krill" }) {
|
|
|
17
18
|
react_1.default.createElement(ink_1.Box, { flexDirection: "row" },
|
|
18
19
|
react_1.default.createElement(ink_1.Text, { backgroundColor: "green" },
|
|
19
20
|
" ",
|
|
20
|
-
|
|
21
|
+
pjson.name,
|
|
21
22
|
" "),
|
|
22
23
|
react_1.default.createElement(ink_1.Text, { backgroundColor: "white", color: "blue" }, " Perri's brewery edition "),
|
|
23
24
|
react_1.default.createElement(ink_1.Text, { backgroundColor: "red" },
|
|
24
25
|
" ver. ",
|
|
25
|
-
|
|
26
|
+
pjson.version,
|
|
26
27
|
" "))));
|
|
27
28
|
}
|
|
28
29
|
exports.default = Title;
|
|
@@ -4,12 +4,13 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
/**
|
|
5
5
|
* Welcome
|
|
6
6
|
*/
|
|
7
|
-
const react_1 =
|
|
7
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
8
8
|
const ink_1 = require("ink");
|
|
9
|
-
const title_1 =
|
|
10
|
-
const steps_1 =
|
|
11
|
-
const js_yaml_1 =
|
|
12
|
-
const fs_1 =
|
|
9
|
+
const title_1 = tslib_1.__importDefault(require("./elements/title"));
|
|
10
|
+
const steps_1 = tslib_1.__importDefault(require("./elements/steps"));
|
|
11
|
+
const js_yaml_1 = tslib_1.__importDefault(require("js-yaml"));
|
|
12
|
+
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
13
|
+
const pjson = require('../../package.json');
|
|
13
14
|
function Finished({ installationDevice, hostName, userName }) {
|
|
14
15
|
let productName = 'unknown';
|
|
15
16
|
let version = 'x.x.x';
|
|
@@ -4,12 +4,12 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
/**
|
|
5
5
|
* Welcome
|
|
6
6
|
*/
|
|
7
|
-
const react_1 =
|
|
7
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
8
8
|
const ink_1 = require("ink");
|
|
9
|
-
const title_1 =
|
|
10
|
-
const steps_1 =
|
|
11
|
-
const js_yaml_1 =
|
|
12
|
-
const fs_1 =
|
|
9
|
+
const title_1 = tslib_1.__importDefault(require("./elements/title"));
|
|
10
|
+
const steps_1 = tslib_1.__importDefault(require("./elements/steps"));
|
|
11
|
+
const js_yaml_1 = tslib_1.__importDefault(require("js-yaml"));
|
|
12
|
+
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
13
13
|
function Install({ message, percent, spinner = false }) {
|
|
14
14
|
let productName = 'unknown';
|
|
15
15
|
let version = 'x.x.x';
|
|
@@ -4,12 +4,12 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
/**
|
|
5
5
|
* Keyboard
|
|
6
6
|
*/
|
|
7
|
-
const react_1 =
|
|
7
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
8
8
|
const ink_1 = require("ink");
|
|
9
|
-
const title_1 =
|
|
10
|
-
const steps_1 =
|
|
11
|
-
const js_yaml_1 =
|
|
12
|
-
const fs_1 =
|
|
9
|
+
const title_1 = tslib_1.__importDefault(require("./elements/title"));
|
|
10
|
+
const steps_1 = tslib_1.__importDefault(require("./elements/steps"));
|
|
11
|
+
const js_yaml_1 = tslib_1.__importDefault(require("js-yaml"));
|
|
12
|
+
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
13
13
|
/**
|
|
14
14
|
* modello tastiere da /usr/share/X11/xkb/rules/xorg.xml
|
|
15
15
|
*/
|
|
@@ -40,15 +40,12 @@ function Keyboard({ keyboardModel = '', keyboardLayout = '', keyboardVariant = '
|
|
|
40
40
|
react_1.default.createElement(ink_1.Box, null,
|
|
41
41
|
react_1.default.createElement(ink_1.Text, null, "Model: "),
|
|
42
42
|
react_1.default.createElement(ink_1.Text, { color: "cyan" }, keyboardModel)),
|
|
43
|
-
react_1.default.createElement(ink_1.Newline, null),
|
|
44
43
|
react_1.default.createElement(ink_1.Box, null,
|
|
45
44
|
react_1.default.createElement(ink_1.Text, null, "Layout: "),
|
|
46
45
|
react_1.default.createElement(ink_1.Text, { color: "cyan" }, keyboardLayout)),
|
|
47
|
-
react_1.default.createElement(ink_1.Newline, null),
|
|
48
46
|
react_1.default.createElement(ink_1.Box, null,
|
|
49
47
|
react_1.default.createElement(ink_1.Text, null, "Variant: "),
|
|
50
48
|
react_1.default.createElement(ink_1.Text, { color: "cyan" }, keyboardVariant)),
|
|
51
|
-
react_1.default.createElement(ink_1.Newline, null),
|
|
52
49
|
react_1.default.createElement(ink_1.Box, null,
|
|
53
50
|
react_1.default.createElement(ink_1.Text, null, "Options: "),
|
|
54
51
|
react_1.default.createElement(ink_1.Text, { color: "cyan" }, keyboardOptions))))))));
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
|
-
const react_1 =
|
|
7
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
8
8
|
const ink_1 = require("ink");
|
|
9
|
-
const title_1 =
|
|
10
|
-
const steps_1 =
|
|
11
|
-
const js_yaml_1 =
|
|
12
|
-
const fs_1 =
|
|
9
|
+
const title_1 = tslib_1.__importDefault(require("./elements/title"));
|
|
10
|
+
const steps_1 = tslib_1.__importDefault(require("./elements/steps"));
|
|
11
|
+
const js_yaml_1 = tslib_1.__importDefault(require("js-yaml"));
|
|
12
|
+
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
13
13
|
function Location({ region = '', zone = '', language = '', dateNumbers = '' }) {
|
|
14
14
|
let productName = 'unknown';
|
|
15
15
|
let version = 'x.x.x';
|
|
@@ -4,12 +4,13 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
/**
|
|
5
5
|
* Welcome
|
|
6
6
|
*/
|
|
7
|
-
const react_1 =
|
|
7
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
8
8
|
const ink_1 = require("ink");
|
|
9
|
-
const title_1 =
|
|
10
|
-
const steps_1 =
|
|
11
|
-
const js_yaml_1 =
|
|
12
|
-
const fs_1 =
|
|
9
|
+
const title_1 = tslib_1.__importDefault(require("./elements/title"));
|
|
10
|
+
const steps_1 = tslib_1.__importDefault(require("./elements/steps"));
|
|
11
|
+
const js_yaml_1 = tslib_1.__importDefault(require("js-yaml"));
|
|
12
|
+
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
13
|
+
const pjson = require('../../package.json');
|
|
13
14
|
function Network({ iface, addressType, address, netmask, gateway, domain, dns }) {
|
|
14
15
|
let productName = 'unknown';
|
|
15
16
|
let version = 'x.x.x';
|
|
@@ -4,12 +4,12 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
/**
|
|
5
5
|
* Partitions
|
|
6
6
|
*/
|
|
7
|
-
const react_1 =
|
|
7
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
8
8
|
const ink_1 = require("ink");
|
|
9
|
-
const title_1 =
|
|
10
|
-
const steps_1 =
|
|
11
|
-
const js_yaml_1 =
|
|
12
|
-
const fs_1 =
|
|
9
|
+
const title_1 = tslib_1.__importDefault(require("./elements/title"));
|
|
10
|
+
const steps_1 = tslib_1.__importDefault(require("./elements/steps"));
|
|
11
|
+
const js_yaml_1 = tslib_1.__importDefault(require("js-yaml"));
|
|
12
|
+
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
13
13
|
function Partitions({ installationDevice, installationMode, filesystemType, userSwapChoice }) {
|
|
14
14
|
let installer = 'krill';
|
|
15
15
|
let productName = 'unknown';
|
|
@@ -4,12 +4,12 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
/**
|
|
5
5
|
* Welcome
|
|
6
6
|
*/
|
|
7
|
-
const react_1 =
|
|
7
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
8
8
|
const ink_1 = require("ink");
|
|
9
|
-
const title_1 =
|
|
10
|
-
const steps_1 =
|
|
11
|
-
const js_yaml_1 =
|
|
12
|
-
const fs_1 =
|
|
9
|
+
const title_1 = tslib_1.__importDefault(require("./elements/title"));
|
|
10
|
+
const steps_1 = tslib_1.__importDefault(require("./elements/steps"));
|
|
11
|
+
const js_yaml_1 = tslib_1.__importDefault(require("js-yaml"));
|
|
12
|
+
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
13
13
|
function Summary({ region, zone, language, keyboardModel, keyboardLayout, installationDevice }) {
|
|
14
14
|
let productName = 'unknown';
|
|
15
15
|
let version = 'x.x.x';
|
package/lib/components/users.js
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
|
-
const react_1 =
|
|
7
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
8
8
|
const ink_1 = require("ink");
|
|
9
9
|
// import Spinner from 'ink-spinner';
|
|
10
|
-
const title_1 =
|
|
11
|
-
const steps_1 =
|
|
12
|
-
const js_yaml_1 =
|
|
13
|
-
const fs_1 =
|
|
10
|
+
const title_1 = tslib_1.__importDefault(require("./elements/title"));
|
|
11
|
+
const steps_1 = tslib_1.__importDefault(require("./elements/steps"));
|
|
12
|
+
const js_yaml_1 = tslib_1.__importDefault(require("js-yaml"));
|
|
13
|
+
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
14
14
|
//create your forceUpdate hook
|
|
15
15
|
function useForceUpdate() {
|
|
16
16
|
const [value, setValue] = (0, react_1.useState)(0); // integer state
|