Skip to content

Commit

Permalink
⭐ native windows registry resource
Browse files Browse the repository at this point in the history
Migrate #1359

Fixes #1604

Signed-off-by: Dominik Richter <[email protected]>
  • Loading branch information
arlimus committed Sep 20, 2023
1 parent 26c749e commit 07d3852
Show file tree
Hide file tree
Showing 10 changed files with 702 additions and 262 deletions.
15 changes: 13 additions & 2 deletions providers/os/resources/os.lr
Original file line number Diff line number Diff line change
Expand Up @@ -963,20 +963,31 @@ registrykey @defaults("path") {
init(path string)
// Registry key path
path string
// Indicates if the property exists
exists() bool
// Registry key properties
// deprecated: Registry key properties, use `items` instead
properties() map[string]string
// Registry key items
items() []registrykey.property
// Registry key children
children() []string
}

// Windows registry key property
registrykey.property @defaults("path name") {
init(path string, name string)
// Registry key path
path string
// Registry key name
name string
// Indicates if the property exists
exists() bool
value(exists) string
// deprecated: Registry key property value converted to string, use `data` instead
value() string
// Registry key type
type() string
// Registry key data
data() dict
}

// Container Image
Expand Down
61 changes: 54 additions & 7 deletions providers/os/resources/os.lr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 07d3852

Please sign in to comment.