Commit aa15ae1
🩹 [Patch]: Initialize Hcl module (#3)
The `Hcl` module is now available on the [PowerShell
Gallery](https://www.powershellgallery.com/) as version `0.0.1`. This
initial release reserves the module name and establishes the intended
API surface — `ConvertFrom-Hcl` and `ConvertTo-Hcl` — for working with
[HashiCorp Configuration Language](https://github.com/hashicorp/hcl) as
used in Terraform, OpenTofu, and related infrastructure-as-code tooling.
Both functions are placeholders that throw `NotImplementedException`
until the full parser and serializer are implemented.
- Fixes #2
## New: Hcl module on the PowerShell Gallery
The module can be installed from the PowerShell Gallery:
```powershell
Install-PSResource -Name Hcl
Import-Module -Name Hcl
```
`ConvertFrom-Hcl` and `ConvertTo-Hcl` are available as commands but
throw `NotImplementedException` until the implementation is complete.
Their presence reserves the intended API and allows downstream tooling
to take a dependency on the module name.
## Technical Details
- All template boilerplate removed: `Test-PSModuleTest.ps1`,
`completers.ps1`, `PSModule/` and `SomethingElse/` subdirectories, and
`tests/PSModuleTest.Tests.ps1`.
- `ConvertFrom-Hcl` and `ConvertTo-Hcl` added as public placeholder
functions, following the same pattern as
[PSModule/Toml#init](https://github.com/PSModule/Toml/tree/init).
- `src/manifest.psd1` set to `ModuleVersion = '0.0.1'` to trigger the
first publish pipeline run.
- `tests/Hcl.Tests.ps1` added with assertions that both placeholders
throw as expected.
- `examples/General.ps1` and `README.md` updated with HCL-specific
content (Terraform locals, `.tfvars` examples).
---------
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent 14a6404 commit aa15ae1
36 files changed
Lines changed: 134 additions & 666 deletions
File tree
- .github/workflows
- examples
- src
- assemblies
- classes
- private
- public
- data
- formats
- functions
- private
- public
- PSModule
- SomethingElse
- init
- modules
- scripts
- types
- variables
- private
- public
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
| 23 | + | |
26 | 24 | | |
27 | 25 | | |
28 | | - | |
29 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
30 | 39 | | |
31 | 40 | | |
32 | | - | |
| 41 | + | |
33 | 42 | | |
34 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
35 | 50 | | |
36 | 51 | | |
37 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
38 | 63 | | |
39 | 64 | | |
40 | 65 | | |
41 | 66 | | |
42 | 67 | | |
43 | 68 | | |
44 | | - | |
45 | | - | |
| 69 | + | |
| 70 | + | |
46 | 71 | | |
47 | 72 | | |
48 | 73 | | |
49 | | - | |
50 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
51 | 80 | | |
52 | 81 | | |
53 | 82 | | |
54 | 83 | | |
55 | 84 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 85 | + | |
63 | 86 | | |
64 | | - | |
65 | | - | |
| 87 | + | |
66 | 88 | | |
67 | | - | |
| 89 | + | |
68 | 90 | | |
69 | | - | |
| 91 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
This file was deleted.
Binary file not shown.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments