penguins-eggs 10.0.3 → 10.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/.oclif.manifest.json +25 -28
  2. package/README.md +101 -1159
  3. package/assets/calamares/install-system.sh +9 -5
  4. package/conf/derivatives.yaml +2 -1
  5. package/dist/classes/bleach.d.ts +6 -6
  6. package/dist/classes/bleach.js +6 -6
  7. package/dist/classes/cfs.d.ts +6 -6
  8. package/dist/classes/cfs.js +6 -6
  9. package/dist/classes/compressors.d.ts +8 -7
  10. package/dist/classes/compressors.js +19 -9
  11. package/dist/classes/daddy.d.ts +6 -6
  12. package/dist/classes/daddy.js +13 -13
  13. package/dist/classes/distro.d.ts +12 -2
  14. package/dist/classes/distro.js +41 -46
  15. package/dist/classes/families/archlinux.d.ts +6 -6
  16. package/dist/classes/families/archlinux.js +7 -11
  17. package/dist/classes/families/debian.d.ts +6 -6
  18. package/dist/classes/families/debian.js +6 -6
  19. package/dist/classes/families/mockup.js +2 -4
  20. package/dist/classes/families/suse.d.ts +2 -2
  21. package/dist/classes/families/suse.js +2 -2
  22. package/dist/classes/incubation/branding.js +24 -25
  23. package/dist/classes/incubation/distros/focal.js +1 -1
  24. package/dist/classes/incubation/distros/rolling.d.ts +4 -4
  25. package/dist/classes/incubation/distros/rolling.js +4 -4
  26. package/dist/classes/incubation/fisherman-helper/packages.js +2 -6
  27. package/dist/classes/incubation/incubator.js +6 -7
  28. package/dist/classes/incubation/installer.js +1 -2
  29. package/dist/classes/initrd.d.ts +6 -6
  30. package/dist/classes/initrd.js +6 -6
  31. package/dist/classes/keyboards.d.ts +6 -6
  32. package/dist/classes/keyboards.js +6 -6
  33. package/dist/classes/locales.d.ts +12 -12
  34. package/dist/classes/locales.js +14 -14
  35. package/dist/classes/n8.d.ts +9 -7
  36. package/dist/classes/n8.js +8 -12
  37. package/dist/classes/network.d.ts +6 -6
  38. package/dist/classes/network.js +9 -11
  39. package/dist/classes/ovary.d.ts +44 -49
  40. package/dist/classes/ovary.js +231 -259
  41. package/dist/classes/pacman.d.ts +6 -6
  42. package/dist/classes/pacman.js +8 -10
  43. package/dist/classes/pve-live.d.ts +6 -6
  44. package/dist/classes/pve-live.js +6 -6
  45. package/dist/classes/pxe.d.ts +34 -25
  46. package/dist/classes/pxe.js +205 -190
  47. package/dist/classes/settings.d.ts +7 -7
  48. package/dist/classes/settings.js +10 -10
  49. package/dist/classes/sources_list.d.ts +16 -16
  50. package/dist/classes/sources_list.js +20 -20
  51. package/dist/classes/systemctl.js +2 -2
  52. package/dist/classes/tailor.d.ts +22 -22
  53. package/dist/classes/tailor.js +88 -88
  54. package/dist/classes/tools.d.ts +6 -6
  55. package/dist/classes/tools.js +6 -6
  56. package/dist/classes/users.d.ts +9 -9
  57. package/dist/classes/users.js +33 -35
  58. package/dist/classes/xdg.d.ts +6 -6
  59. package/dist/classes/xdg.js +10 -9
  60. package/dist/classes/yolk.d.ts +8 -8
  61. package/dist/classes/yolk.js +9 -15
  62. package/dist/commands/adapt.js +2 -4
  63. package/dist/commands/analyze.js +1 -1
  64. package/dist/commands/calamares.js +9 -14
  65. package/dist/commands/config.d.ts +2 -3
  66. package/dist/commands/config.js +11 -23
  67. package/dist/commands/cuckoo.d.ts +1 -1
  68. package/dist/commands/cuckoo.js +11 -10
  69. package/dist/commands/dad.js +2 -6
  70. package/dist/commands/export/deb.js +2 -6
  71. package/dist/commands/export/iso.js +2 -5
  72. package/dist/commands/install.d.ts +1 -1
  73. package/dist/commands/install.js +5 -9
  74. package/dist/commands/kill.js +3 -5
  75. package/dist/commands/mom.js +2 -4
  76. package/dist/commands/produce.d.ts +2 -1
  77. package/dist/commands/produce.js +16 -18
  78. package/dist/commands/status.js +2 -4
  79. package/dist/commands/syncfrom.d.ts +2 -2
  80. package/dist/commands/syncfrom.js +6 -9
  81. package/dist/commands/syncto.js +8 -12
  82. package/dist/commands/tools/clean.js +3 -5
  83. package/dist/commands/tools/ppa.js +14 -17
  84. package/dist/commands/tools/skel.js +2 -5
  85. package/dist/commands/tools/stat.js +3 -7
  86. package/dist/commands/tools/yolk.js +2 -4
  87. package/dist/commands/update.js +4 -6
  88. package/dist/commands/wardrobe/get.js +4 -7
  89. package/dist/commands/wardrobe/list.js +11 -15
  90. package/dist/commands/wardrobe/show.js +11 -15
  91. package/dist/commands/wardrobe/wear.js +3 -7
  92. package/dist/interfaces/i-packages.d.ts +1 -1
  93. package/dist/interfaces/i-pxe.d.ts +35 -11
  94. package/dist/interfaces/i-pxe.js +0 -7
  95. package/dist/interfaces/i-settings.d.ts +15 -21
  96. package/dist/krill/modules/change-password.d.ts +4 -4
  97. package/dist/krill/modules/change-password.js +4 -4
  98. package/dist/krill/modules/del-live-user.d.ts +3 -3
  99. package/dist/krill/modules/del-live-user.js +3 -3
  100. package/dist/krill/modules/fstab.d.ts +3 -3
  101. package/dist/krill/modules/fstab.js +5 -5
  102. package/dist/krill/modules/grubcfg.d.ts +6 -6
  103. package/dist/krill/modules/grubcfg.js +6 -6
  104. package/dist/krill/modules/hostname.js +4 -4
  105. package/dist/krill/modules/initramfs.d.ts +2 -2
  106. package/dist/krill/modules/initramfs.js +2 -2
  107. package/dist/krill/modules/locale-cfg.js +8 -7
  108. package/dist/krill/modules/locale.d.ts +2 -2
  109. package/dist/krill/modules/locale.js +6 -6
  110. package/dist/krill/modules/m-keyboard.js +14 -14
  111. package/dist/krill/modules/mkfs.d.ts +2 -2
  112. package/dist/krill/modules/mkfs.js +2 -2
  113. package/dist/krill/modules/mount-fs.d.ts +2 -2
  114. package/dist/krill/modules/mount-fs.js +2 -2
  115. package/dist/krill/modules/mount-vfs.d.ts +4 -4
  116. package/dist/krill/modules/mount-vfs.js +4 -4
  117. package/dist/krill/modules/packages.js +25 -33
  118. package/dist/krill/modules/partition.js +38 -38
  119. package/dist/krill/modules/remove-installer-link.d.ts +2 -2
  120. package/dist/krill/modules/remove-installer-link.js +2 -2
  121. package/dist/krill/modules/umount.d.ts +3 -3
  122. package/dist/krill/modules/umount.js +4 -4
  123. package/dist/krill/modules/unpackfs.d.ts +2 -2
  124. package/dist/krill/modules/unpackfs.js +2 -2
  125. package/dist/krill/sequence.js +2 -1
  126. package/dist/lib/cli-autologin.js +3 -3
  127. package/dist/lib/get_address.js +2 -3
  128. package/dist/lib/get_dns.js +2 -3
  129. package/dist/lib/get_domain.js +2 -3
  130. package/dist/lib/get_gateway.js +2 -3
  131. package/dist/lib/get_hostname.js +2 -3
  132. package/dist/lib/get_netmask.js +2 -3
  133. package/dist/lib/get_password.js +3 -4
  134. package/dist/lib/get_userfullname.js +2 -3
  135. package/dist/lib/get_username.js +2 -2
  136. package/dist/lib/kill_me_softly.js +3 -18
  137. package/dist/lib/select_address_type.js +2 -2
  138. package/dist/lib/select_filesystem_type.js +9 -3
  139. package/dist/lib/select_installation_device.js +2 -2
  140. package/dist/lib/select_installation_mode.js +2 -3
  141. package/dist/lib/select_interface.js +2 -2
  142. package/dist/lib/select_keyboard_layout.d.ts +2 -2
  143. package/dist/lib/select_keyboard_layout.js +4 -4
  144. package/dist/lib/select_keyboard_model.d.ts +2 -2
  145. package/dist/lib/select_keyboard_model.js +4 -4
  146. package/dist/lib/select_keyboard_option.d.ts +2 -2
  147. package/dist/lib/select_keyboard_option.js +4 -4
  148. package/dist/lib/select_keyboard_variant.d.ts +2 -2
  149. package/dist/lib/select_keyboard_variant.js +4 -4
  150. package/dist/lib/select_languages.js +2 -2
  151. package/dist/lib/select_regions.js +2 -3
  152. package/dist/lib/select_user_swap_choice.js +2 -3
  153. package/dist/lib/select_zones.js +8 -10
  154. package/dist/lib/utils.js +1 -1
  155. package/manpages/doc/man/eggs.1.gz +0 -0
  156. package/manpages/doc/man/eggs.html +17 -23
  157. package/package.json +24 -22
  158. package/scripts/_eggs +354 -314
  159. package/scripts/eggs.bash +8 -8
package/scripts/_eggs CHANGED
@@ -1,339 +1,379 @@
1
1
  #compdef eggs
2
2
 
3
- _eggs () {
4
- local _command_id=${words[2]}
5
- local _cur=${words[CURRENT]}
6
- local -a _command_flags=()
7
3
 
8
- ## public cli commands & flags
9
- local -a _all_commands=(
10
- "adapt:adapt monitor resolution for VM only"
11
- "analyze:analyze for syncto"
12
- "calamares:configure calamares or install or configure it"
13
- "config:Configure and install prerequisites deb packages to run it"
14
- "cuckoo:PXE start with proxy-dhcp"
15
- "dad:ask help from daddy - TUI configuration helper"
16
- "export\:deb:export deb/docs/iso to the destination host"
17
- "export\:iso:export iso in the destination host"
18
- "install:krill: the CLI system installer - the egg became a penguin!"
19
- "krill:krill: the CLI system installer - the egg became a penguin!"
20
- "kill:kill the eggs/free the nest"
21
- "mom:ask help from mommy - TUI helper"
22
- "produce:produce a live image from your system whithout your data"
23
- "status:informations about eggs status"
24
- "syncfrom:restore users and user data from a LUKS volumes"
25
- "syncto:Save users and users' data ENCRYPTED"
26
- "tools\:clean:clean system log, apt, etc"
27
- "tools\:ppa:add/remove repo"
28
- "tools\:skel:update skel from home configuration"
29
- "tools\:stat:get statistics from sourceforge"
30
- "tools\:yolk:configure eggs to install without internet"
31
- "update:update the Penguins' eggs tool"
32
- "wardrobe\:get:get warorobe"
33
- "wardrobe\:list:list costumes and accessoires in wardrobe"
34
- "wardrobe\:show:show costumes/accessories in wardrobe"
35
- "wardrobe\:wear:wear costume/accessories from wardrobe"
36
- "autocomplete:display autocomplete installation instructions"
37
- "help:Display help for <%= config.bin %>."
38
- "version:"
39
- )
4
+ _eggs_export() {
5
+ local context state state_descr line
6
+ typeset -A opt_args
7
+
8
+ _arguments -C "1: :->cmds" "*::arg:->args"
9
+
10
+ case "$state" in
11
+ cmds)
12
+ _values "completions" \
13
+ "deb[export deb/docs/iso to the destination host]" \
14
+ "iso[export iso in the destination host]" \
15
+
16
+ ;;
17
+ args)
18
+ case $line[1] in
19
+ "deb")
20
+ _arguments -S \
21
+ "(-a --all)"{-a,--all}"[export all archs]" \
22
+ "(-c --clean)"{-c,--clean}"[remove old .deb before to copy]" \
23
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
24
+ "(-v --verbose)"{-v,--verbose}"[verbose]" \
25
+ --help"[Show help for command]" \
26
+ "*: :_files"
27
+ ;;
28
+ "iso")
29
+ _arguments -S \
30
+ "(-C --checksum)"{-C,--checksum}"[export checksums md5 and sha256]" \
31
+ "(-c --clean)"{-c,--clean}"[delete old ISOs before to copy]" \
32
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
33
+ "(-v --verbose)"{-v,--verbose}"[verbose]" \
34
+ --help"[Show help for command]" \
35
+ "*: :_files"
36
+ ;;
37
+
38
+ esac
39
+ ;;
40
+ esac
41
+ }
40
42
 
