PsIni.psm1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<#
    .Synopsis
        This Module contains functions to manage INI files
 
    .Description
        This Module contains functions to manage INI files
 
    .Notes
        Author : Oliver Lipkau <oliver@lipkau.net>
        Contributers : Craig Buchanan <https://github.com/craibuc>
                       Colin Bate <https://github.com/colinbate>
                       Sean Seymour <https://github.com/seanjseymour>
                       Alexis Côté <https://github.com/popojargo>
 
        Homepage : http://lipkau.github.io/PsIni/
 
#>


$PsIniModuleHome = Split-Path -Path $MyInvocation.MyCommand.Path -Parent

# Name of the Section, in case the ini file had none
# Available in the scope of the module as `$script:NoSection`
$script:NoSection = "_"

# public functions
. "$PsIniModuleHome\Functions\Get-IniContent.ps1"
. "$PsIniModuleHome\Functions\Out-IniFile.ps1"
. "$PsIniModuleHome\Functions\Add-IniComment.ps1"
. "$PsIniModuleHome\Functions\Remove-IniComment.ps1"
. "$PsIniModuleHome\Functions\Remove-IniEntry.ps1"
. "$PsIniModuleHome\Functions\Set-IniContent.ps1"

# private functions
. "$PsIniModuleHome\Functions\Convert-IniCommentToEntry.ps1"
. "$PsIniModuleHome\Functions\Convert-IniEntryToComment.ps1"