Skip to content

api_function_getgithubactionsstate

hugoalh edited this page Apr 30, 2023 · 6 revisions

Get-GitHubActionsState

  • Type: Function
  • In Version: >= v0.3.0
  • Alias:
    • Restore-GitHubActionsState

Description

# Parameter Set: All
Get-GitHubActionsState -All [-EmptyStringAsNull] [-Trim]

# Parameter Set: One (Default)
Get-GitHubActionsState [-Name] <String> [-EmptyStringAsNull] [-Trim]

# Parameter Set: Prefix
Get-GitHubActionsState -NamePrefix <String> [-EmptyStringAsNull] [-Trim]

# Parameter Set: Suffix
Get-GitHubActionsState -NameSuffix <String> [-EmptyStringAsNull] [-Trim]

Get state.

Parameter

All

<Switch> Whether to get all of the states.

  • Parameter Set: All
  • Position: Named
  • Accept Pipeline Input By Property Name: False ❌

EmptyStringAsNull

[Optional] <Switch> Whether to assume empty string value of the state(s) as $Null.

  • Parameter Set:
    • All
    • One
    • Prefix
    • Suffix
  • Position: Named
  • Accept Pipeline Input By Property Name: False ❌

Name

<String> Name of the state.

  • Parameter Set: One
  • Position: 0
  • Accept Pipeline Input: False ❌
  • Accept Pipeline Input By Property Name: False ❌
  • Accept Wildcard Characters: False ❌
  • Alias:
    • Key

NamePrefix

<String> Name of the states start with.

  • Parameter Set: Prefix
  • Position: Named
  • Accept Pipeline Input: False ❌
  • Accept Pipeline Input By Property Name: False ❌
  • Accept Wildcard Characters: False ❌
  • Alias:
    • KeyPrefix
    • KeyStartWith
    • NameStartWith
    • Prefix
    • PrefixKey
    • PrefixName
    • StartWith
    • StartWithKey
    • StartWithName

NameSuffix

<String> Name of the states end with.

  • Parameter Set: Suffix
  • Position: Named
  • Accept Pipeline Input: False ❌
  • Accept Pipeline Input By Property Name: False ❌
  • Accept Wildcard Characters: False ❌
  • Alias:
    • EndWith
    • EndWithKey
    • EndWithName
    • KeyEndWith
    • KeySuffix
    • NameEndWith
    • Suffix
    • SuffixKey
    • SuffixName

Trim

[Optional] <Switch> Whether to trim the value of the state(s).

  • Parameter Set:
    • All
    • One
    • Prefix
    • Suffix
  • Position: Named
  • Accept Pipeline Input By Property Name: False ❌

Output

  • All: <Hashtable> States.
  • One: <String> Value of the state.
  • Prefix: <Hashtable> States.
  • Suffix: <Hashtable> States.

Guide

API

Enum

Enum Flag

Function

Function Alias

Clone this wiki locally