Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
powershell
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dotfiles
powershell
Compare Revisions
ccdf07296fded3ff82960f730a6bea004ec614d7...4cacf82c2e00aa2ee110a132133d4978e67a95e4
Source
4cacf82c2e00aa2ee110a132133d4978e67a95e4
Select Git revision
...
Target
ccdf07296fded3ff82960f730a6bea004ec614d7
Select Git revision
Compare
Commits (3)
[Format-Clang] improve pipeline & file-not-found support
· 744e67fe
Dustin L. Howett
authored
Nov 05, 2017
744e67fe
[Get-ColoredContent] Add Get-ColoredContent, a pygmentize wrapper
· ba15ac52
Dustin L. Howett
authored
Nov 05, 2017
ba15ac52
Drop some dangling .exe suffixes from executables
· 4cacf82c
Dustin L. Howett
authored
Nov 05, 2017
4cacf82c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
2 deletions
+31
-2
Scripts/Format-Clang.ps1
Scripts/Format-Clang.ps1
+12
-2
Scripts/Get-ColoredContent.ps1
Scripts/Get-ColoredContent.ps1
+19
-0
No files found.
Scripts/Format-Clang.ps1
View file @
4cacf82c
[
CmdletBinding
()]
Param
(
[
Parameter
(
Mandatory
=
$true
,
ValueFromPipeline
=
$true
)]
[
string
[]]
$
Files
[
string
[]]
$
Path
)
&
clang-format
-i
(
Get-Item
$Files
|
Select
-Expand
FullName
)
Process
{
ForEach
(
$_
in
$Path
)
{
Try
{
$n
=
Get-Item
$_
-ErrorAction
Stop
|
Select
-Expand
FullName
&
clang-format
-i
$n
}
Catch
{
Write-Error
$_
}
}
}
Scripts/Get-ColoredContent.ps1
0 → 100644
View file @
4cacf82c
[
CmdletBinding
()]
Param
(
[
Parameter
(
Mandatory
=
$True
,
ValueFromPipeline
=
$True
)]
[
string
[]]
$Path
,
[
string
]
$Style
=
"vim"
)
Process
{
ForEach
(
$_
in
$Path
)
{
Try
{
$n
=
Get-Item
$_
-ErrorAction
Stop
|
Select
-Expand
FullName
&
pygmentize
-f
terminal16m
-O
style
=
$Style
$n
}
Catch
{
Write-Error
$_
}
}
}