Skip to content

Conversation

@rulasg
Copy link
Owner

@rulasg rulasg commented Mar 25, 2025

Introduce a new command to install the Salesforce CLI via npm, including checks for npm installation and Salesforce CLI status. Enhance console output for better user feedback during the installation and configuration process.


function Write-ToConsole{
param(
[Parameter(ValueFromPipeline)][string]$Color = "Magenta",

Check warning

Code scanning / PSScriptAnalyzer

Command accepts pipeline input but has not defined a process block. Warning

Command accepts pipeline input but has not defined a process block.
function Write-ToConsole{
param(
[Parameter(ValueFromPipeline)][string]$Color = "Magenta",
[Parameter(ValueFromPipeline, Position=0)][string]$Message

Check warning

Code scanning / PSScriptAnalyzer

Command accepts pipeline input but has not defined a process block. Warning

Command accepts pipeline input but has not defined a process block.
[Parameter(ValueFromPipeline, Position=0)][string]$Message

)
Write-Host $message -ForegroundColor $Color

Check warning

Code scanning / PSScriptAnalyzer

File 'MyWrite.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. Warning

File 'MyWrite.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
@rulasg rulasg temporarily deployed to powershellgallery March 25, 2025 18:30 — with GitHub Actions Inactive
@rulasg rulasg merged commit 58b48ab into main Mar 25, 2025
4 checks passed
@rulasg rulasg deleted the install-Salesforceclient branch March 25, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants