Ash258 / Scoop-GithubActions

Deprecated. Use https://github.com/shovel-org/GithubActions
MIT License
25 stars 18 forks source link

New-CheckList function #40

Closed Ash258 closed 4 years ago

Ash258 commented 5 years ago

New generic function with support for nested objects is needed for more advanced checks.

New-CheckList {
    param([Hashtable] $Statuses)

    return New-Array # String 
}
$statuses = @{
    Alfa = $true
    Cosi = @{
        Ahoj = $true
        AhojA = $true
    }
    Broken = @{
        Hello = $false
        COSi = $true
    }
}

This object will result in:

- [x] Alfa
- [x] Cosi
    - [x] Ahoj
    - [x] AhojA
- [ ] Broken
    - [ ] Hello
    - [x] COsi
Ash258 commented 4 years ago

6ec3f85c1fc33c0c046fe98921f1bb8a25590e51 329037d4c366897dd7e6fc287870801ce1626ba7