fix(cli): print the skill hint from PowerShell installers only when difyctl is on PATH

This commit is contained in:
GareArc
2026-10-16 00:51:38 +00:00
committed by GitHub
parent 9f9b6bd75a
commit aecabdc929
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -59,7 +59,9 @@ function Install-DifyctlBinary([string]$dlUrl, [string]$sha, [string]$version, [
Write-Host "$installDir is not on your PATH. Add it with:"
Write-Host " [Environment]::SetEnvironmentVariable('PATH', `"$installDir;`$env:PATH`", 'User')"
}
Write-SkillHint
else {
Write-SkillHint
}
}
function Install-DifyctlR2 {
+1 -1
View File
@@ -161,8 +161,8 @@ function Invoke-Main {
}
else {
Write-Host 'verify: run "difyctl version"'
Write-SkillHint
}
Write-SkillHint
}
finally {
Remove-Item -Recurse -Force $tmp -ErrorAction SilentlyContinue