Skip to content

feat(drift): add devops-drift-set for state checks - #5

Closed
kpassapk wants to merge 1 commit into
mainfrom
testing-cmds
Closed

feat(drift): add devops-drift-set for state checks#5
kpassapk wants to merge 1 commit into
mainfrom
testing-cmds

Conversation

@kpassapk

Copy link
Copy Markdown
Owner

Compare live command output against a declared expectation as unordered line sets, for org state-check blocks where file drift does not apply. First use: systemd unit checks in aly-infra server files.

Compare live command output against a declared expectation as
unordered line sets, for org state-check blocks where file drift
does not apply. First use: systemd unit checks in aly-infra
server files.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@kpassapk

Copy link
Copy Markdown
Owner Author

Doesn't seem the right place to put a set comparison. Here is an example with bb:

#+name: a
#+begin_example
apple
banana
cherry
#+end_example

#+name: b
#+begin_example
apple
cherry
fig
#+end_example

#+begin_src bb :var a=a b=b 
  (let [sa (set (str/split-lines a))
        sb (set (str/split-lines b))]
    {:only-a (clojure.set/difference sa sb)
     :only-b (clojure.set/difference sb sa)})
#+end_src

#+RESULTS:
| :only-a | banana | :only-b | fig |

@kpassapk kpassapk closed this Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant