fpf-cli 1.6.56 → 1.6.58

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fpf-cli",
3
- "version": "1.6.56",
3
+ "version": "1.6.58",
4
4
  "description": "Cross-platform fuzzy package finder powered by fzf",
5
5
  "bin": {
6
6
  "fpf": "fpf"
@@ -9,7 +9,6 @@
9
9
  "fpf",
10
10
  "bin/fpf-go-*",
11
11
  "bin/fpf-go-*.exe",
12
- "lib/fpf/*.sh",
13
12
  "README.md",
14
13
  "LICENSE",
15
14
  "fpf.png"
@@ -1,335 +0,0 @@
1
- manager_execute_action() {
2
- local manager="$1"
3
- local action="$2"
4
- shift 2
5
- local package=""
6
- local pkg=""
7
-
8
- if [[ "${FPF_USE_GO_MANAGER_ACTIONS:-0}" == "1" && -n "${FPF_SELF_PATH:-}" && -x "${FPF_SELF_PATH}" ]]; then
9
- "${FPF_SELF_PATH}" --go-manager-action "${action}" --go-manager "${manager}" -- "$@"
10
- return $?
11
- fi
12
-
13
- case "${manager}" in
14
- apt)
15
- case "${action}" in
16
- install)
17
- run_as_root apt-get install -y "$@"
18
- ;;
19
- remove)
20
- run_as_root apt-get remove -y "$@"
21
- ;;
22
- show_info)
23
- package="${1:-}"
24
- cat <(apt-cache show "${package}" 2>/dev/null) <(printf "\n") <(dpkg -L "${package}" 2>/dev/null)
25
- ;;
26
- update)
27
- run_as_root apt-get update
28
- run_as_root apt-get upgrade -y
29
- ;;
30
- refresh)
31
- run_as_root apt-get update
32
- ;;
33
- *)
34
- return 1
35
- ;;
36
- esac
37
- ;;
38
- dnf)
39
- case "${action}" in
40
- install)
41
- run_as_root dnf install -y "$@"
42
- ;;
43
- remove)
44
- run_as_root dnf remove -y "$@"
45
- ;;
46
- show_info)
47
- package="${1:-}"
48
- cat <(dnf info "${package}" 2>/dev/null) <(printf "\n") <(rpm -ql "${package}" 2>/dev/null)
49
- ;;
50
- update)
51
- run_as_root dnf upgrade -y
52
- ;;
53
- refresh)
54
- run_as_root dnf makecache
55
- ;;
56
- *)
57
- return 1
58
- ;;
59
- esac
60
- ;;
61
- pacman)
62
- case "${action}" in
63
- install)
64
- run_as_root pacman -S --needed "$@"
65
- ;;
66
- remove)
67
- run_as_root pacman -Rsn "$@"
68
- ;;
69
- show_info)
70
- package="${1:-}"
71
- cat <(pacman -Qi "${package}" 2>/dev/null || pacman -Si "${package}" 2>/dev/null) <(printf "\n") <(pacman -Ql "${package}" 2>/dev/null)
72
- ;;
73
- update)
74
- run_as_root pacman -Syu
75
- ;;
76
- refresh)
77
- run_as_root pacman -Sy
78
- ;;
79
- *)
80
- return 1
81
- ;;
82
- esac
83
- ;;
84
- zypper)
85
- case "${action}" in
86
- install)
87
- run_as_root zypper --non-interactive install --auto-agree-with-licenses "$@"
88
- ;;
89
- remove)
90
- run_as_root zypper --non-interactive remove "$@"
91
- ;;
92
- show_info)
93
- package="${1:-}"
94
- zypper --non-interactive info "${package}" 2>/dev/null
95
- ;;
96
- update)
97
- run_as_root zypper --non-interactive refresh
98
- run_as_root zypper --non-interactive update
99
- ;;
100
- refresh)
101
- run_as_root zypper --non-interactive refresh
102
- ;;
103
- *)
104
- return 1
105
- ;;
106
- esac
107
- ;;
108
- emerge)
109
- case "${action}" in
110
- install)
111
- run_as_root emerge --ask=n --verbose "$@"
112
- ;;
113
- remove)
114
- run_as_root emerge --ask=n --deselect "$@"
115
- run_as_root emerge --ask=n --depclean "$@"
116
- ;;
117
- show_info)
118
- package="${1:-}"
119
- emerge --search --color=n "${package}" 2>/dev/null
120
- ;;
121
- update)
122
- run_as_root emerge --sync
123
- run_as_root emerge --ask=n --update --deep --newuse @world
124
- ;;
125
- refresh)
126
- run_as_root emerge --sync
127
- ;;
128
- *)
129
- return 1
130
- ;;
131
- esac
132
- ;;
133
- brew)
134
- case "${action}" in
135
- install)
136
- brew install "$@"
137
- ;;
138
- remove)
139
- brew uninstall "$@"
140
- ;;
141
- show_info)
142
- package="${1:-}"
143
- brew info "${package}" 2>/dev/null
144
- ;;
145
- update)
146
- brew update
147
- brew upgrade
148
- ;;
149
- refresh)
150
- brew update
151
- ;;
152
- *)
153
- return 1
154
- ;;
155
- esac
156
- ;;
157
- winget)
158
- case "${action}" in
159
- install)
160
- for pkg in "$@"; do
161
- winget install --id "${pkg}" --exact --source winget --accept-package-agreements --accept-source-agreements --disable-interactivity
162
- done
163
- ;;
164
- remove)
165
- for pkg in "$@"; do
166
- winget uninstall --id "${pkg}" --exact --source winget --disable-interactivity
167
- done
168
- ;;
169
- show_info)
170
- package="${1:-}"
171
- winget show --id "${package}" --exact --source winget --accept-source-agreements --disable-interactivity 2>/dev/null
172
- ;;
173
- update)
174
- winget upgrade --all --source winget --accept-package-agreements --accept-source-agreements --disable-interactivity
175
- ;;
176
- refresh)
177
- winget source update --name winget --accept-source-agreements --disable-interactivity
178
- ;;
179
- *)
180
- return 1
181
- ;;
182
- esac
183
- ;;
184
- choco)
185
- case "${action}" in
186
- install)
187
- choco install "$@" -y
188
- ;;
189
- remove)
190
- choco uninstall "$@" -y
191
- ;;
192
- show_info)
193
- package="${1:-}"
194
- choco info "${package}" 2>/dev/null
195
- ;;
196
- update)
197
- choco upgrade all -y
198
- ;;
199
- refresh)
200
- choco source list --limit-output >/dev/null
201
- ;;
202
- *)
203
- return 1
204
- ;;
205
- esac
206
- ;;
207
- scoop)
208
- case "${action}" in
209
- install)
210
- scoop install "$@"
211
- ;;
212
- remove)
213
- scoop uninstall "$@"
214
- ;;
215
- show_info)
216
- package="${1:-}"
217
- scoop info "${package}" 2>/dev/null
218
- ;;
219
- update)
220
- scoop update
221
- scoop update "*"
222
- ;;
223
- refresh)
224
- scoop update
225
- ;;
226
- *)
227
- return 1
228
- ;;
229
- esac
230
- ;;
231
- snap)
232
- case "${action}" in
233
- install)
234
- for pkg in "$@"; do
235
- run_as_root snap install "${pkg}" 2>/dev/null || run_as_root snap install --classic "${pkg}"
236
- done
237
- ;;
238
- remove)
239
- run_as_root snap remove "$@"
240
- ;;
241
- show_info)
242
- package="${1:-}"
243
- snap info "${package}" 2>/dev/null
244
- ;;
245
- update)
246
- run_as_root snap refresh
247
- ;;
248
- refresh)
249
- run_as_root snap refresh --list
250
- ;;
251
- *)
252
- return 1
253
- ;;
254
- esac
255
- ;;
256
- flatpak)
257
- case "${action}" in
258
- install)
259
- for pkg in "$@"; do
260
- flatpak install -y --user flathub "${pkg}" 2>/dev/null ||
261
- flatpak install -y --user "${pkg}" 2>/dev/null ||
262
- run_as_root flatpak install -y flathub "${pkg}" 2>/dev/null ||
263
- run_as_root flatpak install -y "${pkg}"
264
- done
265
- ;;
266
- remove)
267
- flatpak uninstall -y --user "$@" 2>/dev/null || run_as_root flatpak uninstall -y "$@"
268
- ;;
269
- show_info)
270
- package="${1:-}"
271
- flatpak info "${package}" 2>/dev/null || flatpak remote-info flathub "${package}" 2>/dev/null
272
- ;;
273
- update)
274
- flatpak update -y --user 2>/dev/null || run_as_root flatpak update -y
275
- ;;
276
- refresh)
277
- ensure_flatpak_flathub_remote >/dev/null 2>&1 || true
278
- flatpak update -y --appstream --user 2>/dev/null || run_as_root flatpak update -y --appstream
279
- ;;
280
- *)
281
- return 1
282
- ;;
283
- esac
284
- ;;
285
- npm)
286
- case "${action}" in
287
- install)
288
- npm install -g "$@"
289
- ;;
290
- remove)
291
- npm uninstall -g "$@"
292
- ;;
293
- show_info)
294
- package="${1:-}"
295
- npm view "${package}" 2>/dev/null
296
- ;;
297
- update)
298
- npm update -g
299
- ;;
300
- refresh)
301
- npm cache verify
302
- ;;
303
- *)
304
- return 1
305
- ;;
306
- esac
307
- ;;
308
- bun)
309
- case "${action}" in
310
- install)
311
- bun add -g "$@"
312
- ;;
313
- remove)
314
- bun remove --global "$@"
315
- ;;
316
- show_info)
317
- package="${1:-}"
318
- bun info "${package}" 2>/dev/null || npm view "${package}" 2>/dev/null
319
- ;;
320
- update)
321
- bun update --global
322
- ;;
323
- refresh)
324
- bun pm cache >/dev/null
325
- ;;
326
- *)
327
- return 1
328
- ;;
329
- esac
330
- ;;
331
- *)
332
- return 1
333
- ;;
334
- esac
335
- }