PowerShell module to create gists
PowerShell
Latest commit 42e03b9 Jul 17, 2013 Ryan Cromwell Added pipelining ls to gist example
Permalink
Failed to load latest commit information.
.gitignore documentation working and single file support available Mar 2, 2012
JSON 1.7.ps1 fixed example usage code block Mar 2, 2012
PsGist.psm1 cleaning username a win8 compat way Aug 23, 2012
README.markdown
build.ps1 documentation working and single file support available Mar 2, 2012

README.markdown

��

NAME

New-Gist

SYNOPSIS

Publishes Github Gists.

SYNTAX

New-Gist [[-InputObject] ] [-File ] [-Description ] [-Username ] [-Public] [<Comm

onParameters>]

DESCRIPTION

Publishes files as Owned or Anonymous Github Gists.

PARAMETERS

-InputObject

    Accepts a series of files which will be published as a single Gist

-File

    A single file path to be published as a Gist.

-Description

    (optional) The Description of this Gist.

-Username

    The Github username which will own this Gist.

-Public []

When specified, the Gist will be made public. Default is private.

    This cmdlet supports the common parameters: Verbose, Debug,

    ErrorAction, ErrorVariable, WarningAction, WarningVariable,

    OutBuffer and OutVariable. For more information, type,

    "get-help about_commonparameters".

EXAMPLE 1 - Publishing a public Gist

gist -File "Hello.js" -Description "Hello.js greets all visitors"

EXAMPLE 2 - Publishing a private Gist

gist -File "Hello.js" -Description "Hello.js greets all visitors" -Public

EXAMPLE 3 - Publish a directory as gist

ls | gist -Description "Holy awesome batman!" -Public