penguins-eggs 9.3.3 → 9.3.7
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/.oclif.manifest.json +1 -1
- package/README.md +52 -67
- package/addons/eggs/adapt/applications/eggs-adapt.desktop +1 -1
- package/conf/distros/rolling/calamares/modules/packages.yml +1 -4
- package/conf/tools.yaml +11 -12
- package/dist/classes/distro.js +7 -18
- package/dist/classes/incubation/fisherman-helper/packages.js +9 -9
- package/dist/classes/incubation/fisherman.js +2 -2
- package/dist/classes/ovary.js +18 -22
- package/dist/classes/pxe.js +74 -28
- package/dist/commands/export/deb.js +26 -21
- package/dist/commands/export/iso.js +21 -8
- package/dist/commands/tools/stat.js +17 -9
- package/dist/krill/krill-sequence.js +22 -17
- package/dist/krill/modules/bootloader.js +3 -12
- package/dist/krill/modules/initramfs.js +4 -1
- package/dist/krill/modules/mount-vfs.js +1 -1
- package/dist/krill/modules/unpackfs.js +2 -1
- package/dist/lib/dependencies.js +1 -0
- package/mkinitcpio/archlinux/README.md +97 -1
- package/mkinitcpio/archlinux/archinstall/user_configuration.json +42 -0
- package/mkinitcpio/archlinux/archinstall/user_credentials.json +9 -0
- package/mkinitcpio/archlinux/archinstall/user_disk_layout.json +31 -0
- package/mkinitcpio/archlinux/mkinitcpio-install.conf +0 -1
- package/mkinitcpio/archlinux/mkinitcpio-produce.conf +0 -5
- package/mkinitcpio/manjaro/mkinitcpio-produce.conf +4 -2
- package/package.json +21 -22
- package/scripts/_eggs +14 -13
- package/scripts/eggs.bash +4 -4
- package/scripts/mom-cli.sh +1 -9
- package/scripts/{resy.sh → resy} +0 -0
- package/addons/neon/theme/livecd/splash.png +0 -0
- package/assets/penguins-eggs-splash.png +0 -0
- package/dist/commands/export/docs.js +0 -23
- package/scripts/install-eggs-ppa.sh +0 -3
- package/scripts/userexist.sh +0 -6
|
@@ -1,5 +1,101 @@
|
|
|
1
|
-
# install Archlinux
|
|
2
1
|
|
|
2
|
+
# archinstall
|
|
3
|
+
|
|
4
|
+
Here I'm using archinstall, minimum installation, you can find configuration files in
|
|
5
|
+
[archinstall](./archinstall).
|
|
6
|
+
I added this packages:
|
|
7
|
+
|
|
8
|
+
```bash-completion git nano openssh```
|
|
9
|
+
|
|
10
|
+
and completed the installation.
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## reboot
|
|
14
|
+
Here I enabled members of group wheel to sudo, after I just installed penguins-eggs:
|
|
15
|
+
|
|
16
|
+
### visudo
|
|
17
|
+
```sudo su```
|
|
18
|
+
|
|
19
|
+
```export EDITOR=nano```
|
|
20
|
+
|
|
21
|
+
```visudo```
|
|
22
|
+
|
|
23
|
+
find line:
|
|
24
|
+
```
|
|
25
|
+
## Uncomment to allow members of group wheel to execute any command
|
|
26
|
+
# %wheel ALL=(ALL:ALL) ALL
|
|
27
|
+
```
|
|
28
|
+
and remove # before %wheel
|
|
29
|
+
|
|
30
|
+
### install penguins-eggs
|
|
31
|
+
```git clone https://github.com/pieroproietti/penguins-eggs-arch```
|
|
32
|
+
|
|
33
|
+
```cd penguins-eggs-arch```
|
|
34
|
+
|
|
35
|
+
```./build```
|
|
36
|
+
|
|
37
|
+
### run eggs
|
|
38
|
+
```eggs dad -d```
|
|
39
|
+
|
|
40
|
+
```eggs produce --fast```
|
|
41
|
+
|
|
42
|
+
The iso was generated and I exported it to boot from the new iso.
|
|
43
|
+
|
|
44
|
+
## booting from eggs generated iso
|
|
45
|
+
boot is successfully, and I tryed to install with:
|
|
46
|
+
|
|
47
|
+
```sudo eggs install -u```
|
|
48
|
+
|
|
49
|
+
No signs of problems.
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## booting from the new installed machine
|
|
53
|
+
|
|
54
|
+
grub start with just the option:
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
UEFI firmware settings
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### workaround
|
|
61
|
+
|
|
62
|
+
I tryed to reinstall grub, starting from the initial archiso.
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
```ssh root@192.168.61.102```
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
root@archiso ~ # lsblk
|
|
69
|
+
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
|
|
70
|
+
loop0 7:0 0 671M 1 loop /run/archiso/airootfs
|
|
71
|
+
sda 8:0 0 40G 0 disk
|
|
72
|
+
├─sda1 8:1 0 256M 0 part
|
|
73
|
+
├─sda2 8:2 0 4G 0 part
|
|
74
|
+
└─sda3 8:3 0 35.7G 0 part
|
|
75
|
+
sr0 11:0 1 782.3M 0 rom
|
|
76
|
+
root@archiso ~ # mount /dev/sda3 /mnt
|
|
77
|
+
root@archiso ~ # ls /mnt/boot/efi
|
|
78
|
+
root@archiso ~ # mount /dev/sda1 /mnt/boot/efi
|
|
79
|
+
root@archiso ~ # arch-chroot /mnt
|
|
80
|
+
```
|
|
81
|
+
and give:
|
|
82
|
+
```grub-mkconfig -o /boot/grub/grub.cfg```
|
|
83
|
+
|
|
84
|
+
Agein, it seem all OK, but grub-mkconfig cant create linux entry!
|
|
85
|
+
|
|
86
|
+
Saoeone can help?
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
## adding fstab
|
|
91
|
+
```genfstab -U /mnt >> /mnt/etc/fstab```
|
|
92
|
+
|
|
93
|
+
```arch-chroot /mnt```
|
|
94
|
+
|
|
95
|
+
```ln -sf /proc/self/mounts /etc/mtab```
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
# install Archlinux
|
|
3
99
|
```password```
|
|
4
100
|
|
|
5
101
|
```systemctl start sshd```
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"archinstall-language": "Italian",
|
|
3
|
+
"bootloader": "grub-install",
|
|
4
|
+
"config_version": "2.5.1",
|
|
5
|
+
"debug": false,
|
|
6
|
+
"harddrives": [
|
|
7
|
+
"/dev/sda"
|
|
8
|
+
],
|
|
9
|
+
"hostname": "naked",
|
|
10
|
+
"keyboard-layout": "it",
|
|
11
|
+
"mirror-region": {
|
|
12
|
+
"Italy": {
|
|
13
|
+
"http://archlinux.mirror.garr.it/archlinux/$repo/os/$arch": true,
|
|
14
|
+
"http://archlinux.mirror.server24.net/$repo/os/$arch": true,
|
|
15
|
+
"https://archlinux.mirror.server24.net/$repo/os/$arch": true,
|
|
16
|
+
"https://archmirror.it/repos/$repo/os/$arch": true
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"nic": {
|
|
20
|
+
"dhcp": true,
|
|
21
|
+
"dns": null,
|
|
22
|
+
"gateway": null,
|
|
23
|
+
"iface": null,
|
|
24
|
+
"ip": null,
|
|
25
|
+
"type": "nm"
|
|
26
|
+
},
|
|
27
|
+
"no_pkg_lookups": false,
|
|
28
|
+
"offline": false,
|
|
29
|
+
"packages": [
|
|
30
|
+
"bash-completion",
|
|
31
|
+
"git",
|
|
32
|
+
"nano"
|
|
33
|
+
],
|
|
34
|
+
"profile": {
|
|
35
|
+
"path": "/usr/lib/python3.10/site-packages/archinstall/profiles/minimal.py"
|
|
36
|
+
},
|
|
37
|
+
"script": "guided",
|
|
38
|
+
"silent": false,
|
|
39
|
+
"sys-language": "it_IT.UTF-8",
|
|
40
|
+
"timezone": "Europe/Rome",
|
|
41
|
+
"version": "2.5.1"
|
|
42
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"/dev/sda": {
|
|
3
|
+
"partitions": [
|
|
4
|
+
{
|
|
5
|
+
"boot": true,
|
|
6
|
+
"encrypted": false,
|
|
7
|
+
"filesystem": {
|
|
8
|
+
"format": "fat32"
|
|
9
|
+
},
|
|
10
|
+
"mountpoint": "/boot",
|
|
11
|
+
"size": "512MiB",
|
|
12
|
+
"start": "1MiB",
|
|
13
|
+
"type": "primary",
|
|
14
|
+
"wipe": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"encrypted": false,
|
|
18
|
+
"filesystem": {
|
|
19
|
+
"format": "ext4",
|
|
20
|
+
"mount_options": []
|
|
21
|
+
},
|
|
22
|
+
"mountpoint": "/",
|
|
23
|
+
"size": "100%",
|
|
24
|
+
"start": "513MiB",
|
|
25
|
+
"type": "primary",
|
|
26
|
+
"wipe": true
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"wipe": true
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -6,8 +6,3 @@ FILES=()
|
|
|
6
6
|
HOOKS=(base udev modconf memdisk archiso archiso_loop_mnt archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs archiso_kms block filesystems keyboard)
|
|
7
7
|
COMPRESSION="zsd"
|
|
8
8
|
#COMPRESSION_OPTIONS=()
|
|
9
|
-
|
|
10
|
-
# manjaro mkinitcpio-produce.conf
|
|
11
|
-
# MODULES="loop dm-snapshot"
|
|
12
|
-
# HOOKS="base udev miso_shutdown miso miso_loop_mnt miso_kms modconf block filesystems keyboard keymap"
|
|
13
|
-
# COMPRESSION="zstd"
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
# manjaro linux Qono krill producing iso
|
|
2
2
|
MODULES="loop dm-snapshot"
|
|
3
|
-
HOOKS="base udev miso_shutdown miso miso_loop_mnt miso_kms modconf block filesystems keyboard keymap"
|
|
3
|
+
#HOOKS="base udev miso_shutdown miso miso_loop_mnt miso_kms modconf block filesystems keyboard keymap"
|
|
4
|
+
HOOKS="base udev miso_shutdown miso miso_loop_mnt miso_kms miso_pxe_common miso_pxe_http modconf block filesystems keyboard keymap"
|
|
4
5
|
COMPRESSION="zstd"
|
|
5
|
-
|
|
6
|
+
# richiede mkinitcpio-nfs-utils
|
|
6
7
|
|
|
7
8
|
# HOOKS="base udev pe_miso_shutdown pe_miso pe_miso_loop_mnt pe_miso_kms modconf block filesystems keyboard keymap"
|
|
9
|
+
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "penguins-eggs",
|
|
3
3
|
"description": "Perri's Brewery edition: remaster your system and distribuite it",
|
|
4
|
-
"version": "9.3.
|
|
4
|
+
"version": "9.3.7",
|
|
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": "^1",
|
|
12
|
-
"@oclif/plugin-autocomplete": "1.3.
|
|
13
|
-
"@oclif/plugin-help": "^5.1.
|
|
14
|
-
"@oclif/plugin-not-found": "^2.3.
|
|
15
|
-
"@oclif/plugin-version": "^1.1.
|
|
16
|
-
"@oclif/plugin-warn-if-update-available": "^2.0.
|
|
17
|
-
"@oclif/test": "^2.
|
|
18
|
-
"axios": "^1.1.
|
|
11
|
+
"@oclif/core": "^1.19.1",
|
|
12
|
+
"@oclif/plugin-autocomplete": "1.3.3",
|
|
13
|
+
"@oclif/plugin-help": "^5.1.16",
|
|
14
|
+
"@oclif/plugin-not-found": "^2.3.6",
|
|
15
|
+
"@oclif/plugin-version": "^1.1.3",
|
|
16
|
+
"@oclif/plugin-warn-if-update-available": "^2.0.9",
|
|
17
|
+
"@oclif/test": "^2.2.4",
|
|
18
|
+
"axios": "^1.1.3",
|
|
19
19
|
"chalk": "^4.1.2",
|
|
20
20
|
"ink": "^3.2.0",
|
|
21
21
|
"ink-big-text": "^1.2.0",
|
|
@@ -30,34 +30,33 @@
|
|
|
30
30
|
"shelljs": "0.8.5",
|
|
31
31
|
"tftp": "^0.1.2",
|
|
32
32
|
"tslib": "^2.4.0",
|
|
33
|
-
"typescript": "^4.
|
|
33
|
+
"typescript": "^4.8.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@tsconfig/recommended": "^1.0.1",
|
|
37
|
-
"@types/chai": "^4.3.
|
|
37
|
+
"@types/chai": "^4.3.3",
|
|
38
38
|
"@types/ini": "^1.3.31",
|
|
39
39
|
"@types/ink-big-text": "^1.2.1",
|
|
40
40
|
"@types/ink-gradient": "^2.0.1",
|
|
41
41
|
"@types/inquirer": "^9.0.2",
|
|
42
42
|
"@types/js-yaml": "^4.0.5",
|
|
43
43
|
"@types/mocha": "^10.0.0",
|
|
44
|
-
"@types/mustache": "^4.1
|
|
44
|
+
"@types/mustache": "^4.2.1",
|
|
45
45
|
"@types/netmask": "^1.0.30",
|
|
46
|
-
"@types/node": "^18.
|
|
46
|
+
"@types/node": "^18.11.3",
|
|
47
47
|
"@types/node-static": "^0.7.7",
|
|
48
|
-
"@types/react": "^18.0.
|
|
48
|
+
"@types/react": "^18.0.21",
|
|
49
49
|
"@types/shelljs": "^0.8.11",
|
|
50
|
-
"@typescript-eslint/parser": "^5.
|
|
50
|
+
"@typescript-eslint/parser": "^5.40.1",
|
|
51
51
|
"chai": "^4.3.6",
|
|
52
|
-
"eslint": "^7",
|
|
52
|
+
"eslint": "^7.32.0",
|
|
53
53
|
"eslint-config-oclif": "^4.0.0",
|
|
54
|
-
"eslint-config-oclif-typescript": "^1.0.
|
|
55
|
-
"globby": "^11",
|
|
56
|
-
"mocha": "^10.
|
|
54
|
+
"eslint-config-oclif-typescript": "^1.0.3",
|
|
55
|
+
"globby": "^11.1.0",
|
|
56
|
+
"mocha": "^10.1.0",
|
|
57
57
|
"nyc": "^15.1.0",
|
|
58
|
-
"perrisbrewery": "^9.
|
|
59
|
-
"ts-node": "^10.
|
|
60
|
-
"typedoc": "^0.23.10"
|
|
58
|
+
"perrisbrewery": "^9.3.4",
|
|
59
|
+
"ts-node": "^10.9.1"
|
|
61
60
|
},
|
|
62
61
|
"peerDependencies": {
|
|
63
62
|
"@typescript-eslint/parser": "^5.0.0",
|
package/scripts/_eggs
CHANGED
|
@@ -14,7 +14,6 @@ _eggs () {
|
|
|
14
14
|
"cuckoo:PXE start with proxy-dhcp"
|
|
15
15
|
"dad:ask help from daddy - configuration helper"
|
|
16
16
|
"export\:deb:export deb/docs/iso to the destination host"
|
|
17
|
-
"export\:docs:remove and export docType documentation of the sources in the destination host"
|
|
18
17
|
"export\:iso:export iso in the destination host"
|
|
19
18
|
"install:command-line system installer - the egg became a penguin!"
|
|
20
19
|
"kill:kill the eggs/free the nest"
|
|
@@ -24,6 +23,7 @@ _eggs () {
|
|
|
24
23
|
"syncfrom:restore users and user data from a LUKS volumes"
|
|
25
24
|
"syncto:saves users and user data in a LUKS volume inside the iso"
|
|
26
25
|
"tools\:clean:clean system log, apt, etc"
|
|
26
|
+
"tools\:ppa:add/remove PPA repositories (Debian family)"
|
|
27
27
|
"tools\:skel:update skel from home configuration"
|
|
28
28
|
"tools\:stat:get statistics from sourceforge"
|
|
29
29
|
"tools\:yolk:configure eggs to install without internet"
|
|
@@ -76,7 +76,7 @@ config)
|
|
|
76
76
|
|
|
77
77
|
cuckoo)
|
|
78
78
|
_command_flags=(
|
|
79
|
-
"--
|
|
79
|
+
"--help[Show CLI help.]"
|
|
80
80
|
)
|
|
81
81
|
;;
|
|
82
82
|
|
|
@@ -92,18 +92,9 @@ dad)
|
|
|
92
92
|
export:deb)
|
|
93
93
|
_command_flags=(
|
|
94
94
|
"--help[Show CLI help.]"
|
|
95
|
-
"--clean[remove old .deb before to copy]"
|
|
96
|
-
"--amd64[export amd64 arch]"
|
|
97
|
-
"--i386[export i386 arch]"
|
|
98
|
-
"--armel[export armel arch]"
|
|
99
|
-
"--arm64[export arm64 arch]"
|
|
100
95
|
"--all[export all archs]"
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
export:docs)
|
|
105
|
-
_command_flags=(
|
|
106
|
-
"--help[Show CLI help.]"
|
|
96
|
+
"--clean[remove old .deb before to copy]"
|
|
97
|
+
"--verbose[verbose]"
|
|
107
98
|
)
|
|
108
99
|
;;
|
|
109
100
|
|
|
@@ -112,6 +103,7 @@ export:iso)
|
|
|
112
103
|
"--help[Show CLI help.]"
|
|
113
104
|
"--backup[export backup ISOs]"
|
|
114
105
|
"--clean[delete old ISOs before to copy]"
|
|
106
|
+
"--verbose[verbose]"
|
|
115
107
|
)
|
|
116
108
|
;;
|
|
117
109
|
|
|
@@ -196,6 +188,15 @@ tools:clean)
|
|
|
196
188
|
)
|
|
197
189
|
;;
|
|
198
190
|
|
|
191
|
+
tools:ppa)
|
|
192
|
+
_command_flags=(
|
|
193
|
+
"--help[Show CLI help.]"
|
|
194
|
+
"--add[add penguins-eggs PPA repository]"
|
|
195
|
+
"--remove[remove penguins-eggs PPA repository]"
|
|
196
|
+
"--verbose[verbose]"
|
|
197
|
+
)
|
|
198
|
+
;;
|
|
199
|
+
|
|
199
200
|
tools:skel)
|
|
200
201
|
_command_flags=(
|
|
201
202
|
"--help[Show CLI help.]"
|
package/scripts/eggs.bash
CHANGED
|
@@ -15,11 +15,10 @@ adapt --verbose --help
|
|
|
15
15
|
analyze --help --verbose
|
|
16
16
|
calamares --help --verbose --install --release --remove --theme
|
|
17
17
|
config --nointeractive --clean --help --verbose
|
|
18
|
-
cuckoo --
|
|
18
|
+
cuckoo --help
|
|
19
19
|
dad --help --clean --default --verbose
|
|
20
|
-
export:deb --help --
|
|
21
|
-
export:
|
|
22
|
-
export:iso --help --backup --clean
|
|
20
|
+
export:deb --help --all --clean --verbose
|
|
21
|
+
export:iso --help --backup --clean --verbose
|
|
23
22
|
install --unattended --ip --random --domain --suspend --small --none --crypted --pve --help --verbose
|
|
24
23
|
kill --help --verbose
|
|
25
24
|
mom --help
|
|
@@ -28,6 +27,7 @@ status --verbose --help
|
|
|
28
27
|
syncfrom --delete --file --rootdir --help --verbose
|
|
29
28
|
syncto --delete --file --help --verbose
|
|
30
29
|
tools:clean --help --verbose
|
|
30
|
+
tools:ppa --help --add --remove --verbose
|
|
31
31
|
tools:skel --help --user --verbose
|
|
32
32
|
tools:stat --help --month --year
|
|
33
33
|
tools:yolk --help --verbose
|
package/scripts/mom-cli.sh
CHANGED
|
@@ -186,7 +186,6 @@ function Export {
|
|
|
186
186
|
answer=$(
|
|
187
187
|
whiptail --title "EXPORT" --menu "Export your eggs or packages in remote host..." 22 75 14 \
|
|
188
188
|
"deb" "export package eggs-v7-x-x-1.deb in the destination host" \
|
|
189
|
-
"docs" "export docType source's documentation in the destination host" \
|
|
190
189
|
"iso" "export iso image in the destination host" \
|
|
191
190
|
"quit" "previous" 3>&2 2>&1 1>&3
|
|
192
191
|
)
|
|
@@ -195,9 +194,6 @@ function Export {
|
|
|
195
194
|
"deb")
|
|
196
195
|
export_deb ;;
|
|
197
196
|
|
|
198
|
-
"docs")
|
|
199
|
-
export_docs ;;
|
|
200
|
-
|
|
201
197
|
"iso")
|
|
202
198
|
export_iso ;;
|
|
203
199
|
esac
|
|
@@ -250,19 +246,15 @@ function produce {
|
|
|
250
246
|
answer=$(
|
|
251
247
|
whiptail --title "produce" --menu "Choose the prefered method of production..." 22 75 14 \
|
|
252
248
|
"fast" "create an ISO fast compression" \
|
|
253
|
-
"standard" "create an ISO standard compression" \
|
|
254
249
|
"max" "create an ISO max compression" \
|
|
255
250
|
"clone" "create a live clone with user's data" \
|
|
256
|
-
"quit"
|
|
251
|
+
"quit" "previous" 3>&2 2>&1 1>&3
|
|
257
252
|
)
|
|
258
253
|
|
|
259
254
|
case "$answer" in
|
|
260
255
|
"fast")
|
|
261
256
|
fast ;;
|
|
262
257
|
|
|
263
|
-
"standard")
|
|
264
|
-
standard ;;
|
|
265
|
-
|
|
266
258
|
"max")
|
|
267
259
|
max ;;
|
|
268
260
|
|
package/scripts/{resy.sh → resy}
RENAMED
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
@@ -1,23 +0,0 @@
|
|
|
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 tools_1 = tslib_1.__importDefault(require("../../classes/tools"));
|
|
6
|
-
const utils_1 = tslib_1.__importDefault(require("../../classes/utils"));
|
|
7
|
-
const utils_2 = require("../../lib/utils");
|
|
8
|
-
class ExportDocs extends core_1.Command {
|
|
9
|
-
async run() {
|
|
10
|
-
const { args, flags } = await this.parse(ExportDocs);
|
|
11
|
-
const Tu = new tools_1.default();
|
|
12
|
-
utils_1.default.titles(this.id + ' ' + this.argv);
|
|
13
|
-
utils_1.default.warning(ExportDocs.description);
|
|
14
|
-
await Tu.loadSettings();
|
|
15
|
-
await (0, utils_2.exec)(`ssh ${Tu.config.remoteUser}@${Tu.config.remoteHost} rm -rf ${Tu.config.remotePathDoc}*`, { echo: true, capture: true });
|
|
16
|
-
await (0, utils_2.exec)(`scp -r ${Tu.config.localPathDoc}/* ${Tu.config.remoteUser}@${Tu.config.remoteHost}:${Tu.config.remotePathDoc}`, { echo: true, capture: true });
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.default = ExportDocs;
|
|
20
|
-
ExportDocs.description = 'remove and export docType documentation of the sources in the destination host';
|
|
21
|
-
ExportDocs.flags = {
|
|
22
|
-
help: core_1.Flags.help({ char: 'h' })
|
|
23
|
-
};
|