Find-Gist


Synopsis

Finds a Gist by Username and FileName


Syntax

Find-Gist [[-Owner] <string>] [-FileNameKeyword] <string> [<CommonParameters>]

Aliases

None.


Description

Finds a Gist by Username and FileName.


Parameters

-Owner <string>
    The Username of the Owner of the Gist Object.
    
    Required?                    false
    Position?                    Named
    Accept pipeline input?       false
    Parameter set name           (All)
    Aliases                      None
    Dynamic?                     false

-FileNameKeyword <string>
    Keywords from the filename.
    
    Required?                    true
    Position?                    Named
    Accept pipeline input?       false
    Parameter set name           (All)
    Aliases                      None
    Dynamic?                     false

<CommonParameters>
    This cmdlet supports the common parameters: Verbose, Debug,
    ErrorAction, ErrorVariable, WarningAction, WarningVariable,
    OutBuffer, PipelineVariable, and OutVariable. For more information, see 
    about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

Inputs

System.String

  • Represents text as a sequence of UTF-16 code units.

Outputs

PSGist.Gist

  • A custom .net object representation of the JSON response from the GitHub API.

Notes

This cmdlet searches the currently authenticated user context Gists by default.


Example 1

Find all gists from the user dotps1 with the work Java in the filename.

C:\ PS> Find-Gist -FileNameKeyword Java


Owner       : dotps1
Description : Creates a new Sccm Java Application and Deployment Type.  All three functions are
              required.  (See comments for details.)
Id          : 492023ebd737f9cc46aa
CreatedAt   : 8/14/2015 2:35:19 PM
UpdatedAt   : 4/26/2016 12:09:33 PM
Public      : True
HtmlUrl     : https://gist.github.com/492023ebd737f9cc46aa
Files       : {.New-SccmJavaApplication.ps1, Get-MsiProductCode.ps1,
              Invoke-JavaDownloadAndMsiExtraction.ps1}
Fork me on GitHub