-
-
Notifications
You must be signed in to change notification settings - Fork 0
Enhance Salesforce CLI installation and configuration functions #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| } | ||
|
|
||
| function Reset-MyInvokeCommandAlias{ | ||
| [CmdletBinding(SupportsShouldProcess)] |
Check warning
Code scanning / PSScriptAnalyzer
'Reset-MyInvokeCommandAlias' has the ShouldProcess attribute but does not call ShouldProcess/ShouldContinue. Warning
|
|
||
| } Export-ModuleMember -Function Install-SalesforceClient | ||
|
|
||
| function Test-NpmSetup{ |
Check notice
Code scanning / PSScriptAnalyzer
The cmdlet 'Test-NpmSetup' does not have a help comment. Note
|
|
||
| # Check for Salesforce CLI installed and install if not | ||
| $sfversion = Invoke-MyCommand -Command GetSalesforceCliVersion -ErrorAction SilentlyContinue | ||
| function Invoke-SfInstall{ |
Check notice
Code scanning / PSScriptAnalyzer
The cmdlet 'Invoke-SfInstall' does not have a help comment. Note
| if($null -eq $sfversion){ | ||
| "1. Salesforce Cli installation failed. Run ""npm install @salesforce/cli --global"" to install manually!!!" | Write-MyError | ||
| return | ||
| return $false |
Check notice
Code scanning / PSScriptAnalyzer
The cmdlet 'Invoke-SfInstall' returns an object of type 'System.Boolean' but this type is not declared in the OutputType attribute. Note
| return $false | ||
| } else{ | ||
| "1. Salesforce CLI installed. Version: $sfversion} " | Write-ToConsole -Color "Green" | ||
| return $true |
Check notice
Code scanning / PSScriptAnalyzer
The cmdlet 'Invoke-SfInstall' returns an object of type 'System.Boolean' but this type is not declared in the OutputType attribute. Note
| } Export-ModuleMember -Function Invoke-SfInstall | ||
|
|
||
| function Test-SfLogin{ | ||
| [CmdletBinding(SupportsShouldProcess)] |
Check warning
Code scanning / PSScriptAnalyzer
'Test-SfLogin' has the ShouldProcess attribute but does not call ShouldProcess/ShouldContinue. Warning
| # } | ||
| } Export-ModuleMember -Function Test-SfLogin | ||
|
|
||
| function Invoke-SfConfig{ |
Check notice
Code scanning / PSScriptAnalyzer
The cmdlet 'Invoke-SfConfig' does not have a help comment. Note
| } Export-ModuleMember -Function Test-SfLogin | ||
|
|
||
| function Invoke-SfConfig{ | ||
| [CmdletBinding(SupportsShouldProcess)] |
Check warning
Code scanning / PSScriptAnalyzer
'Invoke-SfConfig' has the ShouldProcess attribute but does not call ShouldProcess/ShouldContinue. Warning
| # } | ||
| } Export-ModuleMember -Function Invoke-SfConfig | ||
|
|
||
| function Resolve-Email{ |
Check notice
Code scanning / PSScriptAnalyzer
The cmdlet 'Resolve-Email' does not have a help comment. Note
| } Export-ModuleMember -Function Invoke-SfConfig | ||
|
|
||
| function Resolve-Email{ | ||
| [CmdletBinding(SupportsShouldProcess)] |
Check warning
Code scanning / PSScriptAnalyzer
'Resolve-Email' has the ShouldProcess attribute but does not call ShouldProcess/ShouldContinue. Warning
Introduce an email parameter to the Install-SalesforceClient function, improve command alias consistency, and refine the output method for configuration success messages.