Skip to content

Get-GitHubContext

SYNOPSIS

Get the current GitHub context.

SYNTAX

Get default context (Default)

Get-GitHubContext [<CommonParameters>]

Get a named context

Get-GitHubContext [-Context] <string> [<CommonParameters>]

List all available contexts

Get-GitHubContext -ListAvailable [<CommonParameters>]

ALIASES

This cmdlet has the following aliases, {{Insert list of aliases}}

DESCRIPTION

Get the current GitHub context.

EXAMPLES

EXAMPLE 1

Get-GitHubContext

Gets the current GitHub context.

PARAMETERS

-Context

The name of the context.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- Name
ParameterSets:
- Name: Get a named context
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-ListAvailable

List all available contexts.

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: List all available contexts
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

GitHubContext

{{ Fill in the Description }}

NOTES