summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-07-07 00:21:32 +0300
committerPaul Buetow <paul@buetow.org>2026-07-07 00:21:32 +0300
commit920f2ea88c45e972cd87b56580c90a0277b7130e (patch)
tree5615b573bad8e73bc04cce6a7807be75d4389dad /examples
parentab6e1341dc5eb06b6573571f8c17e19d0c393418 (diff)
more tests
Diffstat (limited to 'examples')
-rw-r--r--examples/examples.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/examples.go b/examples/examples.go
index 51508a4..9fd9e40 100644
--- a/examples/examples.go
+++ b/examples/examples.go
@@ -67,5 +67,10 @@ func Run() error {
_ = os.Link("/tmp/gonf_hello.txt", "/tmp/gonf_stale_hardlink")
Link("/tmp/gonf_stale_hardlink", IsAbsent)
+ // 13. Package management
+ Package("tig") // Ensure installed (Present)
+ Package("vim", IsLatest) // Ensure installed and latest version
+ NoPackage("nano") // Ensure absent
+
return Apply()
}