41
- _set_flags () {
42
- case $_command_id in
43
- adapt)
44
- _command_flags=(
45
- "--help[Show CLI help.]"
46
- "--verbose[]"
47
- )
48
- ;;
43
+ _eggs_tools() {
44
+ local context state state_descr line
45
+ typeset -A opt_args
46
+
47
+ _arguments -C "1: :->cmds" "*::arg:->args"
48
+
49
+ case "$state" in
50
+ cmds)
51
+ _values "completions" \
52
+ "clean[clean system log, apt, etc]" \
53
+ "ppa[add/remove repo]" \
54
+ "skel[update skel from home configuration]" \
55
+ "stat[get statistics from sourceforge]" \
56
+ "yolk[configure eggs to install without internet]" \
57
+
58
+ ;;
59
+ args)
60
+ case $line[1] in
61
+ "clean")
62
+ _arguments -S \
63
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
64
+ "(-n --nointeractive)"{-n,--nointeractive}"[no user interaction]" \
65
+ "(-v --verbose)"{-v,--verbose}"[verbose]" \
66
+ --help"[Show help for command]" \
67
+ "*: :_files"
68
+ ;;
69
+ "ppa")
70
+ _arguments -S \
71
+ "(-a --add)"{-a,--add}"[add penguins-eggs PPA repository]" \
72
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
73
+ "(-n --nointeractive)"{-n,--nointeractive}"[no user interaction]" \
74
+ "(-r --remove)"{-r,--remove}"[remove penguins-eggs PPA repository]" \
75
+ "(-v --verbose)"{-v,--verbose}"[verbose]" \
76
+ --help"[Show help for command]" \
77
+ "*: :_files"
78
+ ;;
79
+ "skel")
80
+ _arguments -S \
81
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
82
+ "(-u --user)"{-u,--user}"[user to be used]:file:_files" \
83
+ "(-v --verbose)"{-v,--verbose}"[]" \
84
+ --help"[Show help for command]" \
85
+ "*: :_files"
86
+ ;;
87
+ "stat")
88
+ _arguments -S \
89
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
90
+ "(-m --month)"{-m,--month}"[current month]" \
91
+ "(-y --year)"{-y,--year}"[current year]" \
92
+ --help"[Show help for command]" \
93
+ "*: :_files"
94
+ ;;
95
+ "yolk")
96
+ _arguments -S \
97
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
98
+ "(-v --verbose)"{-v,--verbose}"[]" \
99
+ --help"[Show help for command]" \
100
+ "*: :_files"
101
+ ;;
102
+
103
+ esac
104
+ ;;
105
+ esac
106
+ }
49
107
 
50
- analyze)
51
- _command_flags=(
52
- "--help[Show CLI help.]"
53
- "--verbose[verbose]"
54
- )
55
- ;;
108
+ _eggs_wardrobe() {
109
+ local context state state_descr line
110
+ typeset -A opt_args
111
+
112
+ _arguments -C "1: :->cmds" "*::arg:->args"
113
+
114
+ case "$state" in
115
+ cmds)
116
+ _values "completions" \
117
+ "get[get warorobe]" \
118
+ "list[list costumes and accessoires in wardrobe]" \
119
+ "show[show costumes/accessories in wardrobe]" \
120
+ "wear[wear costume/accessories from wardrobe]" \
121
+
122
+ ;;
123
+ args)
124
+ case $line[1] in
125
+ "get")
126
+ _arguments -S \
127
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
128
+ "(-v --verbose)"{-v,--verbose}"[]" \
129
+ --help"[Show help for command]" \
130
+ "*: :_files"
131
+ ;;
132
+ "list")
133
+ _arguments -S \
134
+ "(-d --distro)"{-d,--distro}"[distro]:file:_files" \
135
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
136
+ "(-v --verbose)"{-v,--verbose}"[]" \
137
+ --help"[Show help for command]" \
138
+ "*: :_files"
139
+ ;;
140
+ "show")
141
+ _arguments -S \
142
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
143
+ "(-j --json)"{-j,--json}"[output JSON]" \
144
+ "(-v --verbose)"{-v,--verbose}"[]" \
145
+ "(-w --wardrobe)"{-w,--wardrobe}"[wardrobe]:file:_files" \
146
+ --help"[Show help for command]" \
147
+ "*: :_files"
148
+ ;;
149
+ "wear")
150
+ _arguments -S \
151
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
152
+ "(-a --no_accessories)"{-a,--no_accessories}"[not install accessories]" \
153
+ "(-f --no_firmwares)"{-f,--no_firmwares}"[not install firmwares]" \
154
+ "(-v --verbose)"{-v,--verbose}"[]" \
155
+ "(-w --wardrobe)"{-w,--wardrobe}"[wardrobe]:file:_files" \
156
+ --help"[Show help for command]" \
157
+ "*: :_files"
158
+ ;;
159
+
160
+ esac
161
+ ;;
162
+ esac
163
+ }
56
164
 
57
- calamares)
58
- _command_flags=(
59
- "--help[Show CLI help.]"
60
- "--install[install calamares and its dependencies]"
61
- "--nointeractive[no user interaction]"
62
- "--policies[configure calamares policies]"
63
- "--release[release: remove calamares and all its dependencies after the installation]"
64
- "--remove[remove calamares and its dependencies]"
65
- "--theme=-[theme/branding for eggs and calamares]:"
66
- "--verbose[]"
67
- )
68
- ;;
69
165
 
