summaryrefslogtreecommitdiff
path: root/internal/resource/dir/dir.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-07-06 10:14:39 +0300
committerPaul Buetow <paul@buetow.org>2026-07-06 10:14:39 +0300
commitf7498c9ae626b9ab654fe6eb736e19c62cf5d38d (patch)
tree65e79446bd327633af779b3a1796e0da269a1530 /internal/resource/dir/dir.go
parent72cf1553e87bef43a4d988896d98034ddfbc018c (diff)
refactor
Diffstat (limited to 'internal/resource/dir/dir.go')
-rw-r--r--internal/resource/dir/dir.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/resource/dir/dir.go b/internal/resource/dir/dir.go
index 34b161d..283cea9 100644
--- a/internal/resource/dir/dir.go
+++ b/internal/resource/dir/dir.go
@@ -7,8 +7,8 @@ import (
"os/user"
"strconv"
- "codeberg.org/snonux/gonf/internal/resource"
opt "codeberg.org/snonux/gonf/api/option"
+ "codeberg.org/snonux/gonf/internal/resource"
)
type Dir struct {
@@ -187,7 +187,7 @@ func Ensure(path string, opts ...opt.Option) error {
return d.apply()
}
-func Have(path string, opts ...opt.Option) resource.Resource {
+func Present(path string, opts ...opt.Option) resource.Resource {
d, err := build(path, opts...)
if err != nil {
log.Fatalf("failed to apply directory resource %s: %v", path, err)
@@ -201,5 +201,5 @@ func Have(path string, opts ...opt.Option) resource.Resource {
func Absent(path string, opts ...opt.Option) resource.Resource {
opts = append(opts, opt.IsAbsent())
- return Have(path, opts...)
+ return Present(path, opts...)
}