Some checks failed
Detach Plugins / check (FlyGrep.vim) (push) Has been cancelled
Detach Plugins / check (GitHub.vim) (push) Has been cancelled
Detach Plugins / check (JavaUnit.vim) (push) Has been cancelled
Detach Plugins / check (SourceCounter.vim) (push) Has been cancelled
Detach Plugins / check (cpicker.nvim) (push) Has been cancelled
Detach Plugins / check (dein-ui.vim) (push) Has been cancelled
Detach Plugins / check (git.vim) (push) Has been cancelled
Detach Plugins / check (iedit.vim) (push) Has been cancelled
Detach Plugins / check (scrollbar.vim) (push) Has been cancelled
Detach Plugins / check (vim-chat) (push) Has been cancelled
Detach Plugins / check (vim-cheat) (push) Has been cancelled
Detach Plugins / check (vim-todo) (push) Has been cancelled
Detach Plugins / check (xmake.vim) (push) Has been cancelled
test / Linux (nvim, nightly) (push) Has been cancelled
test / Linux (nvim, v0.3.8) (push) Has been cancelled
test / Linux (nvim, v0.4.0) (push) Has been cancelled
test / Linux (nvim, v0.4.2) (push) Has been cancelled
test / Linux (nvim, v0.4.3) (push) Has been cancelled
test / Linux (nvim, v0.4.4) (push) Has been cancelled
test / Linux (nvim, v0.5.0) (push) Has been cancelled
test / Linux (nvim, v0.5.1) (push) Has been cancelled
test / Linux (nvim, v0.6.0) (push) Has been cancelled
test / Linux (nvim, v0.6.1) (push) Has been cancelled
test / Linux (nvim, v0.7.0) (push) Has been cancelled
test / Linux (nvim, v0.7.2) (push) Has been cancelled
test / Linux (nvim, v0.8.0) (push) Has been cancelled
test / Linux (nvim, v0.8.1) (push) Has been cancelled
test / Linux (nvim, v0.8.2) (push) Has been cancelled
test / Linux (nvim, v0.8.3) (push) Has been cancelled
test / Linux (nvim, v0.9.0) (push) Has been cancelled
test / Linux (nvim, v0.9.1) (push) Has been cancelled
test / Linux (true, vim, v7.4.052) (push) Has been cancelled
test / Linux (true, vim, v7.4.1689) (push) Has been cancelled
test / Linux (true, vim, v7.4.629) (push) Has been cancelled
test / Linux (true, vim, v8.0.0027) (push) Has been cancelled
test / Linux (true, vim, v8.0.0183) (push) Has been cancelled
test / Linux (vim, nightly) (push) Has been cancelled
test / Linux (vim, v8.0.0184) (push) Has been cancelled
test / Linux (vim, v8.0.1453) (push) Has been cancelled
test / Linux (vim, v8.1.2269) (push) Has been cancelled
test / Linux (vim, v8.2.2434) (push) Has been cancelled
test / Linux (vim, v8.2.3995) (push) Has been cancelled
test / Windows (nvim, nightly) (push) Has been cancelled
test / Windows (nvim, v0.3.8) (push) Has been cancelled
test / Windows (nvim, v0.4.2) (push) Has been cancelled
test / Windows (nvim, v0.4.3) (push) Has been cancelled
test / Windows (nvim, v0.4.4) (push) Has been cancelled
test / Windows (nvim, v0.5.0) (push) Has been cancelled
test / Windows (nvim, v0.5.1) (push) Has been cancelled
test / Windows (nvim, v0.6.0) (push) Has been cancelled
test / Windows (nvim, v0.6.1) (push) Has been cancelled
test / Windows (nvim, v0.7.0) (push) Has been cancelled
test / Windows (nvim, v0.7.2) (push) Has been cancelled
test / Windows (nvim, v0.8.0) (push) Has been cancelled
test / Windows (nvim, v0.8.1) (push) Has been cancelled
test / Windows (nvim, v0.8.2) (push) Has been cancelled
test / Windows (nvim, v0.8.3) (push) Has been cancelled
test / Windows (nvim, v0.9.0) (push) Has been cancelled
test / Windows (nvim, v0.9.1) (push) Has been cancelled
test / Windows (vim, nightly) (push) Has been cancelled
test / Windows (vim, v7.4.1185) (push) Has been cancelled
test / Windows (vim, v7.4.1689) (push) Has been cancelled
test / Windows (vim, v8.0.0027) (push) Has been cancelled
test / Windows (vim, v8.0.1453) (push) Has been cancelled
test / Windows (vim, v8.1.2269) (push) Has been cancelled
test / Windows (vim, v8.2.2434) (push) Has been cancelled
test / Windows (vim, v8.2.3995) (push) Has been cancelled
docker / docker (push) Has been cancelled
mirror / check (coding) (push) Has been cancelled
mirror / check (gitee) (push) Has been cancelled
mirror / check (gitlab) (push) Has been cancelled
103 lines
1.6 KiB
Plaintext
103 lines
1.6 KiB
Plaintext
# Snippets for
|
|
# Authored by Trevor Sullivan <trevor@trevorsullivan.net>
|
|
|
|
# PowerShell Class
|
|
snippet class
|
|
class {
|
|
[string] ${1:FirstName}
|
|
}
|
|
|
|
# PowerShell Advanced Function
|
|
snippet function
|
|
function ${1:name} {
|
|
[CmdletBinding()]
|
|
param (
|
|
[Parameter(Mandatory = $true)]
|
|
[string] ${2:Param}
|
|
)
|
|
|
|
begin {
|
|
}
|
|
|
|
process {
|
|
}
|
|
|
|
end {
|
|
}
|
|
}
|
|
|
|
# PowerShell Splatting
|
|
snippet splatting
|
|
$Params = @{
|
|
${1:Param1} = '{2:Value1}'
|
|
${3:Param2} = '{4:Value2}'
|
|
}
|
|
${5:CommandName} @Params
|
|
|
|
# PowerShell Enumeration
|
|
snippet enum
|
|
enum ${1:name} {
|
|
${2:item1}
|
|
${3:item2}
|
|
}
|
|
|
|
# PowerShell if..then
|
|
snippet if
|
|
if (${1:condition}) {
|
|
${2:statement}
|
|
}
|
|
|
|
# PowerShell if..else
|
|
snippet ife
|
|
if ( ${1:condition} ) {
|
|
${2}
|
|
}
|
|
else {
|
|
${3}
|
|
}
|
|
|
|
# PowerShell While Loop
|
|
snippet while
|
|
while (${1:condition}) {
|
|
${2:statement}
|
|
}
|
|
|
|
# PowerShell Filter..Sort
|
|
snippet filtersort
|
|
${1:command} | Where-Object -FilterScript { $PSItem.${2:property} -${3:operator} '${4:expression}' } | Sort-Object -Property ${5:sortproperty}
|
|
|
|
# PowerShell foreach
|
|
snippet foreach
|
|
foreach ( $${1:iterator} in $${2:collection} ) {
|
|
${3:statement}
|
|
}
|
|
|
|
# PowerShell export-csv
|
|
snippet epcsv
|
|
Export-CSV -NoTypeInformation -Path ${1:path}
|
|
|
|
# Powershell Comment Based Help
|
|
snippet help
|
|
<#
|
|
.SYNOPSIS
|
|
${1:Short Description}
|
|
.DESCRIPTION
|
|
${2:Full Description}
|
|
.PARAMETER ${3:Param1}
|
|
${4: $3 usage}
|
|
.EXAMPLE
|
|
${5:Example}
|
|
.NOTES
|
|
${6:notes}
|
|
.LINK
|
|
${7:online help}
|
|
#>
|
|
|
|
# Powershell switch statement
|
|
snippet switch
|
|
switch ( ${1:test} ){
|
|
${2:condition1} { ${3:action} }
|
|
${4:condition2} { ${5:action} }
|
|
default { ${6:action} }
|
|
|