166
+ _eggs() {
167
+ local context state state_descr line
168
+ typeset -A opt_args
169
+
170
+ _arguments -C "1: :->cmds" "*::arg:->args"
171
+
172
+ case "$state" in
173
+ cmds)
174
+ _values "completions" \
175
+ "export[export deb/docs/iso to the destination host]" \
176
+ "tools[clean system log, apt, etc]" \
177
+ "wardrobe[get warorobe]" \
178
+ "adapt[adapt monitor resolution for VM only]" \
179
+ "analyze[analyze for syncto]" \
180
+ "calamares[configure calamares or install or configure it]" \
181
+ "config[Configure eggs to run it]" \
182
+ "cuckoo[PXE start with proxy-dhcp]" \
183
+ "dad[ask help from daddy - TUI configuration helper]" \
184
+ "install[krill: the CLI system installer - the egg became a penguin!]" \
185
+ "krill[krill: the CLI system installer - the egg became a penguin!]" \
186
+ "kill[kill the eggs/free the nest]" \
187
+ "mom[ask help from mommy - TUI helper]" \
188
+ "produce[produce a live image from your system whithout your data]" \
189
+ "status[informations about eggs status]" \
190
+ "syncfrom[restore users and user data from a LUKS volumes]" \
191
+ "syncto[Save users and users' data ENCRYPTED]" \
192
+ "update[update the Penguins' eggs tool]" \
193
+ "autocomplete[Display autocomplete installation instructions.]" \
194
+ "help[Display help for eggs.]" \
195
+ "version[]" \
196
+
197
+ ;;
198
+ args)
199
+ case $line[1] in
200
+ export)
201
+ _eggs_export
202
+ ;;
203
+ tools)
204
+ _eggs_tools
205
+ ;;
206
+ wardrobe)
207
+ _eggs_wardrobe
208
+ ;;
209
+ adapt)
210
+ _arguments -S \
211
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
212
+ "(-v --verbose)"{-v,--verbose}"[]" \
213
+ --help"[Show help for command]" \
214
+ "*: :_files" ;;
215
+ analyze)
216
+ _arguments -S \
217
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
218
+ "(-v --verbose)"{-v,--verbose}"[verbose]" \
219
+ --help"[Show help for command]" \
220
+ "*: :_files" ;;
221
+ calamares)
222
+ _arguments -S \
223
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
224
+ "(-i --install)"{-i,--install}"[install calamares and its dependencies]" \
225
+ "(-n --nointeractive)"{-n,--nointeractive}"[no user interaction]" \
226
+ "(-p --policies)"{-p,--policies}"[configure calamares policies]" \
227
+ "(-r --release)"{-r,--release}"[release: remove calamares and all its dependencies after the installation]" \
228
+ --remove"[remove calamares and its dependencies]" \
229
+ --theme"[theme/branding for eggs and calamares]:file:_files" \
230
+ "(-v --verbose)"{-v,--verbose}"[]" \
231
+ --help"[Show help for command]" \
232
+ "*: :_files" ;;
70
233
  config)
71
- _command_flags=(
72
- "--clean[remove old configuration before to create new one]"
73
- "--help[Show CLI help.]"
74
- "--nointeractive[no user interaction]"
75
- "--noicons[no icons]"
76
- "--verbose[verbose]"
77
- )
78
- ;;
79
-
234
+ _arguments -S \
235
+ "(-c --clean)"{-c,--clean}"[remove old configuration before to create new one]" \
236
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
237
+ "(-n --nointeractive)"{-n,--nointeractive}"[no user interaction]" \
238
+ "(-v --verbose)"{-v,--verbose}"[verbose]" \
239
+ --help"[Show help for command]" \
240
+ "*: :_files" ;;
80
241
  cuckoo)
81
- _command_flags=(
82
- "--help[Show CLI help.]"
83
- )
84
- ;;
85
-
242
+ _arguments -S \
243
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
244
+ --help"[Show help for command]" \
245
+ "*: :_files" ;;
86
246
  dad)
87
- _command_flags=(
88
- "--clean[remove old configuration before to create]"
89
- "--default[remove old configuration and force default]"
90
- "--help[Show CLI help.]"
91
- "--verbose[]"
92
- )
93
- ;;
94
-
95
- export:deb)
96
- _command_flags=(
97
- "--all[export all archs]"
98
- "--clean[remove old .deb before to copy]"
99
- "--help[Show CLI help.]"
100
- "--verbose[verbose]"
101
- )
102
- ;;
103
-
104
- export:iso)
105
- _command_flags=(
106
- "--clean[delete old ISOs before to copy]"
107
- "--checksum[export checksums md5 and sha256]"
108
- "--help[Show CLI help.]"
109
- "--verbose[verbose]"
110
- )
111
- ;;
112
-
247
+ _arguments -S \
248
+ "(-c --clean)"{-c,--clean}"[remove old configuration before to create]" \
249
+ "(-d --default)"{-d,--default}"[remove old configuration and force default]" \
250
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
251
+ "(-v --verbose)"{-v,--verbose}"[]" \
252
+ --help"[Show help for command]" \
253
+ "*: :_files" ;;
113
254
  install)
