]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
yasnippet: add cf3 snippet for orgmode
authorAndreas Gerler <baronNOSPAMAndreass-MacBook-Pro.local>
Wed, 5 Apr 2023 09:33:52 +0000 (11:33 +0200)
committerAndreas Gerler <baronNOSPAMAndreass-MacBook-Pro.local>
Wed, 5 Apr 2023 09:33:52 +0000 (11:33 +0200)
snippets/org-mode/cf3 [new file with mode: 0644]

diff --git a/snippets/org-mode/cf3 b/snippets/org-mode/cf3
new file mode 100644 (file)
index 0000000..36dada6
--- /dev/null
@@ -0,0 +1,24 @@
+# -*- mode: snippet -*-
+# name : cf3-snippet
+# key : <cf3
+# contributor : Nick Anderson <nickNOSPAMcmdln.org>
+# group : cfengine3
+# expand-env: ((yas-indent-line 'fixed) (yas-wrap-around-region 'nil))
+# https://gitlab.com/nickanderson/the-agent-is-in/-/tree/main/Episodes/12
+# --
+#+caption: Example Policy
+#+begin_src cfengine3 :include-stdlib t :log-level info :exports both
+bundle agent __main__
+# @brief Drive default bundlesequence if called as policy entry
+{
+  methods:
+      "$2"
+        usebundle => $1();
+}
+bundle agent ${1:BundleName}()
+# @brief $1 ${2:is responsible for ...}
+{
+  $0
+}
+#+end_src
+