Skip to content
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

Arbitrary object input #5

Closed
PrzemyslawKlys opened this issue Jan 12, 2019 · 0 comments
Closed

Arbitrary object input #5

PrzemyslawKlys opened this issue Jan 12, 2019 · 0 comments
Labels
enhancement New feature or request 👏 good first issue Good for newcomers 🏳 help wanted Any and all help is more than welcome

Comments

@PrzemyslawKlys
Copy link

PrzemyslawKlys commented Jan 12, 2019

I thought I would be having some nice output if I would use

function Get-ComputerDisk {
    param(
        $ComputerName = $Env:COMPUTERNAME
    )
    $Data2 = Get-WmiObject win32_DiskDrive -ComputerName $ComputerName | Select Index, Model, Caption, SerialNumber, Description, MediaType, FirmwareRevision, Partitions, @{Expression = {$_.Size / 1Gb -as [int]}; Label = "Total Size(GB)"}, PNPDeviceID
    return $Data2
}

as my data for words. I suspected it may not work :-)

get-clipboard | New-WordCloud -Path wordcloud.png -FontFamily Georgia

I kept waiting for minutes and it didn't do anything :-) What I actually wanted is to create some nice output for blogs pictures, especially for featured photo. It takes a lot of effort to create a good blog post and it's even harder to maintain quality photos for Featured Photos so that it doesn't look like complete trash.

Pipe in random streams of objects at get usable output for the word cloud.

I think the most pragmatic solution would be to simply take whatever the console would render and attempt to make that work by sending it through Out-String to get the string representation. In fact, you can do that already, but it would be nice if this just handled it.

Linked to: #3

@vexx32 vexx32 added enhancement New feature or request 🏳 help wanted Any and all help is more than welcome 👏 good first issue Good for newcomers labels Jan 13, 2019
@vexx32 vexx32 closed this as completed in 8279fb8 Jan 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 👏 good first issue Good for newcomers 🏳 help wanted Any and all help is more than welcome
Projects
None yet
Development

No branches or pull requests

2 participants