114
- _command_flags=(
115
- "--btrfs[Format btrfs]"
116
- "--crypted[Crypted CLI installation]"
117
- "--custom=-[custom unattended configuration]:"
118
- "--domain=-[Domain name, defult: .local]:"
119
- "--halt[Halt the system after installation]"
120
- "--help[Show CLI help.]"
121
- "--ip[hostname as ip, eg: ip-192-168-1-33]"
122
- "--nointeractive[no user interaction]"
123
- "--none[Swap none: 256M]"
124
- "--pve[Proxmox VE install]"
125
- "--random[Add random to hostname, eg: colibri-ay412dt]"
126
- "--small[Swap small: RAM]"
127
- "--suspend[Swap suspend: RAM x 2]"
128
- "--unattended[Unattended installation]"
129
- "--verbose[Verbose]"
130
- )
131
- ;;
132
-
255
+ _arguments -S \
256
+ "(-b --btrfs)"{-b,--btrfs}"[Format btrfs]" \
257
+ "(-c --chroot)"{-c,--chroot}"[chroot before to end]" \
258
+ "(-k --crypted)"{-k,--crypted}"[Crypted CLI installation]" \
259
+ "(-d --domain)"{-d,--domain}"[Domain name, defult: .local]:file:_files" \
260
+ "(-H --halt)"{-H,--halt}"[Halt the system after installation]" \
261
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
262
+ "(-i --ip)"{-i,--ip}"[hostname as ip, eg: ip-192-168-1-33]" \
263
+ "(-n --nointeractive)"{-n,--nointeractive}"[no user interaction]" \
264
+ "(-N --none)"{-N,--none}"[Swap none: 256M]" \
265
+ "(-p --pve)"{-p,--pve}"[Proxmox VE install]" \
266
+ "(-r --random)"{-r,--random}"[Add random to hostname, eg: colibri-ay412dt]" \
267
+ "(-s --small)"{-s,--small}"[Swap small: RAM]" \
268
+ "(-S --suspend)"{-S,--suspend}"[Swap suspend: RAM x 2]" \
269
+ "(-u --unattended)"{-u,--unattended}"[Unattended installation]" \
270
+ "(-v --verbose)"{-v,--verbose}"[Verbose]" \
271
+ --help"[Show help for command]" \
272
+ "*: :_files" ;;
133
273
  krill)
134
- _command_flags=(
135
- "--btrfs[Format btrfs]"
136
- "--crypted[Crypted CLI installation]"
137
- "--custom=-[custom unattended configuration]:"
138
- "--domain=-[Domain name, defult: .local]:"
139
- "--halt[Halt the system after installation]"
140
- "--help[Show CLI help.]"
141
- "--ip[hostname as ip, eg: ip-192-168-1-33]"
142
- "--nointeractive[no user interaction]"
143
- "--none[Swap none: 256M]"
144
- "--pve[Proxmox VE install]"
145
- "--random[Add random to hostname, eg: colibri-ay412dt]"
146
- "--small[Swap small: RAM]"
147
- "--suspend[Swap suspend: RAM x 2]"
148
- "--unattended[Unattended installation]"
149
- "--verbose[Verbose]"
150
- )
151
- ;;
152
-
274
+ _arguments -S \
275
+ "(-b --btrfs)"{-b,--btrfs}"[Format btrfs]" \
276
+ "(-c --chroot)"{-c,--chroot}"[chroot before to end]" \
277
+ "(-k --crypted)"{-k,--crypted}"[Crypted CLI installation]" \
278
+ "(-d --domain)"{-d,--domain}"[Domain name, defult: .local]:file:_files" \
279
+ "(-H --halt)"{-H,--halt}"[Halt the system after installation]" \
280
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
281
+ "(-i --ip)"{-i,--ip}"[hostname as ip, eg: ip-192-168-1-33]" \
282
+ "(-n --nointeractive)"{-n,--nointeractive}"[no user interaction]" \
283
+ "(-N --none)"{-N,--none}"[Swap none: 256M]" \
284
+ "(-p --pve)"{-p,--pve}"[Proxmox VE install]" \
285
+ "(-r --random)"{-r,--random}"[Add random to hostname, eg: colibri-ay412dt]" \
286
+ "(-s --small)"{-s,--small}"[Swap small: RAM]" \
287
+ "(-S --suspend)"{-S,--suspend}"[Swap suspend: RAM x 2]" \
288
+ "(-u --unattended)"{-u,--unattended}"[Unattended installation]" \
289
+ "(-v --verbose)"{-v,--verbose}"[Verbose]" \
290
+ --help"[Show help for command]" \
291
+ "*: :_files" ;;
153
292
  kill)
154
- _command_flags=(
155
- "--help[Show CLI help.]"
156
- "--nointeractive[no user interaction]"
157
- "--isos[erase all ISOs on remote mount]"
158
- "--verbose[verbose]"
159
- )
160
- ;;
161
-
293
+ _arguments -S \
294
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
295
+ "(-i --isos)"{-i,--isos}"[erase all ISOs on remote mount]" \
296
+ "(-n --nointeractive)"{-n,--nointeractive}"[no user interaction]" \
297
+ "(-v --verbose)"{-v,--verbose}"[verbose]" \
298
+ --help"[Show help for command]" \
299
+ "*: :_files" ;;
162
300
  mom)
