mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-01 14:21:19 +00:00
Add clink utils (#2926)
* Add clink utils * Apply suggestions from code review Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com> Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
This commit is contained in:
parent
8a06c3a9d4
commit
2d48c0a7e8
33
bucket/clink-completions.json
Normal file
33
bucket/clink-completions.json
Normal file
@ -0,0 +1,33 @@
|
||||
{
|
||||
"version": "0.3.7",
|
||||
"description": "Completions for various commands through Clink",
|
||||
"homepage": "https://github.com/vladimir-kotikov/clink-completions",
|
||||
"license": "MIT",
|
||||
"suggest": {
|
||||
"Clink": "clink"
|
||||
},
|
||||
"url": "https://github.com/vladimir-kotikov/clink-completions/archive/0.3.7.zip",
|
||||
"hash": "2136a9b868fe05af7fb07a3b8a3c878b551bf6601321c91a6390376b47c1fad6",
|
||||
"extract_dir": "clink-completions-0.3.7",
|
||||
"installer": {
|
||||
"script": [
|
||||
"if (Get-Command clink -ErrorAction SilentlyContinue) {",
|
||||
" clink installscripts \"$dir\"",
|
||||
"} else {",
|
||||
" warn 'Clink installation not found. Please manually install these scripts.'",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
"uninstaller": {
|
||||
"script": [
|
||||
"if (Get-Command clink -ErrorAction SilentlyContinue) {",
|
||||
" clink uninstallscripts \"$dir\"",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
"checkver": "github",
|
||||
"autoupdate": {
|
||||
"url": "https://github.com/vladimir-kotikov/clink-completions/archive/$version.zip",
|
||||
"extract_dir": "clink-completions-$version"
|
||||
}
|
||||
}
|
||||
35
bucket/clink-flex-prompt.json
Normal file
35
bucket/clink-flex-prompt.json
Normal file
@ -0,0 +1,35 @@
|
||||
{
|
||||
"version": "0.5",
|
||||
"description": "Flexible customizable prompt for Clink",
|
||||
"homepage": "https://github.com/chrisant996/clink-flex-prompt",
|
||||
"license": "MIT",
|
||||
"suggest": {
|
||||
"Clink": "clink"
|
||||
},
|
||||
"url": "https://github.com/chrisant996/clink-flex-prompt/releases/download/v0.5/clink-flex-prompt-0.5.zip",
|
||||
"hash": "16e0e8a58d9f12acb9e29deafd258f033adb9d7ecaa81f9ea43a952827b298c6",
|
||||
"installer": {
|
||||
"script": [
|
||||
"if (Get-Command clink -ErrorAction SilentlyContinue) {",
|
||||
" clink installscripts \"$dir\"",
|
||||
"} elseif ($Env:CMDER_ROOT) {",
|
||||
" & \"$Env:CMDER_ROOT\\vendor\\clink\\clink.bat\" installscripts \"$dir\"",
|
||||
"} else {",
|
||||
" warn 'Clink or Cmder installation not found. Please manually install these scripts.'",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
"uninstaller": {
|
||||
"script": [
|
||||
"if (Get-Command clink -ErrorAction SilentlyContinue) {",
|
||||
" clink uninstallscripts \"$dir\"",
|
||||
"} elseif ($Env:CMDER_ROOT) {",
|
||||
" & \"$Env:CMDER_ROOT\\vendor\\clink\\clink.bat\" uninstallscripts \"$dir\"",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
"checkver": "github",
|
||||
"autoupdate": {
|
||||
"url": "https://github.com/chrisant996/clink-flex-prompt/releases/download/v$version/clink-flex-prompt-$version.zip"
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user