mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-23 05:01:37 +01:00
Specify width of columns
This commit is contained in:
parent
c68ba3d764
commit
61900ec1d9
@ -18,7 +18,7 @@ function ListEarthquakes {
|
||||
}
|
||||
|
||||
try {
|
||||
ListEarthquakes | format-table -property Mag,Location,Depth,Time -autoSize
|
||||
ListEarthquakes | format-table -property @{e='Mag';width=5},@{e='Location';width=42},@{e='Depth';width=6},Time
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Loading…
Reference in New Issue
Block a user