163
- _command_flags=(
164
- "--help[Show CLI help.]"
165
- )
166
- ;;
167
-
301
+ _arguments -S \
302
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
303
+ --help"[Show help for command]" \
304
+ "*: :_files" ;;
168
305
  produce)
169
- _command_flags=(
170
- "--addons=-[addons to be used: adapt, ichoice, pve, rsupport]:"
171
- "--basename=-[basename]:"
172
- "--clone[clone]"
173
- "--cryptedclone[crypted clone]"
174
- "--excludes=-[use: custom, home, mine, usr, var]:"
175
- "--help[Show CLI help.]"
176
- "--links=-[desktop links]:"
177
- "--max[max compression]"
178
- "--noicons[no icons on desktop]"
179
- "--nointeractive[no user interaction]"
180
- "--prefix=-[prefix]:"
181
- "--release[release: max compression, remove penguins-eggs and calamares after installation]"
182
- "--script[script mode. Generate scripts to manage iso build]"
183
- "--standard[standard compression]"
184
- "--theme=-[theme for livecd, calamares branding and partitions]:"
185
- "--unsecure[/root contents are included on live]"
186
- "--verbose[verbose]"
187
- "--yolk[force yolk renew]"
188
- )
189
- ;;
190
-
306
+ _arguments -S \
307
+ "*"--addons"[addons to be used: adapt, ichoice, pve, rsupport]:file:_files" \
308
+ --basename"[basename]:file:_files" \
309
+ "(-c --clone)"{-c,--clone}"[clone]" \
310
+ "(-C --cryptedclone)"{-C,--cryptedclone}"[crypted clone]" \
311
+ "*"--excludes"[use: custom, home, mine, usr, var]:file:_files" \
312
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
313
+ "*"--links"[desktop links]:file:_files" \
314
+ "(-m --max)"{-m,--max}"[max compression: xz -Xbcj ...]" \
315
+ "(-N --noicon)"{-N,--noicon}"[no icon eggs on desktop]" \
316
+ "(-n --nointeractive)"{-n,--nointeractive}"[no user interaction]" \
317
+ "(-p --pendrive)"{-p,--pendrive}"[optimized for pendrive: zstd -b 1M -Xcompression-level 15]" \
318
+ "(-P --prefix)"{-P,--prefix}"[prefix]:file:_files" \
319
+ --release"[release: remove penguins-eggs, calamares and dependencies after installation]" \
320
+ "(-s --script)"{-s,--script}"[script mode. Generate scripts to manage iso build]" \
321
+ "(-f --standard)"{-f,--standard}"[standard compression: xz -b 1M]" \
322
+ --theme"[theme for livecd, calamares branding and partitions]:file:_files" \
323
+ "(-u --unsecure)"{-u,--unsecure}"[/root contents are included on live]" \
324
+ "(-v --verbose)"{-v,--verbose}"[verbose]" \
325
+ "(-y --yolk)"{-y,--yolk}"[force yolk renew]" \
326
+ --help"[Show help for command]" \
327
+ "*: :_files" ;;
191
328
  status)
192
- _command_flags=(
193
- "--help[Show CLI help.]"
194
- "--verbose[]"
195
- )
196
- ;;
197
-
329
+ _arguments -S \
330
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
331
+ "(-v --verbose)"{-v,--verbose}"[]" \
332
+ --help"[Show help for command]" \
333
+ "*: :_files" ;;
198
334
  syncfrom)
199
- _command_flags=(
200
- "--delete=-[rsync --delete delete extraneous files from dest dirs]:"
201
- "--file=-[file containing luks-volume encrypted]:"
202
- "--help[Show CLI help.]"
203
- "--rootdir=-[rootdir of the installed system, when used from live]:"
204
- "--verbose[verbose]"
205
- )
206
- ;;
207
-
335
+ _arguments -S \
336
+ --delete"[rsync --delete delete extraneous files from dest dirs]:file:_files" \
337
+ "(-f --file)"{-f,--file}"[file containing luks-volume encrypted]:file:_files" \
338
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
339
+ "(-r --rootdir)"{-r,--rootdir}"[rootdir of the installed system, when used from live]:file:_files" \
340
+ "(-v --verbose)"{-v,--verbose}"[verbose]" \
341
+ --help"[Show help for command]" \
342
+ "*: :_files" ;;
208
343
  syncto)
209
- _command_flags=(
210
- "--file=-[file luks-volume encrypted]:"
211
- "--exclusion[use: exclude.list.d/clone.list]"
212
- "--help[Show CLI help.]"
213
- "--verbose[verbose]"
214
- )
215
- ;;
216
-
217
- tools:clean)
218
- _command_flags=(
219
- "--help[Show CLI help.]"
220
- "--nointeractive[no user interaction]"
221
- "--verbose[verbose]"
222
- )
223
- ;;
224
-
225
- tools:ppa)
226
- _command_flags=(
227
- "--add[add penguins-eggs PPA repository]"
228
- "--help[Show CLI help.]"
229
- "--nointeractive[no user interaction]"
230
- "--remove[remove penguins-eggs PPA repository]"
231
- "--verbose[verbose]"
232
- )
233
- ;;
234
-
235
- tools:skel)
236
- _command_flags=(
237
- "--help[Show CLI help.]"
238
- "--user=-[user to be used]:"
239
- "--verbose[]"
240
- )
241
- ;;
242
-
243
- tools:stat)
244
- _command_flags=(
245
- "--help[Show CLI help.]"
246
- "--month[current month]"
247
- "--year[current year]"
248
- )
249
- ;;
250
-
251
- tools:yolk)
252
- _command_flags=(
253
- "--help[Show CLI help.]"
254
- "--verbose[]"
255
- )
256
- ;;
257
-
344
+ _arguments -S \
345
+ "(-e --excludes)"{-e,--excludes}"[use: exclude.list.d/home.list]" \
346
+ "(-f --file)"{-f,--file}"[file luks-volume encrypted]:file:_files" \
347
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
348
+ "(-v --verbose)"{-v,--verbose}"[verbose]" \
349
+ --help"[Show help for command]" \
350
+ "*: :_files" ;;
258
351
  update)
259
- _command_flags=(
260
- "--help[Show CLI help.]"
261
- "--verbose[verbose]"
262
- )
263
- ;;
264
-
265
- wardrobe:get)
266
- _command_flags=(
267
- "--help[Show CLI help.]"
268
- "--verbose[]"
269
- )
270
- ;;
271
-
272
- wardrobe:list)
273
- _command_flags=(
274
- "--help[Show CLI help.]"
275
- "--distro=-[distro]:"
276
- "--verbose[]"
277
- )
278
- ;;
279
-
280
- wardrobe:show)
281
- _command_flags=(
282
- "--help[Show CLI help.]"
283
- "--json[output JSON]"
284
- "--verbose[]"
285
- "--wardrobe=-[wardrobe]:"
286
- )
287
- ;;
288
-
289
- wardrobe:wear)
290
- _command_flags=(
291
- "--help[Show CLI help.]"
292
- "--no_accessories[not install accessories]"
293
- "--no_firmwares[not install firmwares]"
294
- "--verbose[]"
295
- "--wardrobe=-[wardrobe]:"
296
- )
297
- ;;
298
-
352
+ _arguments -S \
353
+ "(-h --help)"{-h,--help}"[Show CLI help.]" \
354
+ "(-v --verbose)"{-v,--verbose}"[verbose]" \
355
+ --help"[Show help for command]" \
356
+ "*: :_files" ;;
299
357
  autocomplete)
300
- _command_flags=(
301
- "--refresh-cache[Refresh cache (ignores displaying instructions)]"
302
- )
303
- ;;
304
-
358
+ _arguments -S \
359
+ "(-r --refresh-cache)"{-r,--refresh-cache}"[Refresh cache (ignores displaying instructions)]" \
360
+ --help"[Show help for command]" \
361
+ "*: :_files" ;;
305
362
  help)
306
- _command_flags=(
307
- "--nested-commands[Include all nested commands in the output.]"
308
- )
309
- ;;
310
-
363
+ _arguments -S \
364
+ "(-n --nested-commands)"{-n,--nested-commands}"[Include all nested commands in the output.]" \
365
+ --help"[Show help for command]" \
366
+ "*: :_files" ;;
311
367
  version)
312
- _command_flags=(
313
- "--json[Format output as json.]"
314
- "--verbose[Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.]"
315
- )
316
- ;;
317
-
318
- esac
319
- }
320
- ## end public cli commands & flags
321
-
322
- _complete_commands () {
323
- _describe -t all-commands "all commands" _all_commands
324
- }
325
-
326
- if [ $CURRENT -gt 2 ]; then
327
- if [[ "$_cur" == -* ]]; then
328
- _set_flags
329
- else
330
- _path_files
331
- fi
332
- fi
333
-
334
-
335
- _arguments -S '1: :_complete_commands' \
336
- $_command_flags
368
+ _arguments -S \
369
+ --json"[Format output as json.]" \
370
+ --verbose"[Show additional information about the CLI.]" \
371
+ --help"[Show help for command]" \
372
+ "*: :_files" ;;
373
+ esac
374
+
375
+ ;;
376
+ esac
337
377
  }
338
378
 
339
379
  _eggs