From: Andreas Gerler Date: Wed, 5 Apr 2023 09:22:19 +0000 (+0200) Subject: add cfengine3 snippets X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=dc2be469dd681b85e82baca567ae3568e66362c2;p=emacsconfig.git add cfengine3 snippets cloned from https://github.com/jeffcarlson72/emacs-yasnippet-cfengine3-mode --- diff --git a/bba.org b/bba.org index e7d2e4c4..d5b375af 100644 --- a/bba.org +++ b/bba.org @@ -529,6 +529,7 @@ snippets for =aws cli= are awesome! (if (equal "work" (getenv "SYSENV")) (add-to-list 'yas-snippet-dirs "~/workorg/snippets")) (add-to-list 'yas-snippet-dirs "~/.emacs.d/snippets") + (add-to-list 'yas-snippet-dirs "~/.emacs.d/lisp/snippets") (yas-reload-all) (yas-global-mode 1) (setq yas-indent-line nil) diff --git a/lisp/snippets/cfengine3-mode/COPYING b/lisp/snippets/cfengine3-mode/COPYING new file mode 100644 index 00000000..f288702d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/COPYING @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/lisp/snippets/cfengine3-mode/README.md b/lisp/snippets/cfengine3-mode/README.md new file mode 100644 index 00000000..fd9f40a4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/README.md @@ -0,0 +1,134 @@ +CFEngine3 Mode for YASnippet +============================ + +If you use emacs to write CFEngine 3 promise files, I think you will +like yasnippet-cfengine. It is a collection of snippets (templates) +for YASnippet. I wrote it to scratch my own itch. + +Installation +------------ + +First, you need YASnippet in your emacs environment. You can use + +``` +M-x package-installyasnippet +``` + +to install it. You will need to enable package installation in your +`~/.emacs` file first. Search Google if you don't know how to do +this. Searching "emacs package-install" should do it. + +I have globally enabled YASnippet in my `~/.emacs`. + +``` +(require 'yasnippet) +(yas-global-mode 1) +``` + +Next, cd where your snippets are saved. Mine are +`~/.emacs.d/elpa/yasnippet-VERSION/snippets/`. Clone the repository. +Rename the directory to match the yasnippet convention of matching the +mode in which the snippets are used. + +``` +cd ~/.emacs.d/elpa/yasnippet*/snippets +git clone https://github.com/jeffcarlson72/emacs-yasnippet-cfengine3-mode.git +mv {emacs-yasnippet-,}cfengine3-mode +``` + +Finally, restart emacs or reload you ~/.emacs file. + +Usage +----- + +When you are writing CFEngine promises, at the highest level, you will +either need to create bundles or bodies. There are four types of +bundles, just type one of these and hit the TAB key: + +- agent +- edit_line +- monitor +- server + +This will expand into a template containing all the promise types +available for that bundle. (The following underscore shows where the +cursor will appear.) + +``` +bundle agent _ +{ +meta: +vars: +... +``` + +The promise types are in standard order of execution. Type in the +name for your bundle, then move down to a line indicating the promise +type you want to add. Hit ENTER to add a new line, then type the +promise type again, followed by the TAB key. + +From this: + +``` +vars: +vars[TAB] +``` + +To this: + +``` +vars: +"_" +action +classes +comment +... +``` + +Name the promiser, add "-> promisee" if necessary. Then move the +cursor down to the end of one of the promise attributes and hit TAB. +It will expand, adding the rocket (=>) and a template for that +attribute. Strings will add quotes, lists will add braces, any +attribute which is a "one of X, Y, or Z" type will create a drop-down +with those options. Just use the arrow keys and ENTER key to pick +one. Attributes which take bodies as their values will expand with a +menu of options from the common promise library. If you want to build +your own body, hit BACKSPACE, which will break out of the snippet +entry. Hit TAB again to jump to the end of the line, and add a comma +or a semicolon as appropriate. + +``` + comment => "_" +``` + +After you have built your promise, you will need to manually delete +any attributes you don't use. Likewise, delete any promise types you +don't use in your bundle. I know this means you wind up deleting a +lot of superfluous text, but I felt it was nicer than having to +remember what every single one of the options was. In other words, +C-k is easier to remember than all that other text. + +Since a lot of bodies have the same name as related attributes, to +build a body, preface it with "body-." + +From this: + +``` +body-contain[TAB] +``` + +To this: + +``` +body contain _ +{ +... +``` + +Again, fill in the template just as described for bundles. Delete +what you don't need from the template. C-k is your friend. + +Change Log +---------- + +2021-05-14 - Nick Anderson contributed missing functions, bringing this up to date with 3.18.0a. diff --git a/lisp/snippets/cfengine3-mode/attributes/acl b/lisp/snippets/cfengine3-mode/attributes/acl new file mode 100644 index 00000000..27402d60 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/acl @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: acl => body acl +# key: acl +# contributor: Jeff Carlson +# uuid: a7d65fa2-cc5f-407a-8f8a-21f63039388b +# -- +acl => ${1:$$(yas-choose-value '("access_generic" "ntfs" "strict"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/action b/lisp/snippets/cfengine3-mode/attributes/action new file mode 100644 index 00000000..e8d094dc --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/action @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: action => body action +# key: action +# contributor: Jeff Carlson +# uuid: c2b70545-422b-4255-b95a-69e1d439c560 +# -- +action => ${1:$$(yas-choose-value '("bg" "if_elapsed" "if_elapsed_day" "ifwin_bg" "immediate" "log_repaired" "log_verbose" "measure_performance" "measure_promise_time" "policy" "sample_rate" "warn_only"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/additional_packages b/lisp/snippets/cfengine3-mode/attributes/additional_packages new file mode 100644 index 00000000..3c620a90 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/additional_packages @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: additional_packages => slist +# key: additional_packages +# contributor: Jeff Carlson +# uuid: 9c2e6979-30c6-4297-92e5-9c870161f807 +# -- +additional_packages => { ${1:slist} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/admit b/lisp/snippets/cfengine3-mode/attributes/admit new file mode 100644 index 00000000..bdb46d19 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/admit @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: admit => slist +# key: admit +# contributor: Jeff Carlson +# uuid: 0e1436d5-28c5-4249-a926-b1d781e77052 +# -- +admit => { ${1:slist} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/admit_hostnames b/lisp/snippets/cfengine3-mode/attributes/admit_hostnames new file mode 100644 index 00000000..9cf52e5b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/admit_hostnames @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: admit_hostnames => slist +# key: admit_hostnames +# contributor: Jeff Carlson +# uuid: a38e99d0-24c0-4eb4-a07e-ecd2d97b148d +# -- +admit_hostnames => { ${1:slist} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/admit_ips b/lisp/snippets/cfengine3-mode/attributes/admit_ips new file mode 100644 index 00000000..b779a0bb --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/admit_ips @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: admit_ips => slist +# key: admit_ips +# contributor: Jeff Carlson +# uuid: 499209b8-220e-4331-b9cd-35e1dd902d25 +# -- +admit_ips => { ${1:slist} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/admit_keys b/lisp/snippets/cfengine3-mode/attributes/admit_keys new file mode 100644 index 00000000..3d013aa6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/admit_keys @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: admit_keys => slist +# key: admit_keys +# contributor: Jeff Carlson +# uuid: 7d091382-060a-4397-aa70-a2bb187f6d9d +# -- +admit_keys => { ${1:slist} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/and b/lisp/snippets/cfengine3-mode/attributes/and new file mode 100644 index 00000000..a2d0f44d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/and @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: and => clist in range [a-zA-Z0-9_!&@@$|.()[]{}:]+ +# key: and +# contributor: Jeff Carlson +# uuid: eb1c7143-bb00-4886-856a-1ba289cd4cbe +# -- +and => ${1:clist in range [a-zA-Z0-9_!&@@$|.()[]{}:]+}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/architecture b/lisp/snippets/cfengine3-mode/attributes/architecture new file mode 100644 index 00000000..feb8bf7f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/architecture @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: architecture => string +# key: architecture +# contributor: Jeff Carlson +# uuid: 30e43571-092f-438b-969a-69692a85f8f1 +# -- +architecture => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/arglist b/lisp/snippets/cfengine3-mode/attributes/arglist new file mode 100644 index 00000000..59c94fa4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/arglist @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: arglist => slist in range .* +# key: arglist +# contributor: Jeff Carlson +# uuid: b3ca4078-b504-4bbf-a016-34425116b1d9 +# -- +arglist => { ${1:slist in range .*} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/args b/lisp/snippets/cfengine3-mode/attributes/args new file mode 100644 index 00000000..be5aa59a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/args @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: args => string +# key: args +# contributor: Jeff Carlson +# uuid: 85109bc8-9738-45b7-a4f0-b5e53a908e43 +# -- +args => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/attribute_value b/lisp/snippets/cfengine3-mode/attributes/attribute_value new file mode 100644 index 00000000..24df351b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/attribute_value @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: attribute_value => string +# key: attribute_value +# contributor: Jeff Carlson +# uuid: b2083ffe-c510-4c8f-81c6-408b5e72d31e +# -- +attribute_value => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/authorize b/lisp/snippets/cfengine3-mode/attributes/authorize new file mode 100644 index 00000000..b74171e7 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/authorize @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: authorize => slist +# key: authorize +# contributor: Jeff Carlson +# uuid: c14bd281-3bdd-4021-a94e-123a299eaaa6 +# -- +authorize => { ${1:slist} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/build_xpath b/lisp/snippets/cfengine3-mode/attributes/build_xpath new file mode 100644 index 00000000..8de3fc1a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/build_xpath @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: build_xpath => string +# key: build_xpath +# contributor: Jeff Carlson +# uuid: 4ffd4e1d-02f6-4b3c-84ff-7649ad3f6bb7 +# -- +build_xpath => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/bundle_return_value_index b/lisp/snippets/cfengine3-mode/attributes/bundle_return_value_index new file mode 100644 index 00000000..3d432544 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/bundle_return_value_index @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle_return_value_index => string in range [a-zA-Z0-9_$(){}[].:]+ +# key: bundle_return_value_index +# contributor: Jeff Carlson +# uuid: 2dfdeed3-de3c-4286-920b-f63ecb4812be +# -- +bundle_return_value_index => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/changes b/lisp/snippets/cfengine3-mode/attributes/changes new file mode 100644 index 00000000..bb7a163a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/changes @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: changes => body changes +# key: changes +# contributor: Jeff Carlson +# uuid: 52178d40-1240-4ce7-bb52-6a8cbbb00e0e +# -- +changes => ${1:$$(yas-choose-value '("all_changes" "detect_all_change" "detect_all_change_using" "detect_content" "detect_content_using" "diff" "diff_noupdate" "noupdate"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/classes b/lisp/snippets/cfengine3-mode/attributes/classes new file mode 100644 index 00000000..2b994f3e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/classes @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: classes => body classes +# key: classes +# contributor: Jeff Carlson +# uuid: b01ab99f-6d37-497b-b0d9-ef2c00c6293d +# -- +classes => ${1:$$(yas-choose-value '("always" "cf2_if_else" "classes_generic" "cmd_repair" "diff_results" "enumerate" "event_cancel_events" "feature_cancel" "if_else" "if_notkept" "if_ok" "if_ok_cancel" "if_repaired" "kept_successful_command" "results" "scoped_classes_generic" "state_repaired" "u_kept_successful_command"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/comment b/lisp/snippets/cfengine3-mode/attributes/comment new file mode 100644 index 00000000..84c0351f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/comment @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: comment => string +# key: comment +# contributor: Jeff Carlson +# uuid: c831b959-5e48-48f4-b039-589e800f767a +# -- +comment => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/contain b/lisp/snippets/cfengine3-mode/attributes/contain new file mode 100644 index 00000000..7f0ddbce --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/contain @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: contain => body contain +# key: contain +# contributor: Jeff Carlson +# uuid: a5355496-a0de-4520-86a5-bc6a05adf153 +# -- +contain => ${1:$$(yas-choose-value '("in_dir" "in_dir_shell" "in_dir_shell_and_silent" "in_shell" "in_shell_and_silent" "in_shell_bg" "jail" "setuid" "setuid_gid_umask" "setuid_sh" "setuid_umask" "setuidgid_dir" "setuidgid_sh" "silent" "silent_in_dir"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/copy_from b/lisp/snippets/cfengine3-mode/attributes/copy_from new file mode 100644 index 00000000..9578d9c4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/copy_from @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: copy_from => body copy_from +# key: copy_from +# contributor: Jeff Carlson +# uuid: a0ff2aad-cda9-4e47-b25a-ea70669d9b8f +# -- +copy_from => ${1:$$(yas-choose-value '("backup_local_cp" "copyfrom_sync" "local_cp" "local_dcp" "no_backup_cp" "no_backup_dcp" "no_backup_rcp" "perms_cp" "perms_dcp" "remote_cp" "remote_dcp" "secure_cp" "seed_cp" "sync_cp"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/create b/lisp/snippets/cfengine3-mode/attributes/create new file mode 100644 index 00000000..c40f1226 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/create @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: create => boolean +# key: create +# contributor: Jeff Carlson +# uuid: 82b1f85d-7f81-4b03-b2d6-216fa4313c9c +# -- +create => "${1:$$(yas-choose-value '("true" "false"))}"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/data b/lisp/snippets/cfengine3-mode/attributes/data new file mode 100644 index 00000000..87d67ac1 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/data @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: data => data +# key: data +# contributor: Jeff Carlson +# uuid: 0f967b0a-9da5-41ef-912e-ac1f7531efdb +# -- +data => ${1:data}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/data_type b/lisp/snippets/cfengine3-mode/attributes/data_type new file mode 100644 index 00000000..132f0c67 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/data_type @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: data_type => one of counter, int, real, string, slist +# key: data_type +# contributor: Jeff Carlson +# uuid: 9473b5f9-d19f-4123-8bdf-79c5aef5b765 +# -- +data_type => ${1:$$(yas-choose-value '("counter" "int" "real" "string" "slist"))} \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/database_columns b/lisp/snippets/cfengine3-mode/attributes/database_columns new file mode 100644 index 00000000..ca08877c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/database_columns @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: database_columns => slist in range .* +# key: database_columns +# contributor: Jeff Carlson +# uuid: 2a49a1da-7370-47c2-a469-22c92521dd68 +# -- +database_columns => { ${1:slist in range .*} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/database_operation b/lisp/snippets/cfengine3-mode/attributes/database_operation new file mode 100644 index 00000000..b0580fce --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/database_operation @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: database_operation => one of create, delete, drop, cache, verify, restore +# key: database_operation +# contributor: Jeff Carlson +# uuid: d95ea738-812c-4111-ade1-5e7c3e95a33c +# -- +database_operation => ${1:$$(yas-choose-value '("create" "delete" "drop" "cache" "verify" "restore"))} \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/database_rows b/lisp/snippets/cfengine3-mode/attributes/database_rows new file mode 100644 index 00000000..e9af2645 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/database_rows @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: database_rows => slist in range .*,.* +# key: database_rows +# contributor: Jeff Carlson +# uuid: bede0bd2-869f-46e5-bfd4-c01c7af73cc6 +# -- +database_rows => { ${1:slist in range .*,.*} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/database_server b/lisp/snippets/cfengine3-mode/attributes/database_server new file mode 100644 index 00000000..41998224 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/database_server @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: database_server => body database_server +# key: database_server +# contributor: Jeff Carlson +# uuid: 519a0906-86f9-42b6-a0fd-8e139bfcb9bf +# -- +database_server => ${1:$$(yas-choose-value '("local_mysql" "local_postgresql"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/database_type b/lisp/snippets/cfengine3-mode/attributes/database_type new file mode 100644 index 00000000..1cbff59b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/database_type @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: database_type => one of sql, ms_registry +# key: database_type +# contributor: Jeff Carlson +# uuid: e5d14ee7-552a-4bc2-bb64-2c0ba03bacc7 +# -- +database_type => ${1:$$(yas-choose-value '("sql" "ms_registry"))} \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/delete b/lisp/snippets/cfengine3-mode/attributes/delete new file mode 100644 index 00000000..ac78031d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/delete @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: delete => body delete +# key: delete +# contributor: Jeff Carlson +# uuid: 7ac2a5e8-cf47-4eef-806d-464da00b4557 +# -- +delete => ${1:$$(yas-choose-value '("tidy"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/delete_select b/lisp/snippets/cfengine3-mode/attributes/delete_select new file mode 100644 index 00000000..457791a7 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/delete_select @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: delete_select => body delete_select +# key: delete_select +# contributor: Jeff Carlson +# uuid: fc91488d-ae4b-4397-9c51-9f833cceb977 +# -- +delete_select => ${1:body_delete_select}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/deny b/lisp/snippets/cfengine3-mode/attributes/deny new file mode 100644 index 00000000..d40c0d79 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/deny @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: deny => slist +# key: deny +# contributor: Jeff Carlson +# uuid: 611125d4-8efb-4a39-9925-5bbb17cd80fb +# -- +deny => { ${1:slist} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/deny_hostnames b/lisp/snippets/cfengine3-mode/attributes/deny_hostnames new file mode 100644 index 00000000..346b2012 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/deny_hostnames @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: deny_hostnames => slist +# key: deny_hostnames +# contributor: Jeff Carlson +# uuid: b50da1a3-c2bc-4710-8883-99e9b48b604b +# -- +deny_hostnames => { ${1:slist} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/deny_ips b/lisp/snippets/cfengine3-mode/attributes/deny_ips new file mode 100644 index 00000000..dad3bb89 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/deny_ips @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: deny_ips => slist +# key: deny_ips +# contributor: Jeff Carlson +# uuid: f45abd93-da9e-48f1-bbbd-d3a45fe5a670 +# -- +deny_ips => { ${1:slist} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/deny_keys b/lisp/snippets/cfengine3-mode/attributes/deny_keys new file mode 100644 index 00000000..d26bf938 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/deny_keys @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: deny_keys => slist +# key: deny_keys +# contributor: Jeff Carlson +# uuid: 71afcafb-bbe9-4fe5-b5f1-e785cc78bb7b +# -- +deny_keys => { ${1:slist} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/depends_on b/lisp/snippets/cfengine3-mode/attributes/depends_on new file mode 100644 index 00000000..d49155c2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/depends_on @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: depends_on => slist +# key: depends_on +# contributor: Jeff Carlson +# uuid: f83b1cba-e31c-468d-91a5-978196d2c6e8 +# -- +depends_on => { ${1:slist} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/depth_search b/lisp/snippets/cfengine3-mode/attributes/depth_search new file mode 100644 index 00000000..0d1458fe --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/depth_search @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: depth_search => body depth_search +# key: depth_search +# contributor: Jeff Carlson +# uuid: 47076146-bf57-4666-92c3-aa813b3e6a7d +# -- +depth_search => ${1:$$(yas-choose-value '("include_base" "recurse" "recurse_ignore" "recurse_with_base"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/description b/lisp/snippets/cfengine3-mode/attributes/description new file mode 100644 index 00000000..6d36fa97 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/description @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: description => string +# key: description +# contributor: Jeff Carlson +# uuid: 44d0bec4-8541-42a3-b894-af6d45a59f66 +# -- +description => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/dist b/lisp/snippets/cfengine3-mode/attributes/dist new file mode 100644 index 00000000..7c0903de --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/dist @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: dist => rlist in range -9.99999E100,9.99999E100 +# key: dist +# contributor: Jeff Carlson +# uuid: e1c129be-b575-421b-b374-e104f30a34d3 +# -- +dist => ${1:rlist in range -9.99999E100,9.99999E100}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/edit_defaults b/lisp/snippets/cfengine3-mode/attributes/edit_defaults new file mode 100644 index 00000000..f8561f74 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/edit_defaults @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: edit_defaults => body edit_defaults +# key: edit_defaults +# contributor: Jeff Carlson +# uuid: 3e54d905-afbc-4207-b6ff-c86ef764c4b8 +# -- +edit_defaults => ${1:$$(yas-choose-value '("backup_timestamp" "empty" "no_backup" "std_defs"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/edit_field b/lisp/snippets/cfengine3-mode/attributes/edit_field new file mode 100644 index 00000000..45b3dd1a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/edit_field @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: edit_field => body edit_field +# key: edit_field +# contributor: Jeff Carlson +# uuid: 0c9b2367-a385-432a-89de-255882628c70 +# -- +edit_field => ${1:$$(yas-choose-value '("col" "fstab_options" "line" "quoted_var"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/edit_line b/lisp/snippets/cfengine3-mode/attributes/edit_line new file mode 100644 index 00000000..4da231cd --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/edit_line @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: edit_line => bundle +# key: edit_line +# contributor: Jeff Carlson +# uuid: 10ea4c96-3ef6-46ba-b3eb-c9bad88a347c +# -- +edit_line => ${1:$$(yas-choose-value '("append_groups_starting" "append_if_no_line" "append_if_no_lines" "append_to_line_end" "append_user_field" "append_users_starting" "comment_lines_containing" "comment_lines_matching" "contains_literal_string" "converge" "create_solaris_admin_file" "delete_lines_matching" "expand_template" "fstab_option_editor" "insert_before_if_no_line" "insert_file" "insert_ini_section" "insert_lines" "lines_present" "maintain_key_values" "manage_variable_values_ini" "prepend_if_no_line" "regex_replace" "replace_line_end" "replace_or_add" "resolvconf" "resolvconf_o" "set_colon_field" "set_config_values" "set_config_values_matching" "set_line_based" "set_quoted_values" "set_user_field" "set_variable_values" "set_variable_values_ini" "uncomment_lines_containing" "uncomment_lines_matching" "warn_lines_matching"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/edit_template b/lisp/snippets/cfengine3-mode/attributes/edit_template new file mode 100644 index 00000000..be300ea6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/edit_template @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: edit_template => string in range "?(/.*) +# key: edit_template +# contributor: Jeff Carlson +# uuid: 36d69890-4ea8-4bfb-aa4c-8030d9dc34e3 +# -- +edit_template => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/edit_template_string b/lisp/snippets/cfengine3-mode/attributes/edit_template_string new file mode 100644 index 00000000..3d1bcd74 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/edit_template_string @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: edit_template_string => string in range .* +# key: edit_template_string +# contributor: Jeff Carlson +# uuid: c8e9d516-5337-4571-b856-b8a687282be3 +# -- +edit_template_string => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/edit_xml b/lisp/snippets/cfengine3-mode/attributes/edit_xml new file mode 100644 index 00000000..6e7763f4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/edit_xml @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: edit_xml => bundle +# key: edit_xml +# contributor: Jeff Carlson +# uuid: 36009f4b-c7bf-4712-b2ff-9b008698202c +# -- +edit_xml => ${1:$$(yas-choose-value '("xml_insert_tree" "xml_insert_tree_nopath" "xml_set_attribute" "xml_set_value"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/environment_host b/lisp/snippets/cfengine3-mode/attributes/environment_host new file mode 100644 index 00000000..72a3ead2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/environment_host @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: environment_host => string in range [a-zA-Z0-9_]+ +# key: environment_host +# contributor: Jeff Carlson +# uuid: 58691484-211a-480d-8799-cf91cccbb6f7 +# -- +environment_host => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/environment_interface b/lisp/snippets/cfengine3-mode/attributes/environment_interface new file mode 100644 index 00000000..3d089573 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/environment_interface @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: environment_interface => body environment_interface +# key: environment_interface +# contributor: Jeff Carlson +# uuid: 955ad12e-bc70-41b1-b461-f603d2b787f4 +# -- +environment_interface => ${1:body_environment_interface}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/environment_resources b/lisp/snippets/cfengine3-mode/attributes/environment_resources new file mode 100644 index 00000000..4b776613 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/environment_resources @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: environment_resources => body environment_resources +# key: environment_resources +# contributor: Jeff Carlson +# uuid: 5f6b9a23-7285-449b-b3e4-89c8ef771a35 +# -- +environment_resources => ${1:$$(yas-choose-value '("kvm"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/environment_state b/lisp/snippets/cfengine3-mode/attributes/environment_state new file mode 100644 index 00000000..ddfdd5cb --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/environment_state @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: environment_state => one of create, delete, running, suspended, down +# key: environment_state +# contributor: Jeff Carlson +# uuid: bcbaa719-ef15-44da-829c-3517a6e8ece8 +# -- +environment_state => ${1:$$(yas-choose-value '("create" "delete" "running" "suspended" "down"))} \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/environment_type b/lisp/snippets/cfengine3-mode/attributes/environment_type new file mode 100644 index 00000000..b24dc836 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/environment_type @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: environment_type => one of xen, kvm, esx, vbox, test, xen_net, kvm_net, esx_net, test_net, zone, ec2, eucalyptus +# key: environment_type +# contributor: Jeff Carlson +# uuid: 7795c5b4-d5a3-4807-9df8-cd7ac3f75463 +# -- +environment_type => ${1:$$(yas-choose-value '("xen" "kvm" "esx" "vbox" "test" "xen_net" "kvm_net" "esx_net" "test_net" "zone" "ec2" "eucalyptus"))} \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/expand_scalars b/lisp/snippets/cfengine3-mode/attributes/expand_scalars new file mode 100644 index 00000000..7d4010d0 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/expand_scalars @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: expand_scalars => boolean +# key: expand_scalars +# contributor: Jeff Carlson +# uuid: 1a77dc5d-0c64-4c00-bc9c-bd397d8c4617 +# -- +expand_scalars => "${1:$$(yas-choose-value '("true" "false"))}"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/expression b/lisp/snippets/cfengine3-mode/attributes/expression new file mode 100644 index 00000000..2edeb972 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/expression @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: expression => class expression in range [a-zA-Z0-9_!&@@$|.()[]{}:]+ +# key: expression +# contributor: Jeff Carlson +# uuid: ca82134d-7e9a-4537-8ced-8e371c7b068d +# -- +expression => ${1:class expression in range [a-zA-Z0-9_!&@@$|.()[]{}:]+}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/file b/lisp/snippets/cfengine3-mode/attributes/file new file mode 100644 index 00000000..be21877b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/file @@ -0,0 +1,3 @@ + +control +))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/file_select b/lisp/snippets/cfengine3-mode/attributes/file_select new file mode 100644 index 00000000..d184f3a4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/file_select @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: file_select => body file_select +# key: file_select +# contributor: Jeff Carlson +# uuid: 64dc13b0-d85d-4320-8f16-200422609ca2 +# -- +file_select => ${1:$$(yas-choose-value '("all" "bigger_than" "by_name" "days_old" "dirs" "ex_list" "exclude" "filetype_older_than" "filetypes_older_than" "name_age" "older_than" "plain" "size_range" "symlinked_to"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/file_type b/lisp/snippets/cfengine3-mode/attributes/file_type new file mode 100644 index 00000000..0274254b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/file_type @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: file_type => one of regular, fifo +# key: file_type +# contributor: Jeff Carlson +# uuid: 9e3ee293-09b5-4a31-ba33-46ba48f834e7 +# -- +file_type => ${1:$$(yas-choose-value '("regular" "fifo"))} \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/friend_pattern b/lisp/snippets/cfengine3-mode/attributes/friend_pattern new file mode 100644 index 00000000..46d0150c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/friend_pattern @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: friend_pattern => string +# key: friend_pattern +# contributor: Jeff Carlson +# uuid: 6d580387-3f2d-442b-a9cf-fdaf1b65d016 +# -- +friend_pattern => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/group_primary b/lisp/snippets/cfengine3-mode/attributes/group_primary new file mode 100644 index 00000000..adb023a6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/group_primary @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: group_primary => string +# key: group_primary +# contributor: Jeff Carlson +# uuid: 86fd42fb-b74b-4251-a882-36499d1c8962 +# -- +group_primary => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/groups_secondary b/lisp/snippets/cfengine3-mode/attributes/groups_secondary new file mode 100644 index 00000000..2a1f38d5 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/groups_secondary @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: groups_secondary => slist in range .* +# key: groups_secondary +# contributor: Jeff Carlson +# uuid: e90c20a8-ecbf-4a73-954d-dc9503ca48bd +# -- +groups_secondary => { ${1:slist in range .*} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/handle b/lisp/snippets/cfengine3-mode/attributes/handle new file mode 100644 index 00000000..d4dc39a8 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/handle @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: handle => string +# key: handle +# contributor: Jeff Carlson +# uuid: da8bb1ef-57e3-45b0-bc56-5d7090313e78 +# -- +handle => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/history_type b/lisp/snippets/cfengine3-mode/attributes/history_type new file mode 100644 index 00000000..c14cde45 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/history_type @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: history_type => one of weekly, scalar, static, log +# key: history_type +# contributor: Jeff Carlson +# uuid: c0d06f99-c03f-47c6-9756-876640246f12 +# -- +history_type => ${1:$$(yas-choose-value '("weekly" "scalar" "static" "log"))} \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/home_bundle b/lisp/snippets/cfengine3-mode/attributes/home_bundle new file mode 100644 index 00000000..66376c89 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/home_bundle @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: home_bundle => bundle +# key: home_bundle +# contributor: Jeff Carlson +# uuid: 26f802d4-6be3-49a8-962b-ef5ce69505fa +# -- +home_bundle => ${1:bundle}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/home_bundle_inherit b/lisp/snippets/cfengine3-mode/attributes/home_bundle_inherit new file mode 100644 index 00000000..6a63209e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/home_bundle_inherit @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: home_bundle_inherit => boolean +# key: home_bundle_inherit +# contributor: Jeff Carlson +# uuid: 8b9c692d-f04d-45d5-84a0-c7b1983bd5c6 +# -- +home_bundle_inherit => "${1:$$(yas-choose-value '("true" "false"))}"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/home_dir b/lisp/snippets/cfengine3-mode/attributes/home_dir new file mode 100644 index 00000000..82b0fb87 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/home_dir @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: home_dir => string in range "?(/.*) +# key: home_dir +# contributor: Jeff Carlson +# uuid: 711792f1-659e-4392-98f0-04b2591bde64 +# -- +home_dir => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/if b/lisp/snippets/cfengine3-mode/attributes/if new file mode 100644 index 00000000..6acd2f3f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/if @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: if => string +# key: if +# contributor: Jeff Carlson +# uuid: dcd94f8c-bb90-49c4-886c-6e93dd254cab +# -- +if => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/if_match_regex b/lisp/snippets/cfengine3-mode/attributes/if_match_regex new file mode 100644 index 00000000..1414c816 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/if_match_regex @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: if_match_regex => string +# key: if_match_regex +# contributor: Jeff Carlson +# uuid: d2f9a236-3628-477a-b269-e25749d3a0f0 +# -- +if_match_regex => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/ifencrypted b/lisp/snippets/cfengine3-mode/attributes/ifencrypted new file mode 100644 index 00000000..6960cad1 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/ifencrypted @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: ifencrypted => boolean +# key: ifencrypted +# contributor: Jeff Carlson +# uuid: 7740d7d4-6cd0-463d-93c5-373647f1d3a7 +# -- +ifencrypted => "${1:$$(yas-choose-value '("true" "false"))}"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/ifvarclass b/lisp/snippets/cfengine3-mode/attributes/ifvarclass new file mode 100644 index 00000000..f8c8a94a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/ifvarclass @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: ifvarclass => string +# key: ifvarclass +# contributor: Jeff Carlson +# uuid: 7c08755a-7485-4c3c-b597-c084692f83d3 +# -- +ifvarclass => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/ilist b/lisp/snippets/cfengine3-mode/attributes/ilist new file mode 100644 index 00000000..7e919517 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/ilist @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: ilist => ilist in range -99999999999,99999999999 +# key: ilist +# contributor: Jeff Carlson +# uuid: f429f594-99d3-4245-b2f9-c49db2539057 +# -- +ilist => { ${1:ilist in range -99999999999,99999999999} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/inherit b/lisp/snippets/cfengine3-mode/attributes/inherit new file mode 100644 index 00000000..72a3c558 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/inherit @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: inherit => boolean +# key: inherit +# contributor: Jeff Carlson +# uuid: 52477f64-8834-40a3-be9d-d1bd0f89bcc5 +# -- +inherit => "${1:$$(yas-choose-value '("true" "false"))}"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/insert_select b/lisp/snippets/cfengine3-mode/attributes/insert_select new file mode 100644 index 00000000..50995d43 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/insert_select @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: insert_select => body insert_select +# key: insert_select +# contributor: Jeff Carlson +# uuid: e901110d-e2ce-43e5-8b57-9fa19009730a +# -- +insert_select => ${1:body_insert_select}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/insert_type b/lisp/snippets/cfengine3-mode/attributes/insert_type new file mode 100644 index 00000000..7d940572 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/insert_type @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: insert_type => one of literal, string, file, file_preserve_block, preserve_block, preserve_all_lines +# key: insert_type +# contributor: Jeff Carlson +# uuid: 8a92c705-b537-4e41-843f-0db3952bd4f9 +# -- +insert_type => ${1:$$(yas-choose-value '("literal" "string" "file" "file_preserve_block" "preserve_block" "preserve_all_lines"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/int b/lisp/snippets/cfengine3-mode/attributes/int new file mode 100644 index 00000000..49191d19 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/int @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: int => int in range -99999999999,99999999999 +# key: int +# contributor: Jeff Carlson +# uuid: b19b0a2b-64b2-4f16-8132-cdc3d85254ae +# -- +int => ${1:int in range -99999999999,99999999999}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/intermittency b/lisp/snippets/cfengine3-mode/attributes/intermittency new file mode 100644 index 00000000..fab88fa1 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/intermittency @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: intermittency => real in range 0,1 +# key: intermittency +# contributor: Jeff Carlson +# uuid: 1e0ecf0a-1988-4f45-b0d5-4870d62551c9 +# -- +intermittency => ${1:$$(yas-choose-value '("0" "1"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/lastseen b/lisp/snippets/cfengine3-mode/attributes/lastseen new file mode 100644 index 00000000..d3ec9bfe --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/lastseen @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: lastseen => int in range 0,99999999999 +# key: lastseen +# contributor: Jeff Carlson +# uuid: b314337a-c2c3-4713-8fce-6672b1daa68f +# -- +lastseen => ${1:int in range 0,99999999999}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/link_from b/lisp/snippets/cfengine3-mode/attributes/link_from new file mode 100644 index 00000000..899be4e1 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/link_from @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: link_from => body link_from +# key: link_from +# contributor: Jeff Carlson +# uuid: b0430eb1-5be8-4395-8266-5dfbe52405d2 +# -- +link_from => ${1:$$(yas-choose-value '("linkchildren" "linkfrom" "ln_s"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/location b/lisp/snippets/cfengine3-mode/attributes/location new file mode 100644 index 00000000..4a0fc03b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/location @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: location => body location +# key: location +# contributor: Jeff Carlson +# uuid: d8aaf75d-0894-4f53-8333-755c58f1727b +# -- +location => ${1:$$(yas-choose-value '( +after +before +start +))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/maproot b/lisp/snippets/cfengine3-mode/attributes/maproot new file mode 100644 index 00000000..f49d7e3b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/maproot @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: maproot => slist +# key: maproot +# contributor: Jeff Carlson +# uuid: 70d07c37-83f9-4b0e-a049-c7664376ae83 +# -- +maproot => { ${1:slist} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/match_value b/lisp/snippets/cfengine3-mode/attributes/match_value new file mode 100644 index 00000000..18fa24c5 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/match_value @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: match_value => body match_value +# key: match_value +# contributor: Jeff Carlson +# uuid: eaccc8e5-f069-4214-997c-8b94e7b0dee0 +# -- +match_value => ${1:$$(yas-choose-value '("line_match_value" "scan_changing_file" "scan_log" "single_value"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/meta b/lisp/snippets/cfengine3-mode/attributes/meta new file mode 100644 index 00000000..79d3b847 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/meta @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: meta => slist +# key: meta +# contributor: Jeff Carlson +# uuid: db1df804-1b12-4c73-8ae7-8b789a74f8a0 +# -- +meta => { ${1:slist} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/module b/lisp/snippets/cfengine3-mode/attributes/module new file mode 100644 index 00000000..6a80fc27 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/module @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: module => boolean +# key: module +# contributor: Jeff Carlson +# uuid: 587ae740-5e33-4d7c-94ad-194fab624b76 +# -- +module => "${1:$$(yas-choose-value '("true" "false"))}"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/mount b/lisp/snippets/cfengine3-mode/attributes/mount new file mode 100644 index 00000000..209335f4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/mount @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: mount => body mount +# key: mount +# contributor: Jeff Carlson +# uuid: 657555d8-47b3-48f4-899e-9ed503ce564a +# -- +mount => ${1:$$(yas-choose-value '("nfs" "nfs_p" "unmount"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/move_obstructions b/lisp/snippets/cfengine3-mode/attributes/move_obstructions new file mode 100644 index 00000000..6ee0646e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/move_obstructions @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: move_obstructions => boolean +# key: move_obstructions +# contributor: Jeff Carlson +# uuid: 34d9508d-eca0-4ce3-9a57-e3cc62e8166d +# -- +move_obstructions => "${1:$$(yas-choose-value '("true" "false"))}"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/not b/lisp/snippets/cfengine3-mode/attributes/not new file mode 100644 index 00000000..66b8926b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/not @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: not => class expression in range [a-zA-Z0-9_!&@@$|.()[]{}:]+ +# key: not +# contributor: Jeff Carlson +# uuid: a31d6380-887a-4984-80c4-31025889ecdd +# -- +not => ${1:class expression in range [a-zA-Z0-9_!&@@$|.()[]{}:]+}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/not_matching b/lisp/snippets/cfengine3-mode/attributes/not_matching new file mode 100644 index 00000000..725439e9 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/not_matching @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: not_matching => boolean +# key: not_matching +# contributor: Jeff Carlson +# uuid: ed35c5b2-08fc-4c70-8c91-d99cda24068f +# -- +not_matching => "${1:$$(yas-choose-value '("true" "false"))}"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/options b/lisp/snippets/cfengine3-mode/attributes/options new file mode 100644 index 00000000..60be8932 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/options @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: options => slist +# key: options +# contributor: Jeff Carlson +# uuid: 30ae87b4-9e29-4c39-aa89-ebd206518e2e +# -- +options => { ${1:slist} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/or b/lisp/snippets/cfengine3-mode/attributes/or new file mode 100644 index 00000000..91c79905 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/or @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: or => clist in range [a-zA-Z0-9_!&@@$|.()[]{}:]+ +# key: or +# contributor: Jeff Carlson +# uuid: ae3d723f-1309-4a11-82a8-9c1f07b2eecc +# -- +or => ${1:clist in range [a-zA-Z0-9_!&@@$|.()[]{}:]+}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/package_architectures b/lisp/snippets/cfengine3-mode/attributes/package_architectures new file mode 100644 index 00000000..53c18ef8 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/package_architectures @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: package_architectures => slist +# key: package_architectures +# contributor: Jeff Carlson +# uuid: 30ff7842-1ff0-4d6a-ac36-d71c66782917 +# -- +package_architectures => { ${1:slist} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/package_method b/lisp/snippets/cfengine3-mode/attributes/package_method new file mode 100644 index 00000000..ca2cd8d8 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/package_method @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: package_method => body package_method +# key: package_method +# contributor: Jeff Carlson +# uuid: 890c59e2-bfb9-4d6c-86e7-cb6c165a02fc +# -- +package_method => ${1:$$(yas-choose-value '("alpinelinux" "apt" "apt_get" "apt_get_permissive" "apt_get_release" "brew" "dpkg_version" "emerge" "freebsd" "freebsd_portmaster" "generic" "ips" "msi_explicit" "msi_implicit" "npm" "npm_g" "opencsw" "pacman" "pip" "rpm_filebased" "rpm_version" "smartos" "smartos_pkg_add" "solaris" "solaris_install" "windows_feature" "yum" "yum_group" "yum_rpm" "yum_rpm_enable_repo" "yum_rpm_permissive" "zypper"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/package_module b/lisp/snippets/cfengine3-mode/attributes/package_module new file mode 100644 index 00000000..dddf5175 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/package_module @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: package_module => body package_module +# key: package_module +# contributor: Jeff Carlson +# uuid: 44ee2b2b-1ae6-45e5-9af8-359cc084ba4d +# -- +package_module => ${1:$$(yas-choose-value '("apt_get" "freebsd_ports" "nimclient" "pkg" "pkgsrc" "slackpkg" "yum" "zypper"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/package_policy b/lisp/snippets/cfengine3-mode/attributes/package_policy new file mode 100644 index 00000000..96c34455 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/package_policy @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: package_policy => one of add, delete, reinstall, update, addupdate, patch, verify +# key: package_policy +# contributor: Jeff Carlson +# uuid: 95adddda-8f2a-4376-9da7-bc27de8bf476 +# -- +package_policy => ${1:$$(yas-choose-value '("add" "delete" "reinstall" "update" "addupdate" "patch" "verify"))} \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/package_select b/lisp/snippets/cfengine3-mode/attributes/package_select new file mode 100644 index 00000000..e6afb409 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/package_select @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: package_select => one of >, <, ==, !=, >=, <= +# key: package_select +# contributor: Jeff Carlson +# uuid: 00073582-4f5b-437b-9dd3-c27c19dec1fd +# -- +package_select => ${1:$$(yas-choose-value '(">" "<" "==" "!=" ">=" "<="))} \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/package_version b/lisp/snippets/cfengine3-mode/attributes/package_version new file mode 100644 index 00000000..ad822537 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/package_version @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: package_version => string +# key: package_version +# contributor: Jeff Carlson +# uuid: a953adc7-dcb4-4575-a2fa-e4e752b884e1 +# -- +package_version => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/password b/lisp/snippets/cfengine3-mode/attributes/password new file mode 100644 index 00000000..cfe6fd56 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/password @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: password => body password +# key: password +# contributor: Jeff Carlson +# uuid: 69981533-34d7-4b34-ac0c-8ecb8ea93f7d +# -- +password => ${1:$$(yas-choose-value '("hashed_password" "plaintext_password"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/pathtype b/lisp/snippets/cfengine3-mode/attributes/pathtype new file mode 100644 index 00000000..235555f3 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/pathtype @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: pathtype => one of literal, regex, guess +# key: pathtype +# contributor: Jeff Carlson +# uuid: 6574ffd6-bddc-4958-b8c3-49f132625a08 +# -- +pathtype => ${1:$$(yas-choose-value '("literal" "regex" "guess"))} \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/perms b/lisp/snippets/cfengine3-mode/attributes/perms new file mode 100644 index 00000000..6de1220b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/perms @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: perms => body perms +# key: perms +# contributor: Jeff Carlson +# uuid: 64188558-a0e5-414e-8c3e-8c008391477a +# -- +perms => ${1:$$(yas-choose-value '("m" "mo" "mog" "og" "owner" "system_owned"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/persistence b/lisp/snippets/cfengine3-mode/attributes/persistence new file mode 100644 index 00000000..c315fa33 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/persistence @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: persistence => int in range 0,99999999999 +# key: persistence +# contributor: Jeff Carlson +# uuid: 3b0b288a-4116-448d-8a59-59d64b25ce93 +# -- +persistence => ${1:int in range 0,99999999999}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/policy b/lisp/snippets/cfengine3-mode/attributes/policy new file mode 100644 index 00000000..e2a1315f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/policy @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: policy => one of free, overridable, constant, ifdefined +# key: policy +# contributor: Jeff Carlson +# uuid: 810deabb-69b6-4443-ac45-81a968a6ecb6 +# -- +policy => ${1:$$(yas-choose-value '("free" "overridable" "constant" "ifdefined"))} \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/printfile b/lisp/snippets/cfengine3-mode/attributes/printfile new file mode 100644 index 00000000..43d91b44 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/printfile @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: printfile => body printfile +# key: printfile +# contributor: Jeff Carlson +# uuid: 02eecb13-2c8b-4290-9cb6-9405425791c2 +# -- +printfile => ${1:$$(yas-choose-value '("cat" "head" "head_n"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/process_count b/lisp/snippets/cfengine3-mode/attributes/process_count new file mode 100644 index 00000000..bbe77248 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/process_count @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: process_count => body process_count +# key: process_count +# contributor: Jeff Carlson +# uuid: 2bedf59a-8d8b-4064-a7cb-f88b16e058aa +# -- +process_count => ${1:$$(yas-choose-value '("any_count" "check_range"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/process_select b/lisp/snippets/cfengine3-mode/attributes/process_select new file mode 100644 index 00000000..9c762462 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/process_select @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: process_select => body process_select +# key: process_select +# contributor: Jeff Carlson +# uuid: f923efae-f9d4-4e6b-b4bd-01e65534e047 +# -- +process_select => ${1:$$(yas-choose-value '("by_owner" "by_pid" "days_older_than" "exclude_procs"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/process_stop b/lisp/snippets/cfengine3-mode/attributes/process_stop new file mode 100644 index 00000000..210c4239 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/process_stop @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: process_stop => string in range "?(/.*) +# key: process_stop +# contributor: Jeff Carlson +# uuid: 00783a44-3e78-4bdb-b2d3-2aa02fc62778 +# -- +process_stop => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/real b/lisp/snippets/cfengine3-mode/attributes/real new file mode 100644 index 00000000..4d1011a0 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/real @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: real => real in range -9.99999E100,9.99999E100 +# key: real +# contributor: Jeff Carlson +# uuid: d7a39175-2870-4a52-a757-2b1fc70189ca +# -- +real => ${1:real in range -9.99999E100,9.99999E100}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/registry_exclude b/lisp/snippets/cfengine3-mode/attributes/registry_exclude new file mode 100644 index 00000000..f428fc37 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/registry_exclude @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: registry_exclude => slist +# key: registry_exclude +# contributor: Jeff Carlson +# uuid: 222ceaa0-cca7-4d54-ba7b-e48ad8902172 +# -- +registry_exclude => { ${1: slist} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/rename b/lisp/snippets/cfengine3-mode/attributes/rename new file mode 100644 index 00000000..4d3cc097 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/rename @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: rename => body rename +# key: rename +# contributor: Jeff Carlson +# uuid: 74153a01-8398-4d62-a8f6-4948b5d8908e +# -- +rename => ${1:$$(yas-choose-value '("disable" "rotate" "to"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/replace_with b/lisp/snippets/cfengine3-mode/attributes/replace_with new file mode 100644 index 00000000..1c07231c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/replace_with @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: replace_with => body replace_with +# key: replace_with +# contributor: Jeff Carlson +# uuid: 0f6130f2-7eb0-4905-978a-aaf0684c6c87 +# -- +replace_with => ${1:$$(yas-choose-value '("comment" "uncomment" "value"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/report_data_select b/lisp/snippets/cfengine3-mode/attributes/report_data_select new file mode 100644 index 00000000..68fa3d77 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/report_data_select @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: report_data_select => body report_data_select +# key: report_data_select +# contributor: Jeff Carlson +# uuid: f1e1bd9c-6805-4c5a-9eae-6d6b1a645068 +# -- +report_data_select => ${1:body_report_data_select}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/report_to_file b/lisp/snippets/cfengine3-mode/attributes/report_to_file new file mode 100644 index 00000000..20771a43 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/report_to_file @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: report_to_file => string in range "?(/.*) +# key: report_to_file +# contributor: Jeff Carlson +# uuid: e98b120a-f39b-4f41-aa45-e28731204e61 +# -- +report_to_file => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/repository b/lisp/snippets/cfengine3-mode/attributes/repository new file mode 100644 index 00000000..271eb9c2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/repository @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: repository => string in range "?(/.*) +# key: repository +# contributor: Jeff Carlson +# uuid: 5a650459-a828-4cb5-b772-d0028e714c72 +# -- +repository => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/resource_type b/lisp/snippets/cfengine3-mode/attributes/resource_type new file mode 100644 index 00000000..c417ed13 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/resource_type @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: resource_type => one of path, literal, context, query, variable, bundle +# key: resource_type +# contributor: Jeff Carlson +# uuid: 456856a6-c5ce-494c-b6b6-4362f8d414ac +# -- +resource_type => ${1:$$(yas-choose-value '("path" "literal" "context" "query" "variable" "bundle"))} \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/restart_class b/lisp/snippets/cfengine3-mode/attributes/restart_class new file mode 100644 index 00000000..ddd39c02 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/restart_class @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: restart_class => string in range [a-zA-Z0-9_$(){}[].:]+ +# key: restart_class +# contributor: Jeff Carlson +# uuid: d2697596-f025-4445-860c-9b4b3e8ee870 +# -- +restart_class => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/rlist b/lisp/snippets/cfengine3-mode/attributes/rlist new file mode 100644 index 00000000..f2256298 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/rlist @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: rlist => rlist in range -9.99999E100,9.99999E100 +# key: rlist +# contributor: Jeff Carlson +# uuid: a724b826-3805-4a4b-9cb4-49030636e54f +# -- +rlist => ${1:rlist in range -9.99999E100,9.99999E100}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/scope b/lisp/snippets/cfengine3-mode/attributes/scope new file mode 100644 index 00000000..5ec3da35 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/scope @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: scope => one of namespace, bundle +# key: scope +# contributor: Jeff Carlson +# uuid: dc9b61be-b6e1-4411-bb40-71122cb79226 +# -- +scope => ${1:$$(yas-choose-value '("namespace" "bundle"))} \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/select_class b/lisp/snippets/cfengine3-mode/attributes/select_class new file mode 100644 index 00000000..44aab1d4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/select_class @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: select_class => clist in range [a-zA-Z0-9_!&@@$|.()[]{}:]+ +# key: select_class +# contributor: Jeff Carlson +# uuid: 9626c1c2-6597-48eb-8ce2-8ceb656a97f3 +# -- +select_class => ${1:clist in range [a-zA-Z0-9_!&@@$|.()[]{}:]+}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/select_region b/lisp/snippets/cfengine3-mode/attributes/select_region new file mode 100644 index 00000000..5b1e1683 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/select_region @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: select_region => body select_region +# key: select_region +# contributor: Jeff Carlson +# uuid: 18bad874-67d5-4db5-bb9b-a601169e1baa +# -- +select_region => ${1:$$(yas-choose-value '("INI_section"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/select_xpath b/lisp/snippets/cfengine3-mode/attributes/select_xpath new file mode 100644 index 00000000..7e5a5614 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/select_xpath @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: select_xpath => string +# key: select_xpath +# contributor: Jeff Carlson +# uuid: ff156899-4013-449a-a320-2e8e49b61f0f +# -- +select_xpath => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/service_dependencies b/lisp/snippets/cfengine3-mode/attributes/service_dependencies new file mode 100644 index 00000000..e668e964 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/service_dependencies @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: service_dependencies => slist in range [a-zA-Z0-9_$(){}[].:]+ +# key: service_dependencies +# contributor: Jeff Carlson +# uuid: 34072367-2464-4c19-9d67-d9b12649ef91 +# -- +service_dependencies => { ${1:slist in range [a-zA-Z0-9_$(){}[].:]+} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/service_method b/lisp/snippets/cfengine3-mode/attributes/service_method new file mode 100644 index 00000000..955f19ac --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/service_method @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: service_method => body service_method +# key: service_method +# contributor: Jeff Carlson +# uuid: 5f3d6110-bafc-4933-87c2-050b9446dd73 +# -- +service_method => ${1:$$(yas-choose-value '("bootstart" "force_deps" "standard_services"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/service_policy b/lisp/snippets/cfengine3-mode/attributes/service_policy new file mode 100644 index 00000000..1dc40b51 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/service_policy @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: service_policy => string +# key: service_policy +# contributor: Jeff Carlson +# uuid: 7119e3d2-2ff9-40c6-84f7-b7c2afed5992 +# -- +service_policy => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/shell b/lisp/snippets/cfengine3-mode/attributes/shell new file mode 100644 index 00000000..d7fb1b14 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/shell @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: shell => string in range "?(/.*) +# key: shell +# contributor: Jeff Carlson +# uuid: df56523a-0514-488a-86db-ba157ad44642 +# -- +shell => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/shortcut b/lisp/snippets/cfengine3-mode/attributes/shortcut new file mode 100644 index 00000000..0466ed85 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/shortcut @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: shortcut => string +# key: shortcut +# contributor: Jeff Carlson +# uuid: 2f8941e1-99e7-4682-9c77-76f0c811da16 +# -- +shortcut => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/showstate b/lisp/snippets/cfengine3-mode/attributes/showstate new file mode 100644 index 00000000..8f4a0e73 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/showstate @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: showstate => slist +# key: showstate +# contributor: Jeff Carlson +# uuid: e57e4b9b-74ae-4b31-bcc5-c2d507735125 +# -- +showstate => { ${1:slist} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/signals b/lisp/snippets/cfengine3-mode/attributes/signals new file mode 100644 index 00000000..0484fef4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/signals @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: signals => olist in range hup,int,trap,kill,pipe,cont,abrt,stop,quit,term,child,usr1,usr2,bus,segv +# key: signals +# contributor: Jeff Carlson +# uuid: f6cfd28f-4080-4963-ab53-499226644292 +# -- +signals => ${1:olist in range hup,int,trap,kill,pipe,cont,abrt,stop,quit,term,child,usr1,usr2,bus,segv}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/slist b/lisp/snippets/cfengine3-mode/attributes/slist new file mode 100644 index 00000000..5862d314 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/slist @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: slist => slist +# key: slist +# contributor: Jeff Carlson +# uuid: bd7f5c53-1009-4a15-ac9f-003984bf322d +# -- +slist => { ${1:slist} }$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/stream_type b/lisp/snippets/cfengine3-mode/attributes/stream_type new file mode 100644 index 00000000..0e38166d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/stream_type @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: stream_type => one of pipe, file +# key: stream_type +# contributor: Jeff Carlson +# uuid: 06c9fec6-bc6f-4769-bd7b-5c5f4c95c5f2 +# -- +stream_type => ${1:$$(yas-choose-value '("pipe" "file"))} \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/string b/lisp/snippets/cfengine3-mode/attributes/string new file mode 100644 index 00000000..aa03a495 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/string @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: string => string +# key: string +# contributor: Jeff Carlson +# uuid: f124782e-a3cf-4d76-8fa7-9d81d6017dd2 +# -- +string => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/template_data b/lisp/snippets/cfengine3-mode/attributes/template_data new file mode 100644 index 00000000..aec09fa1 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/template_data @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: template_data => data +# key: template_data +# contributor: Jeff Carlson +# uuid: 23d2dbe0-7313-4f09-9097-01ae92467dfb +# -- +template_data => ${1:data}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/template_method b/lisp/snippets/cfengine3-mode/attributes/template_method new file mode 100644 index 00000000..482000f9 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/template_method @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: template_method => one of cfengine, inline_mustache, mustache +# key: template_method +# contributor: Jeff Carlson +# uuid: 553e580b-ccf7-43a0-9cb0-ff11ea1be32d +# -- +template_method => ${1:$$(yas-choose-value '("cfengine" "inline_mustache" "mustache"))} \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/touch b/lisp/snippets/cfengine3-mode/attributes/touch new file mode 100644 index 00000000..0e21591a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/touch @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: touch => boolean +# key: touch +# contributor: Jeff Carlson +# uuid: 96c87d3a-d0fa-4344-bf6a-67a1420d7fa7 +# -- +touch => "${1:$$(yas-choose-value '("true" "false"))}"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/transformer b/lisp/snippets/cfengine3-mode/attributes/transformer new file mode 100644 index 00000000..4cc5b3ef --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/transformer @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: transformer => string in range "?(/.*) +# key: transformer +# contributor: Jeff Carlson +# uuid: 3bdb3ae1-736d-46c2-a7c1-73abd9ea7ae1 +# -- +transformer => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/uid b/lisp/snippets/cfengine3-mode/attributes/uid new file mode 100644 index 00000000..62f27fab --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/uid @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: uid => int in range -99999999999,99999999999 +# key: uid +# contributor: Jeff Carlson +# uuid: 84dbdf2e-1d04-4339-a0f7-b0684ccebd7f +# -- +uid => ${1:int in range -99999999999,99999999999}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/units b/lisp/snippets/cfengine3-mode/attributes/units new file mode 100644 index 00000000..34739979 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/units @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: units => string +# key: units +# contributor: Jeff Carlson +# uuid: c26d60ee-4dd9-4f00-a2f7-4a295af3df26 +# -- +units => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/unless b/lisp/snippets/cfengine3-mode/attributes/unless new file mode 100644 index 00000000..2d850d82 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/unless @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: unless => string +# key: unless +# contributor: Jeff Carlson +# uuid: 32a3e352-ff67-44f7-a4c1-826134344871 +# -- +unless => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/usebundle b/lisp/snippets/cfengine3-mode/attributes/usebundle new file mode 100644 index 00000000..49916ae6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/usebundle @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: usebundle => bundle +# key: usebundle +# contributor: Jeff Carlson +# uuid: 2cd46129-f3f1-456d-9f9d-456f20af426b +# -- +usebundle => ${1:bundle}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/useresult b/lisp/snippets/cfengine3-mode/attributes/useresult new file mode 100644 index 00000000..e8835750 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/useresult @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: useresult => string in range [a-zA-Z0-9_$(){}[].:]+ +# key: useresult +# contributor: Jeff Carlson +# uuid: 619a5245-b289-454a-aea9-6bec98439cc8 +# -- +useresult => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/version b/lisp/snippets/cfengine3-mode/attributes/version new file mode 100644 index 00000000..46df9b89 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/version @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: version => string +# key: version +# contributor: Jeff Carlson +# uuid: 30f4d795-9019-4b41-8e68-a55fb0051325 +# -- +version => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/volume b/lisp/snippets/cfengine3-mode/attributes/volume new file mode 100644 index 00000000..5126070d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/volume @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: volume => body volume +# key: volume +# contributor: Jeff Carlson +# uuid: 62d1011d-097c-48de-b607-f88e85fcc32b +# -- +volume => ${1:$$(yas-choose-value '("min_free_space"))}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/whitespace_policy b/lisp/snippets/cfengine3-mode/attributes/whitespace_policy new file mode 100644 index 00000000..9bd226a4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/whitespace_policy @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: whitespace_policy => olist in range ignore_leading,ignore_trailing,ignore_embedded,exact_match +# key: whitespace_policy +# contributor: Jeff Carlson +# uuid: 7cf42591-3671-4eee-b857-8c9966301e50 +# -- +whitespace_policy => ${1:olist in range ignore_leading,ignore_trailing,ignore_embedded,exact_match}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/with b/lisp/snippets/cfengine3-mode/attributes/with new file mode 100644 index 00000000..4d4fc53a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/with @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: with => string +# key: with +# contributor: Jeff Carlson +# uuid: 76da7c19-d12d-4f1d-8a4a-3966b1b06122 +# -- +with => "$1"$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/attributes/xor b/lisp/snippets/cfengine3-mode/attributes/xor new file mode 100644 index 00000000..8a6a4b91 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/attributes/xor @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: xor => clist in range [a-zA-Z0-9_!&@@$|.()[]{}:]+ +# key: xor +# contributor: Jeff Carlson +# uuid: 62d80b5a-5ef5-47b9-978b-47c2db98bfe9 +# -- +xor => ${1:clist in range [a-zA-Z0-9_!&@@$|.()[]{}:]+}$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/bodies/body-acl b/lisp/snippets/cfengine3-mode/bodies/body-acl new file mode 100644 index 00000000..11ea1965 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-acl @@ -0,0 +1,19 @@ +# -*- mode: snippet -*- +# name: body acl +# key: body-acl +# contributor: Jeff Carlson +# uuid: a172a3c8-f720-4588-b22f-25d36f9931e6 +# -- +body acl $1 +{ +inherit_from +meta +aces +acl_default +acl_directory_inherit +acl_inherit +acl_method +acl_type +specify_default_aces +specify_inherit_aces +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-action b/lisp/snippets/cfengine3-mode/bodies/body-action new file mode 100644 index 00000000..cf3598dc --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-action @@ -0,0 +1,24 @@ +# -*- mode: snippet -*- +# name: body action +# key: body-action +# contributor: Jeff Carlson +# uuid: d394abcc-e8e7-4268-ba17-d9f70e32fafa +# -- +body action $1 +{ +inherit_from +meta +action_policy +audit +background +expireafter +ifelapsed +log_failed +log_kept +log_level +log_priority +log_repaired +log_string +measurement_class +report_level +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-agent b/lisp/snippets/cfengine3-mode/bodies/body-agent new file mode 100644 index 00000000..db085a7d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-agent @@ -0,0 +1,51 @@ +# -*- mode: snippet -*- +# name: body agent +# key: body-agent +# contributor: Jeff Carlson +# uuid: 7c9fac6d-1b9a-54e5-89e7-6c8b5e3ae414 +# -- +body agent $1 +{ +inherit_from +meta +abortbundleclasses +abortclasses +addclasses +agentaccess +agentfacility +allclassesreport +alwaysvalidate +bindtointerface +checksum_alert_time +childlibpath +default_repository +default_timeout +defaultcopytype +dryrun +editbinaryfilesize +editfilesize +environment +expireafter +files_auto_define +files_single_copy +hashupdates +hostnamekeys +ifelapsed +inform +intermittency +max_children +maxconnections +mountfilesystems +nonalphanumfiles +refresh_processes +repchar +report_class_log +secureinput +select_end_match_eof +sensiblecount +sensiblesize +skipidentify +suspiciousnames +timezone +verbose +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-changes b/lisp/snippets/cfengine3-mode/bodies/body-changes new file mode 100644 index 00000000..f5c9dc9d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-changes @@ -0,0 +1,15 @@ +# -*- mode: snippet -*- +# name: body changes +# key: body-changes +# contributor: Jeff Carlson +# uuid: d0e18289-2700-4f52-8ad3-c7aa3be7236a +# -- +body changes $1 +{ +inherit_from +meta +hash +report_changes +report_diffs +update_hashes +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-classes b/lisp/snippets/cfengine3-mode/bodies/body-classes new file mode 100644 index 00000000..2360855a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-classes @@ -0,0 +1,25 @@ +# -*- mode: snippet -*- +# name: body classes +# key: body-classes +# contributor: Jeff Carlson +# uuid: d5a412db-518f-4868-b94c-121bd249c919 +# -- +body classes $1 +{ +inherit_from +meta +cancel_kept +cancel_notkept +cancel_repaired +failed_returncodes +kept_returncodes +persist_time +promise_kept +promise_repaired +repair_denied +repair_failed +repair_timeout +repaired_returncodes +scope +timer_policy +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-common b/lisp/snippets/cfengine3-mode/bodies/body-common new file mode 100644 index 00000000..19ef91e1 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-common @@ -0,0 +1,32 @@ +# -*- mode: snippet -*- +# name: body common +# key: body-common +# contributor: Jeff Carlson +# uuid: ef69a25c-780d-5d3d-8bc7-560a539121f1 +# -- +body common $1 +{ +inherit_from +meta +bundlesequence +bwlimit +cache_system_functions +domain +fips_mode +goal_patterns +ignore_missing_bundles +ignore_missing_inputs +inputs +lastseenexpireafter +output_prefix +package_inventory +package_module +protocol_version +require_comments +site_classes +syslog_host +syslog_port +tls_ciphers +tls_min_version +version +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-contain b/lisp/snippets/cfengine3-mode/bodies/body-contain new file mode 100644 index 00000000..c1839ca8 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-contain @@ -0,0 +1,20 @@ +# -*- mode: snippet -*- +# name: body contain +# key: body-contain +# contributor: Jeff Carlson +# uuid: b1fff2ce-4a2f-47ec-9808-69bcf0e0ae0c +# -- +body contain $1 +{ +inherit_from +meta +chdir +chroot +exec_group +exec_owner +exec_timeout +no_output +preview +umask +useshell +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-copy_from b/lisp/snippets/cfengine3-mode/bodies/body-copy_from new file mode 100644 index 00000000..f4c444a7 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-copy_from @@ -0,0 +1,35 @@ +# -*- mode: snippet -*- +# name: body copy_from +# key: body-copy_from +# contributor: Jeff Carlson +# uuid: 7e099e07-a9ef-49c6-935a-e01c17e8bcdd +# -- +body copy_from $1 +{ +inherit_from +meta +check_root +collapse_destination_dir +compare +copy_backup +copy_size +copylink_patterns +encrypt +findertype +force_ipv4 +force_update +link_type +linkcopy_patterns +missing_ok +portnumber +preserve +protocol_version +purge +servers +source +stealth +timeout +trustkey +type_check +verify +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-database_server b/lisp/snippets/cfengine3-mode/bodies/body-database_server new file mode 100644 index 00000000..69173946 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-database_server @@ -0,0 +1,16 @@ +# -*- mode: snippet -*- +# name: body database_server +# key: body-database_server +# contributor: Jeff Carlson +# uuid: 392992d0-4f0c-4bc7-aa72-11e96c40ee9b +# -- +body database_server $1 +{ +inherit_from +meta +db_server_connection_db +db_server_host +db_server_owner +db_server_password +db_server_type +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-delete b/lisp/snippets/cfengine3-mode/bodies/body-delete new file mode 100644 index 00000000..d57c9ddf --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-delete @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# name: body delete +# key: body-delete +# contributor: Jeff Carlson +# uuid: 7298ed32-619c-4c72-aa0a-3a0fb1175cd3 +# -- +body delete $1 +{ +inherit_from +meta +dirlinks +rmdirs +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-delete_select b/lisp/snippets/cfengine3-mode/bodies/body-delete_select new file mode 100644 index 00000000..75ae3e5b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-delete_select @@ -0,0 +1,17 @@ +# -*- mode: snippet -*- +# name: body delete_select +# key: body-delete_select +# contributor: Jeff Carlson +# uuid: ea1162ea-bb1b-447b-a694-e65565d17a22 +# -- +body delete_select $1 +{ +inherit_from +meta +delete_if_contains_from_list +delete_if_match_from_list +delete_if_not_contains_from_list +delete_if_not_match_from_list +delete_if_not_startwith_from_list +delete_if_startwith_from_list +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-depth_search b/lisp/snippets/cfengine3-mode/bodies/body-depth_search new file mode 100644 index 00000000..cd2c36e0 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-depth_search @@ -0,0 +1,18 @@ +# -*- mode: snippet -*- +# name: body depth_search +# key: body-depth_search +# contributor: Jeff Carlson +# uuid: 969a5e5a-ddd3-44e1-aa68-c1eecf21210b +# -- +body depth_search $1 +{ +inherit_from +meta +depth +exclude_dirs +include_basedir +include_dirs +rmdeadlinks +traverse_links +xdev +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-edit_defaults b/lisp/snippets/cfengine3-mode/bodies/body-edit_defaults new file mode 100644 index 00000000..82134dcb --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-edit_defaults @@ -0,0 +1,17 @@ +# -*- mode: snippet -*- +# name: body edit_defaults +# key: body-edit_defaults +# contributor: Jeff Carlson +# uuid: 8bcb6d14-5189-45d2-b969-8360b5a3374b +# -- +body edit_defaults $1 +{ +inherit_from +meta +edit_backup +empty_file_before_editing +inherit +max_file_size +recognize_join +rotate +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-edit_field b/lisp/snippets/cfengine3-mode/bodies/body-edit_field new file mode 100644 index 00000000..966e2bc6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-edit_field @@ -0,0 +1,19 @@ +# -*- mode: snippet -*- +# name: body edit_field +# key: body-edit_field +# contributor: Jeff Carlson +# uuid: 379a7c7f-39a5-44b5-83cf-50e4d5428729 +# -- +body edit_field $1 +{ +inherit_from +meta +allow_blank_fields +extend_fields +field_operation +field_separator +field_value +select_field +start_fields_from_zero +value_separator +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-environment_interface b/lisp/snippets/cfengine3-mode/bodies/body-environment_interface new file mode 100644 index 00000000..17eb9933 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-environment_interface @@ -0,0 +1,14 @@ +# -*- mode: snippet -*- +# name: body environment_interface +# key: body-environment_interface +# contributor: Jeff Carlson +# uuid: 719c0edb-af41-4cd0-9cb2-57b3534e1e97 +# -- +body environment_interface $1 +{ +inherit_from +meta +env_addresses +env_name +env_network +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-environment_resources b/lisp/snippets/cfengine3-mode/bodies/body-environment_resources new file mode 100644 index 00000000..3b18119d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-environment_resources @@ -0,0 +1,16 @@ +# -*- mode: snippet -*- +# name: body environment_resources +# key: body-environment_resources +# contributor: Jeff Carlson +# uuid: 39b3fa3a-0344-4298-9776-b517df2a6ac5 +# -- +body environment_resources $1 +{ +inherit_from +meta +env_baseline +env_cpus +env_disk +env_memory +env_spec +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-executor b/lisp/snippets/cfengine3-mode/bodies/body-executor new file mode 100644 index 00000000..3936c363 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-executor @@ -0,0 +1,23 @@ +# -*- mode: snippet -*- +# name: body executor +# key: body-executor +# contributor: Jeff Carlson +# uuid: 681aff9f-d7d2-5c9c-84de-4ba1c2f6f7cb +# -- +body executor $1 +{ +inherit_from +meta +agent_expireafter +exec_command +executorfacility +mailfilter_exclude +mailfilter_include +mailfrom +mailmaxlines +mailsubject +mailto +schedule +smtpserver +splaytime +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-file b/lisp/snippets/cfengine3-mode/bodies/body-file new file mode 100644 index 00000000..c01bf63e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-file @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# name: body file +# key: body-file +# contributor: Jeff Carlson +# uuid: d4ebe3bb-02e7-5d51-9c73-49d158eee4a1 +# -- +body file $1 +{ +inherit_from +meta +inputs +namespace +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-file_select b/lisp/snippets/cfengine3-mode/bodies/body-file_select new file mode 100644 index 00000000..55ac94c0 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-file_select @@ -0,0 +1,26 @@ +# -*- mode: snippet -*- +# name: body file_select +# key: body-file_select +# contributor: Jeff Carlson +# uuid: c939fd30-4bf9-4b22-a90f-59fead6f37dc +# -- +body file_select $1 +{ +inherit_from +meta +atime +ctime +exec_program +exec_regex +file_result +file_types +issymlinkto +leaf_name +mtime +path_name +search_bsdflags +search_groups +search_mode +search_owners +search_size +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-hub b/lisp/snippets/cfengine3-mode/bodies/body-hub new file mode 100644 index 00000000..0f0e01b4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-hub @@ -0,0 +1,16 @@ +# -*- mode: snippet -*- +# name: body hub +# key: body-hub +# contributor: Jeff Carlson +# uuid: 4c6fbbb8-1466-5524-82a5-67ef5ec0266e +# -- +body hub $1 +{ +inherit_from +meta +client_history_timeout +exclude_hosts +hub_schedule +port +query_timeout +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-insert_select b/lisp/snippets/cfengine3-mode/bodies/body-insert_select new file mode 100644 index 00000000..7f9b5c15 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-insert_select @@ -0,0 +1,17 @@ +# -*- mode: snippet -*- +# name: body insert_select +# key: body-insert_select +# contributor: Jeff Carlson +# uuid: 50590856-d52f-4220-92af-c501fc1c5540 +# -- +body insert_select $1 +{ +inherit_from +meta +insert_if_contains_from_list +insert_if_match_from_list +insert_if_not_contains_from_list +insert_if_not_match_from_list +insert_if_not_startwith_from_list +insert_if_startwith_from_list +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-link_from b/lisp/snippets/cfengine3-mode/bodies/body-link_from new file mode 100644 index 00000000..4559d0e8 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-link_from @@ -0,0 +1,17 @@ +# -*- mode: snippet -*- +# name: body link_from +# key: body-link_from +# contributor: Jeff Carlson +# uuid: 7f80b961-7329-4e1b-a8eb-ac3cc4b47ade +# -- +body link_from $1 +{ +inherit_from +meta +copy_patterns +link_children +link_type +source +when_linking_children +when_no_source +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-location b/lisp/snippets/cfengine3-mode/bodies/body-location new file mode 100644 index 00000000..4e139680 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-location @@ -0,0 +1,14 @@ +# -*- mode: snippet -*- +# name: body location +# key: body-location +# contributor: Jeff Carlson +# uuid: a7224c6b-ca0b-4e07-8215-74b0e925bc1b +# -- +body location $1 +{ +inherit_from +meta +before_after +first_last +select_line_matching +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-match_value b/lisp/snippets/cfengine3-mode/bodies/body-match_value new file mode 100644 index 00000000..37c90901 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-match_value @@ -0,0 +1,16 @@ +# -*- mode: snippet -*- +# name: body match_value +# key: body-match_value +# contributor: Jeff Carlson +# uuid: 95065d2d-bbe9-441f-88de-2301aab26399 +# -- +body match_value $1 +{ +inherit_from +meta +extraction_regex +select_line_matching +select_line_number +select_multiline_policy +track_growing_file +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-monitor b/lisp/snippets/cfengine3-mode/bodies/body-monitor new file mode 100644 index 00000000..a6618c48 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-monitor @@ -0,0 +1,16 @@ +# -*- mode: snippet -*- +# name: body monitor +# key: body-monitor +# contributor: Jeff Carlson +# uuid: b1600a9f-0eba-50ae-9d26-db24e5eaa16c +# -- +body monitor $1 +{ +inherit_from +meta +forgetrate +histograms +monitorfacility +tcpdump +tcpdumpcommand +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-mount b/lisp/snippets/cfengine3-mode/bodies/body-mount new file mode 100644 index 00000000..887d5181 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-mount @@ -0,0 +1,17 @@ +# -*- mode: snippet -*- +# name: body mount +# key: body-mount +# contributor: Jeff Carlson +# uuid: 17b9a3b4-f706-4746-9342-130bc67cc0a4 +# -- +body mount $1 +{ +inherit_from +meta +edit_fstab +mount_options +mount_server +mount_source +mount_type +unmount +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-package_method b/lisp/snippets/cfengine3-mode/bodies/body-package_method new file mode 100644 index 00000000..f5e62877 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-package_method @@ -0,0 +1,42 @@ +# -*- mode: snippet -*- +# name: body package_method +# key: body-package_method +# contributor: Jeff Carlson +# uuid: fb886396-ccbc-4d04-9f90-48c88cbeec1d +# -- +body package_method $1 +{ +inherit_from +meta +package_add_command +package_arch_regex +package_changes +package_commands_useshell +package_default_arch_command +package_delete_command +package_delete_convention +package_file_repositories +package_installed_regex +package_list_arch_regex +package_list_command +package_list_name_regex +package_list_update_command +package_list_update_ifelapsed +package_list_version_regex +package_multiline_start +package_name_convention +package_name_regex +package_noverify_regex +package_noverify_returncode +package_patch_arch_regex +package_patch_command +package_patch_installed_regex +package_patch_list_command +package_patch_name_regex +package_patch_version_regex +package_update_command +package_verify_command +package_version_equal_command +package_version_less_command +package_version_regex +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-package_module b/lisp/snippets/cfengine3-mode/bodies/body-package_module new file mode 100644 index 00000000..8fa95191 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-package_module @@ -0,0 +1,16 @@ +# -*- mode: snippet -*- +# name: body package_module +# key: body-package_module +# contributor: Jeff Carlson +# uuid: c040470f-2c2e-41bc-a9b6-301a752f5c5e +# -- +body package_module $1 +{ +inherit_from +meta +default_options +interpreter +module_path +query_installed_ifelapsed +query_updates_ifelapsed +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-password b/lisp/snippets/cfengine3-mode/bodies/body-password new file mode 100644 index 00000000..f06ae06e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-password @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# name: body password +# key: body-password +# contributor: Jeff Carlson +# uuid: 7f6762bf-dba3-4d9a-b260-ae247d639c52 +# -- +body password $1 +{ +inherit_from +meta +data +format +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-perms b/lisp/snippets/cfengine3-mode/bodies/body-perms new file mode 100644 index 00000000..1865f89d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-perms @@ -0,0 +1,16 @@ +# -*- mode: snippet -*- +# name: body perms +# key: body-perms +# contributor: Jeff Carlson +# uuid: a6bdc0c3-db3d-4042-8c7e-ee6195f4ef4c +# -- +body perms $1 +{ +inherit_from +meta +bsdflags +groups +mode +owners +rxdirs +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-printfile b/lisp/snippets/cfengine3-mode/bodies/body-printfile new file mode 100644 index 00000000..5e592529 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-printfile @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# name: body printfile +# key: body-printfile +# contributor: Jeff Carlson +# uuid: 9e1a8e6d-9dc0-427b-9fe9-759e334634a8 +# -- +body printfile $1 +{ +inherit_from +meta +file_to_print +number_of_lines +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-process_count b/lisp/snippets/cfengine3-mode/bodies/body-process_count new file mode 100644 index 00000000..0c4e58e8 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-process_count @@ -0,0 +1,14 @@ +# -*- mode: snippet -*- +# name: body process_count +# key: body-process_count +# contributor: Jeff Carlson +# uuid: 5d575de7-f4a5-4021-a355-5dfa2ee32e37 +# -- +body process_count $1 +{ +inherit_from +meta +in_range_define +match_range +out_of_range_define +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-process_select b/lisp/snippets/cfengine3-mode/bodies/body-process_select new file mode 100644 index 00000000..6e10f749 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-process_select @@ -0,0 +1,25 @@ +# -*- mode: snippet -*- +# name: body process_select +# key: body-process_select +# contributor: Jeff Carlson +# uuid: 08fa06d2-bbce-4fb2-ad30-aa81a0543dce +# -- +body process_select $1 +{ +inherit_from +meta +command +pgid +pid +ppid +priority +process_owner +process_result +rsize +status +stime_range +threads +ttime_range +tty +vsize +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-rename b/lisp/snippets/cfengine3-mode/bodies/body-rename new file mode 100644 index 00000000..11584ca9 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-rename @@ -0,0 +1,16 @@ +# -*- mode: snippet -*- +# name: body rename +# key: body-rename +# contributor: Jeff Carlson +# uuid: b23a2a54-a502-48df-bbfa-4a91b4a5d00b +# -- +body rename $1 +{ +inherit_from +meta +disable +disable_mode +disable_suffix +newname +rotate +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-replace_with b/lisp/snippets/cfengine3-mode/bodies/body-replace_with new file mode 100644 index 00000000..2619772c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-replace_with @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# name: body replace_with +# key: body-replace_with +# contributor: Jeff Carlson +# uuid: 35f67035-ea02-4a02-9790-5993f9870042 +# -- +body replace_with $1 +{ +inherit_from +meta +occurrences +replace_value +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-report_data_select b/lisp/snippets/cfengine3-mode/bodies/body-report_data_select new file mode 100644 index 00000000..7cf434ae --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-report_data_select @@ -0,0 +1,15 @@ +# -*- mode: snippet -*- +# name: body report_data_select +# key: body-report_data_select +# contributor: Jeff Carlson +# uuid: e4bd432a-2a3e-490b-b52e-16cc9b57ea78 +# -- +body report_data_select $1 +{ +inherit_from +meta +monitoring_exclude +monitoring_include +promise_handle_exclude +promise_handle_include +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-runagent b/lisp/snippets/cfengine3-mode/bodies/body-runagent new file mode 100644 index 00000000..1de9c26c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-runagent @@ -0,0 +1,21 @@ +# -*- mode: snippet -*- +# name: body runagent +# key: body-runagent +# contributor: Jeff Carlson +# uuid: 98df4183-fbae-5299-9257-ff272e7bccb2 +# -- +body runagent $1 +{ +inherit_from +meta +background_children +encrypt +force_ipv4 +hosts +max_children +output_directory +output_to_file +port +timeout +trustkey +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-select_region b/lisp/snippets/cfengine3-mode/bodies/body-select_region new file mode 100644 index 00000000..c1d34acf --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-select_region @@ -0,0 +1,16 @@ +# -*- mode: snippet -*- +# name: body select_region +# key: body-select_region +# contributor: Jeff Carlson +# uuid: 2dfcdb0c-c7bd-4dac-9678-6799a5aaf5a2 +# -- +body select_region $1 +{ +inherit_from +meta +include_end_delimiter +include_start_delimiter +select_end +select_end_match_eof +select_start +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-server b/lisp/snippets/cfengine3-mode/bodies/body-server new file mode 100644 index 00000000..4a85f055 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-server @@ -0,0 +1,34 @@ +# -*- mode: snippet -*- +# name: body server +# key: body-server +# contributor: Jeff Carlson +# uuid: 26fbb11c-36ca-5744-8d1f-79f69ef4e543 +# -- +body server $1 +{ +inherit_from +meta +allowallconnects +allowciphers +allowconnects +allowlegacyconnects +allowtlsversion +allowusers +auditing +bindtointerface +call_collect_interval +cfruncommand +collect_window +denybadclocks +denyconnects +dynamicaddresses +hostnamekeys +listen +logallconnections +logencryptedtransfers +maxconnections +port +serverfacility +skipverify +trustkeysfrom +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-service_method b/lisp/snippets/cfengine3-mode/bodies/body-service_method new file mode 100644 index 00000000..be0c19ec --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-service_method @@ -0,0 +1,16 @@ +# -*- mode: snippet -*- +# name: body service_method +# key: body-service_method +# contributor: Jeff Carlson +# uuid: feb76b13-e069-4f5a-9243-6ccdd621da2f +# -- +body service_method $1 +{ +inherit_from +meta +service_args +service_autostart_policy +service_bundle +service_dependence_chain +service_type +} diff --git a/lisp/snippets/cfengine3-mode/bodies/body-volume b/lisp/snippets/cfengine3-mode/bodies/body-volume new file mode 100644 index 00000000..531ae161 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bodies/body-volume @@ -0,0 +1,16 @@ +# -*- mode: snippet -*- +# name: body volume +# key: body-volume +# contributor: Jeff Carlson +# uuid: d2e9d8f6-497e-4e5b-a022-85b06fd585f1 +# -- +body volume $1 +{ +inherit_from +meta +check_foreign +freespace +scan_arrivals +sensible_count +sensible_size +} diff --git a/lisp/snippets/cfengine3-mode/bundles/agent b/lisp/snippets/cfengine3-mode/bundles/agent new file mode 100644 index 00000000..305f23a8 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bundles/agent @@ -0,0 +1,24 @@ +# -*- mode: snippet -*- +# name: bundle agent +# key: agent +# contributor: Jeff Carlson +# uuid: a4a207b2-466b-4330-921b-ffe718ea9c58 +# -- +bundle agent $1 +{ +meta: +vars: +defaults: +classes: +users: +files: +packages: +guest_environments: +methods: +processes: +services: +commands: +storage: +databases: +reports: +} diff --git a/lisp/snippets/cfengine3-mode/bundles/common b/lisp/snippets/cfengine3-mode/bundles/common new file mode 100644 index 00000000..bf086df2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bundles/common @@ -0,0 +1,14 @@ +# -*- mode: snippet -*- +# name: bundle common +# key: common +# contributor: Jeff Carlson +# uuid: 337c3e51-6104-415c-8724-97430ec5dae4 +# -- +bundle common $1 +{ +meta: +vars: +defaults: +classes: +reports: +} diff --git a/lisp/snippets/cfengine3-mode/bundles/edit_line b/lisp/snippets/cfengine3-mode/bundles/edit_line new file mode 100644 index 00000000..f774977b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bundles/edit_line @@ -0,0 +1,18 @@ +# -*- mode: snippet -*- +# name: bundle edit_line +# key: edit_line +# contributor: Jeff Carlson +# uuid: eb9a1594-e51f-4d35-92d5-508ac0228721 +# -- +bundle edit_line $1 +{ +meta: +vars: +defaults: +classes: +delete_lines: +field_edits: +insert_lines: +replace_patterns: +reports: +} diff --git a/lisp/snippets/cfengine3-mode/bundles/monitor b/lisp/snippets/cfengine3-mode/bundles/monitor new file mode 100644 index 00000000..2f35d433 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bundles/monitor @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# name: bundle monitor +# key: monitor +# contributor: Jeff Carlson +# uuid: 0774a928-d672-4237-8ff3-ebfec683ffcd +# -- +bundle monitor $1 +{ +vars: +classes: +measurements: +reports: +} diff --git a/lisp/snippets/cfengine3-mode/bundles/server b/lisp/snippets/cfengine3-mode/bundles/server new file mode 100644 index 00000000..0f3f903c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/bundles/server @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# name: bundle server +# key: server +# contributor: Jeff Carlson +# uuid: 29e771a0-7719-4f8e-9a7a-e0807f0c8a1b +# -- +bundle server $1 +{ +vars: +classes: +roles: +access: +} diff --git a/lisp/snippets/cfengine3-mode/functions/accessedbefore b/lisp/snippets/cfengine3-mode/functions/accessedbefore new file mode 100644 index 00000000..e33cd41a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/accessedbefore @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function accessedbefore(newer, older) +# key: accessedbefore +# contributor: Jeff Carlson +# uuid: 7c9d1e3d-6028-49f3-ac59-999059282f6f +# -- +accessedbefore("${1:newer}", "${2:older}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/accumulated b/lisp/snippets/cfengine3-mode/functions/accumulated new file mode 100644 index 00000000..a42aa60b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/accumulated @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function accumulated(years, months, days, hours, minutes, seconds) +# key: accumulated +# contributor: Jeff Carlson +# uuid: 3b460f44-b2ee-44ca-8a78-bc6c5bca8df7 +# -- +accumulated("${1:years}", "${2:months}", "${3:days}", "${4:hours}", "${5:minutes}", "${6:seconds}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/ago b/lisp/snippets/cfengine3-mode/functions/ago new file mode 100644 index 00000000..dc2a28e9 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/ago @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function ago(years, months, days, hours, minutes, seconds) +# key: ago +# contributor: Jeff Carlson +# uuid: 29f05715-804f-4131-be10-1c8a2128f451 +# -- +ago("${1:years}", "${2:months}", "${3:days}", "${4:hours}", "${5:minutes}", "${6:seconds}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/and b/lisp/snippets/cfengine3-mode/functions/and new file mode 100644 index 00000000..3755e0e7 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/and @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function and(...) +# key: and +# contributor: Jeff Carlson +# uuid: 98c3bf3a-ce17-465b-94a5-0686a87e44e3 +# -- +and("${1:condition}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/basename b/lisp/snippets/cfengine3-mode/functions/basename new file mode 100644 index 00000000..cec4abe4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/basename @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function basename(filename, optional_extension) +# key: basename +# contributor: Nick Anderson +# uuid: 56effcd7-32f6-4dd0-98b6-85f9200bf182 +# -- +basename("${1:filename}", "${2:optional_extension}")$0 diff --git a/lisp/snippets/cfengine3-mode/functions/bundlesmatching b/lisp/snippets/cfengine3-mode/functions/bundlesmatching new file mode 100644 index 00000000..74b4b89e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/bundlesmatching @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function bundlesmatching(name, tag1, tag2, ...) +# key: bundlesmatching +# contributor: Jeff Carlson +# uuid: db05ef56-02d9-4632-831f-50e34acc1950 +# -- +bundlesmatching("${1:condition}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/bundlestate b/lisp/snippets/cfengine3-mode/functions/bundlestate new file mode 100644 index 00000000..96c6109c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/bundlestate @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function bundlestate(bundlename) +# key: bundlestate +# contributor: Jeff Carlson +# uuid: 7c97ab90-48bc-4d89-9ac0-55ba255b9f8a +# -- +bundlestate("${1:bundlename}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/callstack_callers b/lisp/snippets/cfengine3-mode/functions/callstack_callers new file mode 100644 index 00000000..c7da29a8 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/callstack_callers @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function callstack_callers() +# key: callstack_callers +# contributor: Jeff Carlson +# uuid: d00b769b-1d8a-4506-aa51-008b7809b9ba +# -- +callstack_callers()$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/callstack_promisers b/lisp/snippets/cfengine3-mode/functions/callstack_promisers new file mode 100644 index 00000000..39ce7336 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/callstack_promisers @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function callstack_promisers() +# key: callstack_promisers +# contributor: Jeff Carlson +# uuid: d64de760-febb-4128-95c6-d66617a9e23e +# -- +callstack_promisers()$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/canonify b/lisp/snippets/cfengine3-mode/functions/canonify new file mode 100644 index 00000000..d1820d85 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/canonify @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function canonify(text) +# key: canonify +# contributor: Jeff Carlson +# uuid: 3f5f8b78-2c47-44e4-b5f7-32aaf9939d71 +# -- +canonify("${1:text}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/canonifyuniquely b/lisp/snippets/cfengine3-mode/functions/canonifyuniquely new file mode 100644 index 00000000..1096b00d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/canonifyuniquely @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function canonifyuniquely(text) +# key: canonifyuniquely +# contributor: Jeff Carlson +# uuid: f3da72b8-1ca1-4936-b249-f42d5046d828 +# -- +canonifyuniquely("${1:text}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/cf_version_after b/lisp/snippets/cfengine3-mode/functions/cf_version_after new file mode 100644 index 00000000..53768ccd --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/cf_version_after @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function cf_version_after(cfengine_version) +# key: cf_version_after +# contributor: Nick Anderson +# uuid: 36024acc-3c8e-4505-90dc-3bc5563db676 +# -- +cf_version_after("${1:minimum_version}")$0 diff --git a/lisp/snippets/cfengine3-mode/functions/cf_version_at b/lisp/snippets/cfengine3-mode/functions/cf_version_at new file mode 100644 index 00000000..94f0c6a6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/cf_version_at @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function cf_version_at(cfengine_version) +# key: cf_version_at +# contributor: Nick Anderson +# uuid: 04c97e72-d3dd-4a22-b8da-19d14f37e8d4 +# -- +cf_version_at("${1:cfengine_version}")$0 diff --git a/lisp/snippets/cfengine3-mode/functions/cf_version_before b/lisp/snippets/cfengine3-mode/functions/cf_version_before new file mode 100644 index 00000000..cf369c44 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/cf_version_before @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function cf_version_before(cfengine_version) +# key: cf_version_before +# contributor: Nick Anderson +# uuid: f218873e-8444-4cc9-af51-5623cbd83f2 +# -- +cf_version_before("${1:maximum_version}")$0 diff --git a/lisp/snippets/cfengine3-mode/functions/cf_version_between b/lisp/snippets/cfengine3-mode/functions/cf_version_between new file mode 100644 index 00000000..283e121c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/cf_version_between @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function cf_version_between(minimum_cfengine_version, maximum_cfengine_version) +# key: cf_version_between +# contributor: Nick Anderson +# uuid: 16243e72-c06a-4fb6-ac62-90ab7efdf0c4 +# -- +cf_version_between("${1:minimum_version}", "${2:maximum_version}")$0 diff --git a/lisp/snippets/cfengine3-mode/functions/cf_version_maximum b/lisp/snippets/cfengine3-mode/functions/cf_version_maximum new file mode 100644 index 00000000..39786ced --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/cf_version_maximum @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function cf_version_maximum(cfengine_version) +# key: cf_version_maximum +# contributor: Nick Anderson +# uuid: 752b8eca-a853-4993-8b5d-43e2bd150301 +# -- +cf_version_maximum("${1:maximum_version}")$0 diff --git a/lisp/snippets/cfengine3-mode/functions/cf_version_minimum b/lisp/snippets/cfengine3-mode/functions/cf_version_minimum new file mode 100644 index 00000000..aa88d2bd --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/cf_version_minimum @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function cf_version_minimum(cfengine_version) +# key: cf_version_minimum +# contributor: Nick Anderson +# uuid: 3900f1ff-3590-4aea-899c-6624f8e06e23 +# -- +cf_version_minimum("${1:minimum_version}")$0 diff --git a/lisp/snippets/cfengine3-mode/functions/changedbefore b/lisp/snippets/cfengine3-mode/functions/changedbefore new file mode 100644 index 00000000..8ef6ec50 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/changedbefore @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function changedbefore(newer, older) +# key: changedbefore +# contributor: Jeff Carlson +# uuid: 38ceb63a-524f-46bd-b324-77a23150f6a9 +# -- +changedbefore("${1:newer}", "${2:older}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/classesmatching b/lisp/snippets/cfengine3-mode/functions/classesmatching new file mode 100644 index 00000000..0d5cd721 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/classesmatching @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function classesmatching(name, tag1, tag2, ...) +# key: classesmatching +# contributor: Jeff Carlson +# uuid: 20c9c9ad-c302-4cea-9325-58f2ed52645b +# -- +classesmatching("${1:condition}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/classfiltercsv b/lisp/snippets/cfengine3-mode/functions/classfiltercsv new file mode 100644 index 00000000..a06215ff --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/classfiltercsv @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function classfiltercsv(filename, has_header, class_column, optional_sort_column) +# key: classfiltercsv +# contributor: Nick Anderson +# uuid: 634e1d25-a1b5-460d-ab32-ebd597ce5469 +# -- +classfiltercsv("${1:filename}", "${2:$$(yas-choose-value '("yes" "no" "true" "false" "on" "off"))}", "${3:class_column}", "${4:optional_sort_column}")$0 diff --git a/lisp/snippets/cfengine3-mode/functions/classify b/lisp/snippets/cfengine3-mode/functions/classify new file mode 100644 index 00000000..ff6c5bbc --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/classify @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function classify(text) +# key: classify +# contributor: Jeff Carlson +# uuid: e340ed0a-f7a3-4311-a376-c2df4d1c6b02 +# -- +classify("${1:text}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/classmatch b/lisp/snippets/cfengine3-mode/functions/classmatch new file mode 100644 index 00000000..8cde7ad6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/classmatch @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function classmatch(regex, tag1, tag2, ...) +# key: classmatch +# contributor: Jeff Carlson +# uuid: d15cad73-05ff-4927-877d-647a61b13ab5 +# -- +classmatch("${1:condition}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/concat b/lisp/snippets/cfengine3-mode/functions/concat new file mode 100644 index 00000000..a8847eab --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/concat @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function concat(...) +# key: concat +# contributor: Jeff Carlson +# uuid: 14074df7-1e5f-449e-b439-4c74f47c7f24 +# -- +concat("${1:strings}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/countclassesmatching b/lisp/snippets/cfengine3-mode/functions/countclassesmatching new file mode 100644 index 00000000..401beb99 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/countclassesmatching @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function countclassesmatching(regex, tag1, tag2, ...)) +# key: countclassesmatching +# contributor: Jeff Carlson +# uuid: 0d00f2a4-a0ab-4ea8-9fc6-160468d2b824 +# -- +countclassesmatching("${1:condition}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/countlinesmatching b/lisp/snippets/cfengine3-mode/functions/countlinesmatching new file mode 100644 index 00000000..004f1297 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/countlinesmatching @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function countlinesmatching(regex, filename) +# key: countlinesmatching +# contributor: Jeff Carlson +# uuid: ad21797d-cb57-494e-889c-4f04693e7a93 +# -- +countlinesmatching("${1:regex}", "${2:filename}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/data_expand b/lisp/snippets/cfengine3-mode/functions/data_expand new file mode 100644 index 00000000..e279146d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/data_expand @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function data_expand(data_container) +# key: data_expand +# contributor: Jeff Carlson +# uuid: f979dc58-4989-4a87-ae46-179300158ee0 +# -- +data_expand("${1:data_container}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/data_readstringarray b/lisp/snippets/cfengine3-mode/functions/data_readstringarray new file mode 100644 index 00000000..70e746e1 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/data_readstringarray @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function data_readstringarray(filename, comment, split, maxentries, maxbytes) +# key: data_readstringarray +# contributor: Jeff Carlson +# uuid: 941f0640-c160-4217-a491-2fe186f717fc +# -- +data_readstringarray("${1:filename}", "${2:comment}", "${3:split}", "${4:maxentries}", "${5:maxbytes}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/data_readstringarrayidx b/lisp/snippets/cfengine3-mode/functions/data_readstringarrayidx new file mode 100644 index 00000000..acad3b29 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/data_readstringarrayidx @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function data_readstringarrayidx(filename, comment, split, maxentries, maxbytes) +# key: data_readstringarrayidx +# contributor: Jeff Carlson +# uuid: 9ae39d8e-dd27-4349-9a86-2539865d6d0d +# -- +data_readstringarrayidx("${1:filename}", "${2:comment}", "${3:split}", "${4:maxentries}", "${5:maxbytes}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/data_regextract b/lisp/snippets/cfengine3-mode/functions/data_regextract new file mode 100644 index 00000000..dc5898cf --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/data_regextract @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function data_regextract(regex, string) +# key: data_regextract +# contributor: Jeff Carlson +# uuid: 696a21f8-c764-4f18-9d54-8b146d652341 +# -- +data_regextract("${1:regex}", "${2:string}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/data_sysctlvalues b/lisp/snippets/cfengine3-mode/functions/data_sysctlvalues new file mode 100644 index 00000000..707242d2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/data_sysctlvalues @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function data_sysctlvalues() +# key: data_sysctlvalues +# contributor: Jeff Carlson +# uuid: 87be90da-c9da-47ca-8953-be43bb0d465c +# -- +data_sysctlvalues()$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/datastate b/lisp/snippets/cfengine3-mode/functions/datastate new file mode 100644 index 00000000..7c25f325 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/datastate @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function datastate() +# key: datastate +# contributor: Jeff Carlson +# uuid: c7ca9325-9c3a-4c1c-bfbc-109e4d808803 +# -- +datastate()$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/difference b/lisp/snippets/cfengine3-mode/functions/difference new file mode 100644 index 00000000..29cdaa46 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/difference @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function difference(list1, list2) +# key: difference +# contributor: Jeff Carlson +# uuid: 7c2cda85-c2a0-4932-a013-cf424362068c +# -- +difference("${1:list1}", "${2:list2}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/dirname b/lisp/snippets/cfengine3-mode/functions/dirname new file mode 100644 index 00000000..47653940 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/dirname @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function dirname(path) +# key: dirname +# contributor: Jeff Carlson +# uuid: c88a1e18-0de9-4fcb-bbdd-2ff21d4344e8 +# -- +dirname("${1:path}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/diskfree b/lisp/snippets/cfengine3-mode/functions/diskfree new file mode 100644 index 00000000..68457fca --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/diskfree @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function diskfree(path) +# key: diskfree +# contributor: Jeff Carlson +# uuid: 9587ab96-9982-4691-a418-45c1dc6dc0b2 +# -- +diskfree("${1:path}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/escape b/lisp/snippets/cfengine3-mode/functions/escape new file mode 100644 index 00000000..3f6f7898 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/escape @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function escape(text) +# key: escape +# contributor: Jeff Carlson +# uuid: bbd27019-48a0-4cd7-ac66-db1d342c0274 +# -- +escape("${1:text}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/eval b/lisp/snippets/cfengine3-mode/functions/eval new file mode 100644 index 00000000..7510a5db --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/eval @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function eval(expression, mode, options) +# key: eval +# contributor: Jeff Carlson +# uuid: 40d32abb-9505-4d86-b506-e39448143327 +# -- +eval("${1:expression}", "${2:mode}", "${3:options}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/every b/lisp/snippets/cfengine3-mode/functions/every new file mode 100644 index 00000000..517bdaf2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/every @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function every(regex, list) +# key: every +# contributor: Jeff Carlson +# uuid: 5d57aea6-0f78-4562-a07c-e3df9ad02d77 +# -- +every("${1:regex}", "${2:list}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/execresult b/lisp/snippets/cfengine3-mode/functions/execresult new file mode 100644 index 00000000..56100dcd --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/execresult @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function execresult(command, shell) +# key: execresult +# contributor: Jeff Carlson +# uuid: 357a8ebe-7fa1-4238-8b28-ac0a1faa5873 +# -- +execresult("${1:command}", "${2:$$(yas-choose-value '("noshell" "useshell" "powershell"))}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/execresult_as_data b/lisp/snippets/cfengine3-mode/functions/execresult_as_data new file mode 100644 index 00000000..a6bc5807 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/execresult_as_data @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function execresult_as_data(command, shell, output) +# key: execresult_as_data +# contributor: Nick Anderson +# uuid: 25231ad8-f346-403c-9689-7f7d634f7a3b +# -- +execresult_as_data("${1:command}", "${2:$$(yas-choose-value '("noshell" "useshell" "powershell"))}", "${3:$$(yas-choose-value '("both" "stdout" "stderr"))}")$0 diff --git a/lisp/snippets/cfengine3-mode/functions/expandrange b/lisp/snippets/cfengine3-mode/functions/expandrange new file mode 100644 index 00000000..379fa000 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/expandrange @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function expandrange(string_template, stepsize) +# key: expandrange +# contributor: Jeff Carlson +# uuid: 498d6582-29a1-485b-891c-68ecff9d0628 +# -- +expandrange("${1:string_template}", "${2:stepsize}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/file_hash b/lisp/snippets/cfengine3-mode/functions/file_hash new file mode 100644 index 00000000..b2a3d0b5 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/file_hash @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function file_hash(file, algorithm) +# key: file_hash +# contributor: Jeff Carlson +# uuid: b0b0a195-4bd6-4b17-82a0-0801fadd273c +# -- +file_hash("${1:file}", "${2:$$(yas-choose-value '("md5" "sha1" "sha256" "sha384" "sha512"))}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/fileexists b/lisp/snippets/cfengine3-mode/functions/fileexists new file mode 100644 index 00000000..c2cb9d9c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/fileexists @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function fileexists(filename) +# key: fileexists +# contributor: Jeff Carlson +# uuid: d92e1097-9e40-4d61-b346-4e410bfb44a8 +# -- +fileexists("${1:filename}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/filesexist b/lisp/snippets/cfengine3-mode/functions/filesexist new file mode 100644 index 00000000..de34e5a6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/filesexist @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function filesexist(list) +# key: filesexist +# contributor: Jeff Carlson +# uuid: 32849e23-8236-4c8c-b070-a06536ec51b3 +# -- +filesexist("${1:list}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/filesize b/lisp/snippets/cfengine3-mode/functions/filesize new file mode 100644 index 00000000..7da892e7 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/filesize @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function filesize(filename) +# key: filesize +# contributor: Jeff Carlson +# uuid: 6787f141-a889-4d63-9d84-ac07d9fe646a +# -- +filesize("${1:filename}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/filestat b/lisp/snippets/cfengine3-mode/functions/filestat new file mode 100644 index 00000000..f21b6740 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/filestat @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function filestat(filename, field) +# key: filestat +# contributor: Jeff Carlson +# uuid: 055e9d7f-75a2-4442-9d09-5b3b4d8019e1 +# -- +filestat("${1:filename}", "${2:$$(yas-choose-values '("size" "gid" "uid" "ino" "nlink" "ctime" "atime" "mtime" "mode" "modeoct" "permstr" "permoct" "type" "devno" "dev_minor" "dev_major" "basename" "dirname" "linktarget" "linktarget_shallow" "xattr"))}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/filter b/lisp/snippets/cfengine3-mode/functions/filter new file mode 100644 index 00000000..c36855df --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/filter @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function filter(filter, list, is_regex, invert, max_return) +# key: filter +# contributor: Jeff Carlson +# uuid: 5e1cf69d-bebc-47c7-a3bc-c3f62d1ddcaf +# -- +filter("${1:filter}", "${2:list}", "${3:$$(yas-choose-value '("true" "false"))}", "${4:$$(yas-choose-value '("true" "false"))}", "${5:max_return}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/findfiles b/lisp/snippets/cfengine3-mode/functions/findfiles new file mode 100644 index 00000000..678875af --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/findfiles @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function findfiles(glob1, glob2, ...) +# key: findfiles +# contributor: Jeff Carlson +# uuid: c545977b-e5aa-48b0-b700-7e88f8d4c157 +# -- +findfiles("${1:strings}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/findfiles_up b/lisp/snippets/cfengine3-mode/functions/findfiles_up new file mode 100644 index 00000000..03439cf8 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/findfiles_up @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function findfiles_up(directory, glob, max_levels) +# key: findfiles_up +# contributor: Nick Anderson +# uuid: f7c2cb81-ac10-4f45-af69-bc41b1c2687f +# -- +findfiles_up("${1:directory}", "${2:glob}", "${3:max_levels}")$0 diff --git a/lisp/snippets/cfengine3-mode/functions/findprocesses b/lisp/snippets/cfengine3-mode/functions/findprocesses new file mode 100644 index 00000000..63148909 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/findprocesses @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function findprocesses(regex) +# key: findprocesses +# contributor: Jeff Carlson +# uuid: 53d41111-f5e3-4167-8909-a13354083ea7 +# -- +findprocesses("${1:regex}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/format b/lisp/snippets/cfengine3-mode/functions/format new file mode 100644 index 00000000..bf820beb --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/format @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function format(string, ...) +# key: format +# contributor: Jeff Carlson +# uuid: 856146a4-1895-4755-8cea-c5aa26ea614e +# -- +format("${1:strings}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/getclassmetatags b/lisp/snippets/cfengine3-mode/functions/getclassmetatags new file mode 100644 index 00000000..fb2f56e0 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/getclassmetatags @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function getclassmetatags(classname, optional_tag) +# key: getclassmetatags +# contributor: Jeff Carlson +# uuid: b3c8d34a-c783-4662-8e02-49b44fd01c3c +# -- +getclassmetatags("${1:classname}", "${2:optional_tag}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/getenv b/lisp/snippets/cfengine3-mode/functions/getenv new file mode 100644 index 00000000..c9c17b0d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/getenv @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function getenv(variable, maxlength) +# key: getenv +# contributor: Jeff Carlson +# uuid: c4754caf-feb3-4af7-8479-fe669033e33e +# -- +getenv("${1:variable}", "${2:maxlength}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/getfields b/lisp/snippets/cfengine3-mode/functions/getfields new file mode 100644 index 00000000..eb9b06d7 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/getfields @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function getfields(regex, filename, split, array_lval) +# key: getfields +# contributor: Jeff Carlson +# uuid: f26290a2-435b-4b13-803f-90871e955ef7 +# -- +getfields("${1:regex}", "${2:filename}", "${3:split}", "${4:array_lval}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/getgid b/lisp/snippets/cfengine3-mode/functions/getgid new file mode 100644 index 00000000..52a3fefc --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/getgid @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function getgid(groupname) +# key: getgid +# contributor: Jeff Carlson +# uuid: b341ed8c-7cb5-416d-8432-95ef365acb04 +# -- +getgid("${1:groupname}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/getindices b/lisp/snippets/cfengine3-mode/functions/getindices new file mode 100644 index 00000000..f9723083 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/getindices @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function getindices(varref) +# key: getindices +# contributor: Jeff Carlson +# uuid: 7c7d6a42-e004-4963-9dde-90078210ffcf +# -- +getindices("${1:varref}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/getuid b/lisp/snippets/cfengine3-mode/functions/getuid new file mode 100644 index 00000000..7b8355dd --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/getuid @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function getuid(username) +# key: getuid +# contributor: Jeff Carlson +# uuid: 6b39820f-e506-4e3b-8aac-589e0d7001d1 +# -- +getuid("${1:username}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/getuserinfo b/lisp/snippets/cfengine3-mode/functions/getuserinfo new file mode 100644 index 00000000..06581011 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/getuserinfo @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function getuserinfo(optional_uidorname) +# key: getuserinfo +# contributor: Jeff Carlson +# uuid: 45636eeb-ff79-42ce-a308-908e27064825 +# -- +getuserinfo("${1:optional_uidorname}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/getusers b/lisp/snippets/cfengine3-mode/functions/getusers new file mode 100644 index 00000000..e8eae380 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/getusers @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function getusers(exclude_names, exclude_ids) +# key: getusers +# contributor: Jeff Carlson +# uuid: 53dd4270-4425-4ecb-9678-3ef099972152 +# -- +getusers("${1:exclude_names}", "${2:exclude_ids}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/getvalues b/lisp/snippets/cfengine3-mode/functions/getvalues new file mode 100644 index 00000000..d0fbc9c9 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/getvalues @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function getvalues(varref) +# key: getvalues +# contributor: Jeff Carlson +# uuid: caa24221-de9f-44e6-a041-cba047733535 +# -- +getvalues("${1:varref}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/getvariablemetatags b/lisp/snippets/cfengine3-mode/functions/getvariablemetatags new file mode 100644 index 00000000..1dc42d97 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/getvariablemetatags @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function getvariablemetatags(varname, optional_tag) +# key: getvariablemetatags +# contributor: Jeff Carlson +# uuid: d38febda-91c8-44e2-a8a4-260d7aecee22 +# -- +getvariablemetatags("${1:varname}", "${2:optional_tag}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/grep b/lisp/snippets/cfengine3-mode/functions/grep new file mode 100644 index 00000000..09a538ce --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/grep @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function grep(regex, list) +# key: grep +# contributor: Jeff Carlson +# uuid: 0c783174-2339-4597-91cb-219107dc0306 +# -- +grep("${1:regex}", "${2:list}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/groupexists b/lisp/snippets/cfengine3-mode/functions/groupexists new file mode 100644 index 00000000..ea80b3ef --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/groupexists @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function groupexists(group) +# key: groupexists +# contributor: Jeff Carlson +# uuid: 3e9b0883-6641-44e6-8401-5d4696adac02 +# -- +groupexists("${1:group}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/hash b/lisp/snippets/cfengine3-mode/functions/hash new file mode 100644 index 00000000..a80aba12 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/hash @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function hash(input, algorithm) +# key: hash +# contributor: Jeff Carlson +# uuid: 3f23c8e2-faf7-4bc7-8c95-caa0a91d4a90 +# -- +hash("${1:input}", "${2:$$(yas-choose-value '("md5" "sha1" "sha256" "sha384" "sha512"))}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/hash_to_int b/lisp/snippets/cfengine3-mode/functions/hash_to_int new file mode 100644 index 00000000..91e9d24e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/hash_to_int @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function hash_to_int(lower, upper, string) +# key: hash_to_int +# contributor: Jeff Carlson +# uuid: d67dce53-6e77-456f-8d3c-d5138b6e17d5 +# -- +hash_to_int("${1:lower}", "${2:upper}", "${3:string}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/hashmatch b/lisp/snippets/cfengine3-mode/functions/hashmatch new file mode 100644 index 00000000..0c13b006 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/hashmatch @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function hashmatch(filename, algorithm, hash) +# key: hashmatch +# contributor: Jeff Carlson +# uuid: eda44854-fa2f-410f-b28a-627b9fdcfcbf +# -- +hashmatch("${1:filename}", "${2:$$(yas-choose-value '("md5" "sha1" "sha256" "sha384" "sha512"))}", "${3:hash}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/host2ip b/lisp/snippets/cfengine3-mode/functions/host2ip new file mode 100644 index 00000000..21e33a0c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/host2ip @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function host2ip(hostname) +# key: host2ip +# contributor: Jeff Carlson +# uuid: 741d6c4f-f73a-49db-9001-8d744f3ca87d +# -- +host2ip("${1:hostname}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/hostinnetgroup b/lisp/snippets/cfengine3-mode/functions/hostinnetgroup new file mode 100644 index 00000000..6ed14d98 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/hostinnetgroup @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function hostinnetgroup(netgroup) +# key: hostinnetgroup +# contributor: Jeff Carlson +# uuid: 13db85f3-3417-4413-958a-58c676e1bea6 +# -- +hostinnetgroup("${1:netgroup}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/hostrange b/lisp/snippets/cfengine3-mode/functions/hostrange new file mode 100644 index 00000000..90a3807a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/hostrange @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function hostrange(prefix, range) +# key: hostrange +# contributor: Jeff Carlson +# uuid: e5ce00e9-78ae-4736-a7ff-9795bcd97f0b +# -- +hostrange("${1:prefix}", "${2:range}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/hostsseen b/lisp/snippets/cfengine3-mode/functions/hostsseen new file mode 100644 index 00000000..f3e634d0 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/hostsseen @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function hostsseen(horizon, seen, field) +# key: hostsseen +# contributor: Jeff Carlson +# uuid: 4fbda4dd-748b-40a8-8e36-eea44423a6db +# -- +hostsseen("${1:horizon}", "${2:$$(yas-choose-value '("lastseen" "notseen"))}", "${3:$$(yas-choose-value '("name" "address"))}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/hostswithclass b/lisp/snippets/cfengine3-mode/functions/hostswithclass new file mode 100644 index 00000000..125d7b33 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/hostswithclass @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function hostswithclass(class, field) +# key: hostswithclass +# contributor: Jeff Carlson +# uuid: a54b72d8-3ae7-45a6-9e18-49c8c68a7ac5 +# -- +hostswithclass("${1:class}", "${2:$$(yas-choose-value '("name" "address"))}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/hubknowledge b/lisp/snippets/cfengine3-mode/functions/hubknowledge new file mode 100644 index 00000000..9c7c5b36 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/hubknowledge @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function hubknowledge(id) +# key: hubknowledge +# contributor: Jeff Carlson +# uuid: 4a2eb664-9266-41d0-a2a5-f96d1abb1153 +# -- +hubknowledge("${1:id}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/ifelse b/lisp/snippets/cfengine3-mode/functions/ifelse new file mode 100644 index 00000000..a39de421 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/ifelse @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function ifelse(...) +# key: ifelse +# contributor: Jeff Carlson +# uuid: c2007936-2381-4a58-8b22-4da3082b345a +# -- +ifelse("${1:condition}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/intersection b/lisp/snippets/cfengine3-mode/functions/intersection new file mode 100644 index 00000000..cdb80924 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/intersection @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function intersection(list1, list2) +# key: intersection +# contributor: Jeff Carlson +# uuid: 34625faa-93d9-4095-8e35-dc8ccfbb6ade +# -- +intersection("${1:list1}", "${2:list2}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/ip2host b/lisp/snippets/cfengine3-mode/functions/ip2host new file mode 100644 index 00000000..cfd0a44e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/ip2host @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function ip2host(ip) +# key: ip2host +# contributor: Jeff Carlson +# uuid: 66e0a9b0-0259-4e7a-b97c-4394ce4032d6 +# -- +ip2host("${1:ip}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/iprange b/lisp/snippets/cfengine3-mode/functions/iprange new file mode 100644 index 00000000..24c2007e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/iprange @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function iprange(range, interface) +# key: iprange +# contributor: Jeff Carlson +# uuid: 153329ee-8ff5-4086-83bf-5667b8987426 +# -- +iprange("${1:range}", "${2:interface}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/irange b/lisp/snippets/cfengine3-mode/functions/irange new file mode 100644 index 00000000..e9315cee --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/irange @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function irange(arg1, arg2) +# key: irange +# contributor: Jeff Carlson +# uuid: e36b48bb-e009-49f9-8f8a-da7a4fb4dfb6 +# -- +irange("${1:arg1}", "${2:arg2}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/isdir b/lisp/snippets/cfengine3-mode/functions/isdir new file mode 100644 index 00000000..226fa625 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/isdir @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function isdir(filename) +# key: isdir +# contributor: Jeff Carlson +# uuid: c18c1581-2e53-4e66-9b63-a0b6f57b1d00 +# -- +isdir("${1:filename}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/isexecutable b/lisp/snippets/cfengine3-mode/functions/isexecutable new file mode 100644 index 00000000..5024d282 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/isexecutable @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function isexecutable(filename) +# key: isexecutable +# contributor: Jeff Carlson +# uuid: c4bb3f54-2b4b-4651-a5f9-15d533b6ed50 +# -- +isexecutable("${1:filename}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/isgreaterthan b/lisp/snippets/cfengine3-mode/functions/isgreaterthan new file mode 100644 index 00000000..f91350cb --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/isgreaterthan @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function isgreaterthan(value1, value2) +# key: isgreaterthan +# contributor: Jeff Carlson +# uuid: 4dac511f-a4ee-4e10-94f3-0464f344dc62 +# -- +isgreaterthan("${1:value1}", "${2:value2}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/isipinsubnet b/lisp/snippets/cfengine3-mode/functions/isipinsubnet new file mode 100644 index 00000000..8efb6c46 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/isipinsubnet @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function isipinsubnet(range, ip_address1, ip_address2, ...) +# key: isipinsubnet +# contributor: Jeff Carlson +# uuid: 78ceb2b1-94c9-4da9-9589-e917c55cecbb +# -- +isipinsubnet("${1:range}", "${2:ip_addresses}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/islessthan b/lisp/snippets/cfengine3-mode/functions/islessthan new file mode 100644 index 00000000..8fa342c4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/islessthan @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function islessthan(value1, value2) +# key: islessthan +# contributor: Jeff Carlson +# uuid: b1cba6b0-a0eb-4c38-87f0-858bebc74e4a +# -- +islessthan("${1:value1}", "${2:value2}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/islink b/lisp/snippets/cfengine3-mode/functions/islink new file mode 100644 index 00000000..a86694c8 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/islink @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function islink(filename) +# key: islink +# contributor: Jeff Carlson +# uuid: 4d25b41a-2780-4cd5-bb04-8d5d82bf483f +# -- +islink("${1:filename}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/isnewerthan b/lisp/snippets/cfengine3-mode/functions/isnewerthan new file mode 100644 index 00000000..23042638 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/isnewerthan @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function isnewerthan(newer, older) +# key: isnewerthan +# contributor: Jeff Carlson +# uuid: 3f7cd12e-d29d-47c0-907c-97b74c530d31 +# -- +isnewerthan("${1:newer}", "${2:older}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/isplain b/lisp/snippets/cfengine3-mode/functions/isplain new file mode 100644 index 00000000..d154c6ce --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/isplain @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function isplain(filename) +# key: isplain +# contributor: Jeff Carlson +# uuid: 08630082-1386-43f8-8a6e-e3fc1f27da89 +# -- +isplain("${1:filename}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/isvariable b/lisp/snippets/cfengine3-mode/functions/isvariable new file mode 100644 index 00000000..971f0349 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/isvariable @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function isvariable(var) +# key: isvariable +# contributor: Jeff Carlson +# uuid: 4e738f2c-4088-4e6a-adc9-65798e38e467 +# -- +isvariable("${1:var}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/join b/lisp/snippets/cfengine3-mode/functions/join new file mode 100644 index 00000000..68f6797e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/join @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function join(glue, list) +# key: join +# contributor: Jeff Carlson +# uuid: d5dac791-8628-4290-9461-a5c5d4067595 +# -- +join("${1:glue}", "${1:list}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/lastnode b/lisp/snippets/cfengine3-mode/functions/lastnode new file mode 100644 index 00000000..ffdccc8e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/lastnode @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function lastnode(string, separator) +# key: lastnode +# contributor: Jeff Carlson +# uuid: 654acb2c-362f-42b7-9927-08e3596dadaf +# -- +lastnode("${1:string}", "${2:separator}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/laterthan b/lisp/snippets/cfengine3-mode/functions/laterthan new file mode 100644 index 00000000..07ce556d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/laterthan @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function laterthan(year, month, day, hour, minute, second) +# key: laterthan +# contributor: Jeff Carlson +# uuid: 32536946-ae16-4b55-9987-df116305c6d5 +# -- +laterthan("${1:year}", "${2:month}", "${3:day}", "${4:hour}", "${5:minute}", "${6:second}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/ldaparray b/lisp/snippets/cfengine3-mode/functions/ldaparray new file mode 100644 index 00000000..89c22be9 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/ldaparray @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function ldaparray(array, uri, dn, filter, scope, security) +# key: ldaparray +# contributor: Jeff Carlson +# uuid: 165ca2da-7894-4eee-8e51-4178fc1bbec1 +# -- +ldaparray("${1:array}", "${2:uri}", "${3:dn}", "${4:filter}", "${5:$$(yas-choose-value '("subtree" "onelevel" "base"))}", "${6:$$(yas-choose-value '("none" "ssl" "sasl"))}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/ldaplist b/lisp/snippets/cfengine3-mode/functions/ldaplist new file mode 100644 index 00000000..6911769d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/ldaplist @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function ldaplist(uri, dn, filter, record, scope, security) +# key: ldaplist +# contributor: Jeff Carlson +# uuid: 8cd6b6dd-08aa-4562-a195-259b2fd3c5b7 +# -- +ldaplist("${1:uri}", "${2:dn}", "${3:filter}", "${4:record}", "${5:$$(yas-choose-value '("subtree" "onelevel" "base"))}", "${6:$$(yas-choose-value '("none" "ssl" "sasl"))}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/ldapvalue b/lisp/snippets/cfengine3-mode/functions/ldapvalue new file mode 100644 index 00000000..bf11df62 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/ldapvalue @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function ldapvalue(uri, dn, filter, record, scope, security) +# key: ldapvalue +# contributor: Jeff Carlson +# uuid: f9142286-328a-4603-91f8-27899d3c6f2b +# -- +ldapvalue("${1:uri}", "${2:dn}", "${3:filter}", "${4:record}", "${5:$$(yas-choose-value '("subtree" "onelevel" "base"))}", "${6:$$(yas-choose-value '("none" "ssl" "sasl"))}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/length b/lisp/snippets/cfengine3-mode/functions/length new file mode 100644 index 00000000..1b2cddaa --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/length @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function length(list) +# key: length +# contributor: Jeff Carlson +# uuid: 9e796c37-556c-4542-94ba-e91e562026ef +# -- +length("${1:list}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/lsdir b/lisp/snippets/cfengine3-mode/functions/lsdir new file mode 100644 index 00000000..d5dbb38c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/lsdir @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function lsdir(path, regex, include_base) +# key: lsdir +# contributor: Jeff Carlson +# uuid: b6b992d0-7f32-46e6-9a9e-a3e1807fc022 +# -- +lsdir("${1:path}", "${2:regex}", "${3:$$(yas-choose-value '("true" "false" "yes" "no" "on" "off"))}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/makerule b/lisp/snippets/cfengine3-mode/functions/makerule new file mode 100644 index 00000000..a2115cc1 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/makerule @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function makerule(target, sources) +# key: makerule +# contributor: Jeff Carlson +# uuid: add2386c-11f1-4ea8-861a-526ea74a5ec0 +# -- +makerule("${1:target}", "${2:sources}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/maparray b/lisp/snippets/cfengine3-mode/functions/maparray new file mode 100644 index 00000000..1b4c6d76 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/maparray @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function maparray(pattern, array_or_container) +# key: maparray +# contributor: Jeff Carlson +# uuid: 2818d5d4-3bdc-49dc-9b5e-500b35a4633f +# -- +maparray("${1:pattern}", "${2:array_or_container}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/mapdata b/lisp/snippets/cfengine3-mode/functions/mapdata new file mode 100644 index 00000000..7d626bda --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/mapdata @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function mapdata(interpretation, pattern, array_or_container) +# key: mapdata +# contributor: Jeff Carlson +# uuid: f3b8ab61-6846-47e0-b741-2f6b135f0972 +# -- +mapdata("${1:$$(yas-choose-value '("none" "canonify" "json" "json_pipe"))}", "${2:pattern}", "${3:array_or_container}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/maplist b/lisp/snippets/cfengine3-mode/functions/maplist new file mode 100644 index 00000000..2deb9bb0 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/maplist @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function maplist(pattern, list) +# key: maplist +# contributor: Jeff Carlson +# uuid: ce8f18cb-8a34-4ff7-a1fe-34ff5d11a190 +# -- +maplist("${1:pattern}", "${2:list}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/max b/lisp/snippets/cfengine3-mode/functions/max new file mode 100644 index 00000000..da0984c2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/max @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function max(list, sortmode) +# key: max +# contributor: Jeff Carlson +# uuid: ae1966bc-ff8b-43f3-9ada-695c517c536d +# -- +max("${1:list}", "${1:$$(yas-choose-value '("lex" "int" "real" "IP" "ip" "MAC" "mac"))}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/mean b/lisp/snippets/cfengine3-mode/functions/mean new file mode 100644 index 00000000..921ce4d9 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/mean @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function mean(list) +# key: mean +# contributor: Jeff Carlson +# uuid: 35f0fae5-f827-418a-a4ae-4211c606c148 +# -- +mean("${1:list}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/mergedata b/lisp/snippets/cfengine3-mode/functions/mergedata new file mode 100644 index 00000000..a2b65ba3 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/mergedata @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function mergedata(one, two, etc) +# key: mergedata +# contributor: Jeff Carlson +# uuid: 8a331d3a-6223-4716-ac2a-4f34c93761d9 +# -- +mergedata("${1:list}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/min b/lisp/snippets/cfengine3-mode/functions/min new file mode 100644 index 00000000..272bd6c3 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/min @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function min(list, sortmode) +# key: min +# contributor: Jeff Carlson +# uuid: 85a170dc-fcb0-47a5-8acc-2b115f7b808e +# -- +min("${1:list}", "${2:$$(yas-choose-value '("lex" "int" "real" "IP" "ip" "MAC" "mac"))}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/network_connections b/lisp/snippets/cfengine3-mode/functions/network_connections new file mode 100644 index 00000000..9c8921e7 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/network_connections @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function network_connections(regex) +# key: network_connections +# contributor: Jeff Carlson +# uuid: 0303d784-03cf-41b4-84f5-d4c76fa786fd +# -- +network_connections("${1:regex}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/none b/lisp/snippets/cfengine3-mode/functions/none new file mode 100644 index 00000000..ff2c699d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/none @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function none(regex, list) +# key: none +# contributor: Jeff Carlson +# uuid: e02614ad-1cd3-406b-84ac-003a72616fe2 +# -- +none("${1:regex}", "${2:list}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/not b/lisp/snippets/cfengine3-mode/functions/not new file mode 100644 index 00000000..50fd4d3c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/not @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function not(expression) +# key: not +# contributor: Jeff Carlson +# uuid: bb5efe00-a940-4cff-969e-cb894e0edafc +# -- +not("${1:expression}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/now b/lisp/snippets/cfengine3-mode/functions/now new file mode 100644 index 00000000..c434f725 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/now @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function now() +# key: now +# contributor: Jeff Carlson +# uuid: 60fcb9db-6665-424a-b549-09680090cde9 +# -- +now()$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/nth b/lisp/snippets/cfengine3-mode/functions/nth new file mode 100644 index 00000000..5ce4b5b0 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/nth @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function nth(list_or_container, position_or_key) +# key: nth +# contributor: Jeff Carlson +# uuid: 6bad4d81-0485-4660-8a9d-61ef30f31354 +# -- +nth("${1:list_or_container}", "${2:position_or_key}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/on b/lisp/snippets/cfengine3-mode/functions/on new file mode 100644 index 00000000..cea88ea7 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/on @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function on(year, month, day, hour, minute, second) +# key: on +# contributor: Jeff Carlson +# uuid: 89998c49-7776-495e-89c0-9f0c613b1271 +# -- +on("${1:year}", "${2:month}", "${3:day}", "${4:hour}", "${5:minute}", "${6:second}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/or b/lisp/snippets/cfengine3-mode/functions/or new file mode 100644 index 00000000..6eeb010a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/or @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function or(...) +# key: or +# contributor: Jeff Carlson +# uuid: 3eba904d-ab3f-4212-b6fd-ad0702bb348a +# -- +or("${1:expressions}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/packagesmatching b/lisp/snippets/cfengine3-mode/functions/packagesmatching new file mode 100644 index 00000000..70ff4afb --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/packagesmatching @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function packagesmatching(package_regex, version_regex, arch_regex, method_regex) +# key: packagesmatching +# contributor: Jeff Carlson +# uuid: e5a85bcb-60b6-47ac-8b01-973a3580ec1d +# -- +packagesmatching("${1:package_regex}", "${2:version_regex}", "${3:arch_regex}", "${4:method_regex}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/packageupdatesmatching b/lisp/snippets/cfengine3-mode/functions/packageupdatesmatching new file mode 100644 index 00000000..545f86c9 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/packageupdatesmatching @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function packageupdatesmatching(package_regex, version_regex, arch_regex, method_regex) +# key: packageupdatesmatching +# contributor: Jeff Carlson +# uuid: f2afa652-d8e3-4dd8-a218-82b2db53549d +# -- +packageupdatesmatching("${1:package_regex}", "${2:version_regex}", "${3:arch_regex}", "${4:method_regex}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/parseintarray b/lisp/snippets/cfengine3-mode/functions/parseintarray new file mode 100644 index 00000000..f26495eb --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/parseintarray @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function parseintarray(array, input, comment, split, maxentries, maxbytes) +# key: parseintarray +# contributor: Jeff Carlson +# uuid: 99f0081e-0b7b-4c92-858d-02a183ece61a +# -- +parseintarray("${1:array}", "${2:input}", "${3:comment}", "${4:split}", "${5:maxentries}", "${6:maxbytes}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/parsejson b/lisp/snippets/cfengine3-mode/functions/parsejson new file mode 100644 index 00000000..d2155495 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/parsejson @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function parsejson(json_data) +# key: parsejson +# contributor: Jeff Carlson +# uuid: 5dbc125e-b6aa-49d3-8861-2465636d3dcf +# -- +parsejson("${1:json_data}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/parserealarray b/lisp/snippets/cfengine3-mode/functions/parserealarray new file mode 100644 index 00000000..1d482969 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/parserealarray @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function parserealarray(array, input, comment, split, maxentries, maxbytes) +# key: parserealarray +# contributor: Jeff Carlson +# uuid: b0ff129b-e852-488a-a90b-89467d7cafe9 +# -- +parserealarray("${1:array}", "${2:input}", "${3:comment}", "${4:split}", "${5:maxentries}", "${6:maxbytes}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/parsestringarray b/lisp/snippets/cfengine3-mode/functions/parsestringarray new file mode 100644 index 00000000..9ffed195 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/parsestringarray @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function parsestringarray(array, input, comment, split, maxentries, maxbytes) +# key: parsestringarray +# contributor: Jeff Carlson +# uuid: a4f19591-f829-4c94-afa0-c3110817d86f +# -- +parsestringarray("${1:array}", "${2:input}", "${3:comment}", "${4:split}", "${5:maxentries}", "${6:maxbytes}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/parsestringarrayidx b/lisp/snippets/cfengine3-mode/functions/parsestringarrayidx new file mode 100644 index 00000000..897136d7 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/parsestringarrayidx @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function parsestringarrayidx(array, input, comment, split, maxentries, maxbytes) +# key: parsestringarrayidx +# contributor: Jeff Carlson +# uuid: 0de5e2bd-0c8b-4a16-ad4e-dcdab184586b +# -- +parsestringarrayidx("${1:array}", "${2:input}", "${3:comment}", "${4:split}", "${5:maxentries}", "${6:maxbytes}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/parseyaml b/lisp/snippets/cfengine3-mode/functions/parseyaml new file mode 100644 index 00000000..a63bdfef --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/parseyaml @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function parseyaml(yaml_data) +# key: parseyaml +# contributor: Jeff Carlson +# uuid: 04a59f5f-abdc-442a-9da1-220e7d378459 +# -- +parseyaml("${1:yaml_data}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/peerleader b/lisp/snippets/cfengine3-mode/functions/peerleader new file mode 100644 index 00000000..067ba3c9 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/peerleader @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function peerleader(filename, regex, groupsize) +# key: peerleader +# contributor: Jeff Carlson +# uuid: 83adc687-1cc7-4424-b8b4-e77b84e9d8c9 +# -- +peerleader("${1:filename}", "${2:regex}", "${3:groupsize}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/peerleaders b/lisp/snippets/cfengine3-mode/functions/peerleaders new file mode 100644 index 00000000..12d6fd3d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/peerleaders @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function peerleaders(filename, regex, groupsize) +# key: peerleaders +# contributor: Jeff Carlson +# uuid: 834c6fb9-42da-4e58-a829-a16eba54371c +# -- +peerleaders("${1:filename}", "${2:regex}", "${3:groupsize}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/peers b/lisp/snippets/cfengine3-mode/functions/peers new file mode 100644 index 00000000..57a187e2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/peers @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function peers(filename, regex, groupsize) +# key: peers +# contributor: Jeff Carlson +# uuid: fd83fef5-0033-4b20-8ffb-ed1dee7d3f77 +# -- +peers("${1:filename}", "${2:regex}", "${3:groupsize}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/processexists b/lisp/snippets/cfengine3-mode/functions/processexists new file mode 100644 index 00000000..09349f9e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/processexists @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function processexists(regex) +# key: processexists +# contributor: Jeff Carlson +# uuid: 07212c61-9a6d-4eba-9528-473163c45b1d +# -- +processexists("${1:regex}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/product b/lisp/snippets/cfengine3-mode/functions/product new file mode 100644 index 00000000..a5363095 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/product @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function product(list) +# key: product +# contributor: Jeff Carlson +# uuid: 3b9158ac-b165-4925-9a74-6e41b0066ea1 +# -- +product("${1:list}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/randomint b/lisp/snippets/cfengine3-mode/functions/randomint new file mode 100644 index 00000000..e8e6ac24 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/randomint @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function randomint(lower, upper) +# key: randomint +# contributor: Jeff Carlson +# uuid: 31ef3ad8-1aaf-462f-ac56-3d0415202b61 +# -- +randomint("${1:lower}", "${2:upper}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/read_module_protocol b/lisp/snippets/cfengine3-mode/functions/read_module_protocol new file mode 100644 index 00000000..4dabfaa2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/read_module_protocol @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function read_module_protocol(file_path) +# key: read_module_protocol +# contributor: Nick Anderson +# uuid: 5e088412-5086-4144-9ba0-3d97d5edb143 +# -- +read_module_protocol("${1:file_path}")$0 diff --git a/lisp/snippets/cfengine3-mode/functions/readcsv b/lisp/snippets/cfengine3-mode/functions/readcsv new file mode 100644 index 00000000..3dd132ff --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/readcsv @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function readcsv(filename, optional_maxbytes) +# key: readcsv +# contributor: Jeff Carlson +# uuid: 137a238b-c0bd-4dbf-8871-d83605fac63e +# -- +readcsv("${1:filename}", "${2:optional_maxbytes}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/readdata b/lisp/snippets/cfengine3-mode/functions/readdata new file mode 100644 index 00000000..8b4c550e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/readdata @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function readdata(filename, filetype) +# key: readdata +# contributor: Jeff Carlson +# uuid: d68802ba-e071-4313-a3b4-29587cbd2d24 +# -- +readdata("${1:filename}", "${2:$$(yas-choose-value '("CSV" "YAML" "JSON" "ENV" "auto"))}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/readenvfile b/lisp/snippets/cfengine3-mode/functions/readenvfile new file mode 100644 index 00000000..84c976c3 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/readenvfile @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function readenvfile(filename, optional_maxbytes) +# key: readenvfile +# contributor: Jeff Carlson +# uuid: 3400fcfe-7e78-4837-ab0f-193c82e48e8b +# -- +readenvfile("${1:filename}", "${2:optional_maxbytes}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/readfile b/lisp/snippets/cfengine3-mode/functions/readfile new file mode 100644 index 00000000..8dd54bcb --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/readfile @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function readfile(filename, optional_maxbytes) +# key: readfile +# contributor: Jeff Carlson +# uuid: be36b899-098e-453b-abb3-752a03ee11e4 +# -- +readfile("${1:filename}", "${2:optional_maxbytes}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/readintarray b/lisp/snippets/cfengine3-mode/functions/readintarray new file mode 100644 index 00000000..efbeb550 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/readintarray @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function readintarray(array, filename, comment, split, maxentries, maxbytes) +# key: readintarray +# contributor: Jeff Carlson +# uuid: 8655814d-4eee-4a7c-af3d-3b6059cc7e1d +# -- +readintarray("${1:array}", "${2:filename}", "${3:comment}", "${4:split}", "${5:maxentries}", "${6:maxbytes}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/readintlist b/lisp/snippets/cfengine3-mode/functions/readintlist new file mode 100644 index 00000000..6b814aeb --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/readintlist @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function readintlist(filename, comment, split, maxentries, maxbytes) +# key: readintlist +# contributor: Jeff Carlson +# uuid: 7bfa6e32-bf02-4871-836d-8712048261da +# -- +readintlist("${1:filename}", "${2:comment}", "${3:split}", "${4:maxentries}", "${5:maxbytes}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/readjson b/lisp/snippets/cfengine3-mode/functions/readjson new file mode 100644 index 00000000..ec8c800f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/readjson @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function readjson(filename, optional_maxbytes) +# key: readjson +# contributor: Jeff Carlson +# uuid: 1e40a3c0-8420-4cca-8b9b-05526579b1d5 +# -- +readjson("${1:filename}", "${2:optional_maxbytes}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/readrealarray b/lisp/snippets/cfengine3-mode/functions/readrealarray new file mode 100644 index 00000000..bd18e28c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/readrealarray @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function readrealarray(array, filename, comment, split, maxentries, maxbytes) +# key: readrealarray +# contributor: Jeff Carlson +# uuid: 8f48cb46-ed47-43da-aaee-02bc2f846925 +# -- +readrealarray("${1:array}", "${2:filename}", "${3:comment}", "${4:split}", "${5:maxentries}", "${6:maxbytes}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/readreallist b/lisp/snippets/cfengine3-mode/functions/readreallist new file mode 100644 index 00000000..b00e69fc --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/readreallist @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function readreallist(filename, comment, split, maxentries, maxbytes) +# key: readreallist +# contributor: Jeff Carlson +# uuid: 8bec76ed-45f4-4d65-90c6-1bb82d7ade13 +# -- +readreallist("${1:filename}", "${2:comment}", "${3:split}", "${4:maxentries}", "${5:maxbytes}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/readstringarray b/lisp/snippets/cfengine3-mode/functions/readstringarray new file mode 100644 index 00000000..8a054a16 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/readstringarray @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function readstringarray(array, filename, comment, split, maxentries, maxbytes) +# key: readstringarray +# contributor: Jeff Carlson +# uuid: a9918870-cf5b-418f-81b6-347364dbc77d +# -- +readstringarray("${1:array}", "${2:filename}", "${3:comment}", "${4:split}", "${5:maxentries}", "${6:maxbytes}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/readstringarrayidx b/lisp/snippets/cfengine3-mode/functions/readstringarrayidx new file mode 100644 index 00000000..9919026f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/readstringarrayidx @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function readstringarrayidx(array, filename, comment, split, maxentries, maxbytes) +# key: readstringarrayidx +# contributor: Jeff Carlson +# uuid: f509a4f2-c171-4570-8db6-e3b285d786db +# -- +readstringarrayidx("${1:array}", "${2:filename}", "${3:comment}", "${4:split}", "${5:maxentries}", "${6:maxbytes}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/readstringlist b/lisp/snippets/cfengine3-mode/functions/readstringlist new file mode 100644 index 00000000..9ce4e3e6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/readstringlist @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function readstringlist(filename, comment, split, maxentries, maxbytes) +# key: readstringlist +# contributor: Jeff Carlson +# uuid: 0c498ef5-2b5a-4180-abf6-a058603fc638 +# -- +readstringlist("${1:filename}", "${2:comment}", "${3:split}", "${4:maxentries}", "${5:maxbytes}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/readtcp b/lisp/snippets/cfengine3-mode/functions/readtcp new file mode 100644 index 00000000..c71d1ba1 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/readtcp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function readtcp(hostnameip, port, sendstring, maxbytes) +# key: readtcp +# contributor: Jeff Carlson +# uuid: f13d5a24-e78d-4139-a9a8-7713116b7633 +# -- +readtcp("${1:hostnameip}", "${2:port}", "${3:sendstring}", "${4:maxbytes}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/readyaml b/lisp/snippets/cfengine3-mode/functions/readyaml new file mode 100644 index 00000000..425632b1 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/readyaml @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function readyaml(filename, optional_maxbytes) +# key: readyaml +# contributor: Jeff Carlson +# uuid: b4f7c2b8-10de-4499-b0da-21f449269664 +# -- +readyaml("${1:filename}", "${2:optional_maxbytes}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/regarray b/lisp/snippets/cfengine3-mode/functions/regarray new file mode 100644 index 00000000..63c942f1 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/regarray @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function regarray(array, regex) +# key: regarray +# contributor: Jeff Carlson +# uuid: 9dc9779f-ce58-4fb6-9570-5e98301aa19d +# -- +regarray("${1:array}", "${2:regex}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/regcmp b/lisp/snippets/cfengine3-mode/functions/regcmp new file mode 100644 index 00000000..af8c140b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/regcmp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function regcmp(regex, string) +# key: regcmp +# contributor: Jeff Carlson +# uuid: d0d74c33-3c89-479b-9cec-bb06f22b6196 +# -- +regcmp("${1:regex}", "${2:string}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/regex_replace b/lisp/snippets/cfengine3-mode/functions/regex_replace new file mode 100644 index 00000000..3e5cb5fa --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/regex_replace @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function regex_replace(string, regex, replacement, options) +# key: regex_replace +# contributor: Jeff Carlson +# uuid: 99a7c15f-cbc5-4d43-a998-eae3ac3b12ba +# -- +regex_replace("${1:string}", "${2:regex}", "${3:replacement}", "${4:options}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/regextract b/lisp/snippets/cfengine3-mode/functions/regextract new file mode 100644 index 00000000..b5e1ebf4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/regextract @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function regextract(regex, string, backref) +# key: regextract +# contributor: Jeff Carlson +# uuid: a3c339ff-f22b-4dc0-b031-bedd48e2d61c +# -- +regextract("${1:regex}", "${2:string}", "${3:backref}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/registryvalue b/lisp/snippets/cfengine3-mode/functions/registryvalue new file mode 100644 index 00000000..4c7920e5 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/registryvalue @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function registryvalue(key, valueid) +# key: registryvalue +# contributor: Jeff Carlson +# uuid: 04ebf3d6-512e-447f-b5f7-18a987014362 +# -- +registryvalue("${1:key}", "${2:valueid}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/regldap b/lisp/snippets/cfengine3-mode/functions/regldap new file mode 100644 index 00000000..dff65aa0 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/regldap @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function regldap(uri, dn, filter, record, scope, regex, security) +# key: regldap +# contributor: Jeff Carlson +# uuid: 5f5e9b7a-0215-4587-98ea-f8c16650a06c +# -- +regldap("${1:uri}", "${2:dn}", "${3:filter}", "${4:record}", "${5:$$(yas-choose-value '("subtree" "onelevel" "base"))}", "${6:regex}", "${7:$$(yas-choose-value '("none" "ssl" "sasl"))}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/regline b/lisp/snippets/cfengine3-mode/functions/regline new file mode 100644 index 00000000..7d70182f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/regline @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function regline(regex, filename) +# key: regline +# contributor: Jeff Carlson +# uuid: 29a4794c-6cfe-4275-bec0-c8b74c0dee46 +# -- +regline("${1:regex}", "${2:filename}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/reglist b/lisp/snippets/cfengine3-mode/functions/reglist new file mode 100644 index 00000000..fef5defd --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/reglist @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function reglist(list, regex) +# key: reglist +# contributor: Jeff Carlson +# uuid: eca1f832-9f55-4917-be02-9e1af5c08979 +# -- +reglist("${1:list}", "${2:regex}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/remoteclassesmatching b/lisp/snippets/cfengine3-mode/functions/remoteclassesmatching new file mode 100644 index 00000000..2c55f14d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/remoteclassesmatching @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function remoteclassesmatching(regex, server, encrypt, prefix) +# key: remoteclassesmatching +# contributor: Jeff Carlson +# uuid: cae04056-3893-47f1-b240-ad42fad1eac1 +# -- +remoteclassesmatching("${1:regex}", "${2:server}", "${3:$$(yas-choose-value '("true" "false" "yes" "no" "on" "off"))}", "${4:prefix}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/remotescalar b/lisp/snippets/cfengine3-mode/functions/remotescalar new file mode 100644 index 00000000..a55bd6d6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/remotescalar @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function remotescalar() +# key: remotescalar +# contributor: Jeff Carlson +# uuid: 2b68e47d-25f3-4c66-9716-8cd789b2c10e +# -- +remotescalar("${1:id}", "${2:server}", "${3:$(yas-choose-value '("true" "false" "yes" "no" "on" "off"))}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/returnszero b/lisp/snippets/cfengine3-mode/functions/returnszero new file mode 100644 index 00000000..d6deff6a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/returnszero @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function returnszero(command, shell) +# key: returnszero +# contributor: Jeff Carlson +# uuid: eecb1492-a1b0-4f7c-859f-234a3c7a130d +# -- +returnszero("${1:command}", "${2:$$(yas-choose-value '("noshell" "useshell" "powershell"))}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/reverse b/lisp/snippets/cfengine3-mode/functions/reverse new file mode 100644 index 00000000..db9a1e5f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/reverse @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function reverse(list) +# key: reverse +# contributor: Jeff Carlson +# uuid: 9f226f4a-fe41-44b7-a47c-27cc8c42b732 +# -- +reverse("${1:list}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/rrange b/lisp/snippets/cfengine3-mode/functions/rrange new file mode 100644 index 00000000..fa3448e9 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/rrange @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function rrange(arg1, arg2) +# key: rrange +# contributor: Jeff Carlson +# uuid: bafa20a4-a23e-4586-b960-d7c2bc56e97a +# -- +rrange("${1:arg1}", "${2:arg2}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/search_up b/lisp/snippets/cfengine3-mode/functions/search_up new file mode 100644 index 00000000..a8e0f1be --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/search_up @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function search_up(directory, glob, max_levels) +# key: search_up +# contributor: Nick Anderson +# uuid: 0833e425-704b-4ea0-8f49-3b61725ee5af +# -- +search_up("${1:directory}", "${2:glob}", "${3:max_levels}")$0 diff --git a/lisp/snippets/cfengine3-mode/functions/selectservers b/lisp/snippets/cfengine3-mode/functions/selectservers new file mode 100644 index 00000000..1576e2f4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/selectservers @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function selectservers(hostlist, port, query, regex, maxbytes, array) +# key: selectservers +# contributor: Jeff Carlson +# uuid: 312ebab4-75f5-4006-b429-dc3cb87f5535 +# -- +selectservers("${1:hostlist}", "${2:port}", "${3:query}", "${4:regex}", "${5:maxbytes}", "${6:array}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/shuffle b/lisp/snippets/cfengine3-mode/functions/shuffle new file mode 100644 index 00000000..4760bd5b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/shuffle @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function shuffle(list, seed) +# key: shuffle +# contributor: Jeff Carlson +# uuid: efdcabb9-4408-4841-af3a-d65335c68320 +# -- +shuffle("${1:list}", "${2:seed}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/some b/lisp/snippets/cfengine3-mode/functions/some new file mode 100644 index 00000000..f84e6742 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/some @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function some(regex, list) +# key: some +# contributor: Jeff Carlson +# uuid: c1ed2301-71f0-4904-a15d-d7684fe8b45c +# -- +some("${1:regex}", "${2:list}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/sort b/lisp/snippets/cfengine3-mode/functions/sort new file mode 100644 index 00000000..e305883d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/sort @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function sort(list, mode) +# key: sort +# contributor: Jeff Carlson +# uuid: 92ab66f7-f934-45e0-bbff-c5e7204b9aff +# -- +sort("${1:list}", "${2:$$(yas-choose-value '("lex" "int" "real" "IP" "ip" "MAC" "mac"))}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/splayclass b/lisp/snippets/cfengine3-mode/functions/splayclass new file mode 100644 index 00000000..10f50f01 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/splayclass @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function splayclass(input, policy) +# key: splayclass +# contributor: Jeff Carlson +# uuid: bf38b6b8-7e92-455a-b043-67787dd4741a +# -- +splayclass("${1:input}", "${2:$$(yas-choose-value '("daily" "hourly"))}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/splitstring b/lisp/snippets/cfengine3-mode/functions/splitstring new file mode 100644 index 00000000..c943f779 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/splitstring @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function splitstring(string, regex, maxent) +# key: splitstring +# contributor: Jeff Carlson +# uuid: 713afd86-b104-4364-a74f-65d6b067b857 +# -- +splitstring("${1:string}", "${2:regex}", "${3:maxent}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/storejson b/lisp/snippets/cfengine3-mode/functions/storejson new file mode 100644 index 00000000..d08f0e4f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/storejson @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function storejson(data_container) +# key: storejson +# contributor: Jeff Carlson +# uuid: 5405ee5c-fa42-469b-b5e4-fbef2e4f3692 +# -- +storejson("${1:data_container}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/strcmp b/lisp/snippets/cfengine3-mode/functions/strcmp new file mode 100644 index 00000000..6a501036 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/strcmp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function strcmp(string1, string2) +# key: strcmp +# contributor: Jeff Carlson +# uuid: 28523bfb-8916-4fe7-a965-b0be744b14bc +# -- +strcmp("${1:string1}", "${2:string2}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/strftime b/lisp/snippets/cfengine3-mode/functions/strftime new file mode 100644 index 00000000..b44d41a5 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/strftime @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function strftime(mode, template, time) +# key: strftime +# contributor: Jeff Carlson +# uuid: 5e2fc567-7766-4a43-be14-71e48a45d32b +# -- +strftime("${1:$$(yas-choose-value '("gmtime" "localtime"))}", "${2:template}", "${3:time}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/string_downcase b/lisp/snippets/cfengine3-mode/functions/string_downcase new file mode 100644 index 00000000..73506e1f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/string_downcase @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function string_downcase(data) +# key: string_downcase +# contributor: Jeff Carlson +# uuid: e90e5ca3-5a37-49a3-b646-fbe912e9ac6b +# -- +string_downcase("${1:data}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/string_head b/lisp/snippets/cfengine3-mode/functions/string_head new file mode 100644 index 00000000..373fb60b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/string_head @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function string_head(data, max) +# key: string_head +# contributor: Jeff Carlson +# uuid: e403a98b-4f70-467f-a856-6d5f7bd1d2ff +# -- +string_head("${1:data}", "${2:max}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/string_length b/lisp/snippets/cfengine3-mode/functions/string_length new file mode 100644 index 00000000..e3007f28 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/string_length @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function string_length(data) +# key: string_length +# contributor: Jeff Carlson +# uuid: dd5e7e9e-fb3f-41bd-b004-53788a1b27d8 +# -- +string_length("${1:data}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/string_mustache b/lisp/snippets/cfengine3-mode/functions/string_mustache new file mode 100644 index 00000000..d85ce302 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/string_mustache @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function string_mustache(template_string, optional_data_container) +# key: string_mustache +# contributor: Jeff Carlson +# uuid: 35055351-045b-44d7-81ad-dc5c4ccc0a0b +# -- +string_mustache("${1:template_string}", "${1:optional_data_container}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/string_replace b/lisp/snippets/cfengine3-mode/functions/string_replace new file mode 100644 index 00000000..e22a90e8 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/string_replace @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function string_replace(string, match, replacement) +# key: string_replace +# contributor: Nick Anderson +# uuid: adab223d-b788-4db7-ba71-1b8a870ae85e +# -- +string_replace("${1:string}", "${2:match}", "${3:replacement}" )$0 diff --git a/lisp/snippets/cfengine3-mode/functions/string_reverse b/lisp/snippets/cfengine3-mode/functions/string_reverse new file mode 100644 index 00000000..48c5e69a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/string_reverse @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function string_reverse(data) +# key: string_reverse +# contributor: Jeff Carlson +# uuid: 0c1e1f04-2f5f-48b7-9d8d-8483919049fb +# -- +string_reverse("${1:data}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/string_split b/lisp/snippets/cfengine3-mode/functions/string_split new file mode 100644 index 00000000..4dbb729e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/string_split @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function string_split(string, regex, maxent) +# key: string_split +# contributor: Jeff Carlson +# uuid: b4c706dd-02bb-460d-9000-a1f8f18ae467 +# -- +string_split("${1:string}", "${2:regex}", "${3:maxent}")$0 diff --git a/lisp/snippets/cfengine3-mode/functions/string_tail b/lisp/snippets/cfengine3-mode/functions/string_tail new file mode 100644 index 00000000..d517d754 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/string_tail @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function string_tail(data, max) +# key: string_tail +# contributor: Jeff Carlson +# uuid: 0945f645-01f4-4a00-aaec-b00783e8e6b5 +# -- +string_tail("${1:data}", "${2:max}")$0 diff --git a/lisp/snippets/cfengine3-mode/functions/string_trim b/lisp/snippets/cfengine3-mode/functions/string_trim new file mode 100644 index 00000000..2af3fb0c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/string_trim @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function string_trim(string) +# key: string_trim +# contributor: Nick Anderson +# uuid: 3b53527d-98f5-4e41-830e-3d07ef13a176 +# -- +string_trim("${1:string}")$0 diff --git a/lisp/snippets/cfengine3-mode/functions/string_upcase b/lisp/snippets/cfengine3-mode/functions/string_upcase new file mode 100644 index 00000000..59a6f546 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/string_upcase @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function string_upcase(data) +# key: string_upcase +# contributor: Jeff Carlson +# uuid: 3a85e8e2-70bb-40d7-853b-dc61f05be507 +# -- +string_upcase("${1:data}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/sublist b/lisp/snippets/cfengine3-mode/functions/sublist new file mode 100644 index 00000000..0b3a2e5a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/sublist @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function sublist(list, head_or_tail, max_elements) +# key: sublist +# contributor: Jeff Carlson +# uuid: b6d1b1a3-9273-447a-a2e2-e3b0a54e9f54 +# -- +sublist("${1:list}", "${2:$$(yas-choose-value '("head" "tail"))}", "${3:max_elements}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/sum b/lisp/snippets/cfengine3-mode/functions/sum new file mode 100644 index 00000000..3eba8641 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/sum @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function sum(list) +# key: sum +# contributor: Jeff Carlson +# uuid: 10da52b7-7d58-4972-8f9e-f4686a3b1f8e +# -- +sum("${1:list}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/sysctlvalue b/lisp/snippets/cfengine3-mode/functions/sysctlvalue new file mode 100644 index 00000000..4503e522 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/sysctlvalue @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function sysctlvalue(key) +# key: sysctlvalue +# contributor: Jeff Carlson +# uuid: 5c281369-7a54-4967-9a40-b0cd8bfb2b5c +# -- +sysctlvalue("${1:key}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/translatepath b/lisp/snippets/cfengine3-mode/functions/translatepath new file mode 100644 index 00000000..026bfead --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/translatepath @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function translatepath(path) +# key: translatepath +# contributor: Jeff Carlson +# uuid: 03ca8728-ad3d-4492-b4b1-eae442a01e64 +# -- +translatepath("${1:path}")$0 diff --git a/lisp/snippets/cfengine3-mode/functions/type b/lisp/snippets/cfengine3-mode/functions/type new file mode 100644 index 00000000..c77d88b6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/type @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function type(var, detail) +# key: type +# contributor: Nick Anderson +# uuid: 435e3b0f-8dc5-4add-bd6a-67e4e6aec4f8 +# -- +type("${1:var}", "${2:detail}")$0 diff --git a/lisp/snippets/cfengine3-mode/functions/unique b/lisp/snippets/cfengine3-mode/functions/unique new file mode 100644 index 00000000..ab4da4ad --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/unique @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function unique(list) +# key: unique +# contributor: Jeff Carlson +# uuid: 56776e4e-1831-4988-8a30-c977d0373ef5 +# -- +unique("${1:list}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/url_get b/lisp/snippets/cfengine3-mode/functions/url_get new file mode 100644 index 00000000..7d3f9fff --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/url_get @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function url_get(url, options_container) +# key: url_get +# contributor: Jeff Carlson +# uuid: 9946bfad-800c-46fb-b7f2-cccdbb1f8dc8 +# -- +url_get("${1:url}", "${2:options_container}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/usemodule b/lisp/snippets/cfengine3-mode/functions/usemodule new file mode 100644 index 00000000..56dcec88 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/usemodule @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function usemodule(module, args) +# key: usemodule +# contributor: Jeff Carlson +# uuid: 3cf2e7de-8e60-4e80-867c-8a3f34f31f8f +# -- +usemodule("${1:module}", "${1:args}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/userexists b/lisp/snippets/cfengine3-mode/functions/userexists new file mode 100644 index 00000000..e4eb65f2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/userexists @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function userexists(user) +# key: userexists +# contributor: Jeff Carlson +# uuid: 76252664-01be-4afa-91c8-75e9a0b0f29a +# -- +userexists("${1:user}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/validdata b/lisp/snippets/cfengine3-mode/functions/validdata new file mode 100644 index 00000000..c50a118f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/validdata @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function validdata(data_string, type) +# key: validdata +# contributor: Nick Anderson +# uuid: 2c7f8674-2cfd-43d9-ad81-401a5ef24d33 +# -- +validdata("${1:data_string}", "${2:$$(yas-choose-value '("JSON"))}")$0 diff --git a/lisp/snippets/cfengine3-mode/functions/validjson b/lisp/snippets/cfengine3-mode/functions/validjson new file mode 100644 index 00000000..5359e3c2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/validjson @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function validjson(json_string, type) +# key: validjson +# contributor: Nick Anderson +# uuid: 7936ac98-ac7c-4a98-ac75-a0e353edb699 +# -- +validjson("${1:json_string}")$0 diff --git a/lisp/snippets/cfengine3-mode/functions/variablesmatching b/lisp/snippets/cfengine3-mode/functions/variablesmatching new file mode 100644 index 00000000..51115dac --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/variablesmatching @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function variablesmatching(name, tag1, tag2, ...) +# key: variablesmatching +# contributor: Jeff Carlson +# uuid: 12227c3a-8c20-45d5-995f-0be077ed62db +# -- +variablesmatching("${1:strings}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/variablesmatching_as_data b/lisp/snippets/cfengine3-mode/functions/variablesmatching_as_data new file mode 100644 index 00000000..a147fbbb --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/variablesmatching_as_data @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function variablesmatching_as_data(name, tag1, tag2, ...) +# key: variablesmatching_as_data +# contributor: Jeff Carlson +# uuid: 72f9a1fa-d725-49c5-9642-d5f807f204d0 +# -- +variablesmatching_as_data("${1:strings}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/functions/variance b/lisp/snippets/cfengine3-mode/functions/variance new file mode 100644 index 00000000..6460b684 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/functions/variance @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function variance(list) +# key: variance +# contributor: Jeff Carlson +# uuid: b169428a-7ce8-407b-9bd3-0f5e2fa04905 +# -- +variance("${1:list}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/promises/access b/lisp/snippets/cfengine3-mode/promises/access new file mode 100644 index 00000000..85124aa2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/access @@ -0,0 +1,30 @@ +# -*- mode: snippet -*- +# name: access promise +# key: access +# contributor: Jeff Carlson +# uuid: d51016a6-aca5-427b-99dc-f225aee47a7f +# -- +"${1:access}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +admit +admit_hostnames +admit_ips +admit_keys +deny +deny_hostnames +deny_ips +deny_keys +ifencrypted +maproot +report_data_select +resource_type +shortcut diff --git a/lisp/snippets/cfengine3-mode/promises/build_xpath b/lisp/snippets/cfengine3-mode/promises/build_xpath new file mode 100644 index 00000000..7fc1b889 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/build_xpath @@ -0,0 +1,19 @@ +# -*- mode: snippet -*- +# name: build_xpath promise +# key: build_xpath +# contributor: Jeff Carlson +# uuid: a522e5e9-8dd2-469d-bc8c-125d4662ffb1 +# -- +"${1:build_xpath}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +build_xpath +select_xpath diff --git a/lisp/snippets/cfengine3-mode/promises/classes b/lisp/snippets/cfengine3-mode/promises/classes new file mode 100644 index 00000000..9912989c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/classes @@ -0,0 +1,26 @@ +# -*- mode: snippet -*- +# name: classes promise +# key: classes +# contributor: Jeff Carlson +# uuid: 3388f2fa-621c-49a8-913e-5f8d0b85435a +# -- +"${1:classes}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +and +dist +expression +not +or +persistence +scope +select_class +xor diff --git a/lisp/snippets/cfengine3-mode/promises/commands b/lisp/snippets/cfengine3-mode/promises/commands new file mode 100644 index 00000000..216e98cf --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/commands @@ -0,0 +1,21 @@ +# -*- mode: snippet -*- +# name: commands promise +# key: commands +# contributor: Jeff Carlson +# uuid: 565a22fd-ee43-493f-bd5f-8bc4cd050cf4 +# -- +"${1:commands}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +arglist +args +contain +module diff --git a/lisp/snippets/cfengine3-mode/promises/databases b/lisp/snippets/cfengine3-mode/promises/databases new file mode 100644 index 00000000..904eaca6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/databases @@ -0,0 +1,23 @@ +# -*- mode: snippet -*- +# name: databases promise +# key: databases +# contributor: Jeff Carlson +# uuid: 7c33fd31-ce48-4de4-aa39-076c90653204 +# -- +"${1:databases}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +database_columns +database_operation +database_rows +database_server +database_type +registry_exclude diff --git a/lisp/snippets/cfengine3-mode/promises/defaults b/lisp/snippets/cfengine3-mode/promises/defaults new file mode 100644 index 00000000..8bf25028 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/defaults @@ -0,0 +1,20 @@ +# -*- mode: snippet -*- +# name: defaults promise +# key: defaults +# contributor: Jeff Carlson +# uuid: c34ec43a-8e0e-4c51-8b9e-d3431aa2a756 +# -- +"${1:defaults}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +if_match_regex +slist +string diff --git a/lisp/snippets/cfengine3-mode/promises/delete_attribute b/lisp/snippets/cfengine3-mode/promises/delete_attribute new file mode 100644 index 00000000..61a59ce1 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/delete_attribute @@ -0,0 +1,19 @@ +# -*- mode: snippet -*- +# name: delete_attribute promise +# key: delete_attribute +# contributor: Jeff Carlson +# uuid: 757173f0-8937-4439-a254-d1137420f1e2 +# -- +"${1:delete_attribute}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +build_xpath +select_xpath diff --git a/lisp/snippets/cfengine3-mode/promises/delete_lines b/lisp/snippets/cfengine3-mode/promises/delete_lines new file mode 100644 index 00000000..7782dd96 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/delete_lines @@ -0,0 +1,20 @@ +# -*- mode: snippet -*- +# name: delete_lines promise +# key: delete_lines +# contributor: Jeff Carlson +# uuid: 072dd859-77e7-47ca-9c9f-0cfc886cd6c3 +# -- +"${1:delete_lines}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +delete_select +not_matching +select_region diff --git a/lisp/snippets/cfengine3-mode/promises/delete_text b/lisp/snippets/cfengine3-mode/promises/delete_text new file mode 100644 index 00000000..842b0fdc --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/delete_text @@ -0,0 +1,19 @@ +# -*- mode: snippet -*- +# name: delete_text promise +# key: delete_text +# contributor: Jeff Carlson +# uuid: 62e9c427-b222-4705-8e31-a4ffed40231c +# -- +"${1:delete_text}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +build_xpath +select_xpath diff --git a/lisp/snippets/cfengine3-mode/promises/delete_tree b/lisp/snippets/cfengine3-mode/promises/delete_tree new file mode 100644 index 00000000..b53a59d2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/delete_tree @@ -0,0 +1,19 @@ +# -*- mode: snippet -*- +# name: delete_tree promise +# key: delete_tree +# contributor: Jeff Carlson +# uuid: 36a544bc-422c-4fee-835c-c6812b585369 +# -- +"${1:delete_tree}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +build_xpath +select_xpath diff --git a/lisp/snippets/cfengine3-mode/promises/field_edits b/lisp/snippets/cfengine3-mode/promises/field_edits new file mode 100644 index 00000000..b275681c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/field_edits @@ -0,0 +1,19 @@ +# -*- mode: snippet -*- +# name: field_edits promise +# key: field_edits +# contributor: Jeff Carlson +# uuid: 24c79beb-b364-4723-a5e0-a2f7f15094ca +# -- +"${1:field_edits}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +edit_field +select_region diff --git a/lisp/snippets/cfengine3-mode/promises/files b/lisp/snippets/cfengine3-mode/promises/files new file mode 100644 index 00000000..9adb3808 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/files @@ -0,0 +1,40 @@ +# -*- mode: snippet -*- +# name: files promise +# key: files +# contributor: Jeff Carlson +# uuid: fd2731fa-2f33-487c-bee4-f6774d5148c6 +# -- +"${1:files}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +acl +changes +copy_from +create +delete +depth_search +edit_defaults +edit_line +edit_template +edit_template_string +edit_xml +file_select +file_type +link_from +move_obstructions +pathtype +perms +rename +repository +template_data +template_method +touch +transformer diff --git a/lisp/snippets/cfengine3-mode/promises/guest_environments b/lisp/snippets/cfengine3-mode/promises/guest_environments new file mode 100644 index 00000000..3d8cdb2f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/guest_environments @@ -0,0 +1,22 @@ +# -*- mode: snippet -*- +# name: guest_environments promise +# key: guest_environments +# contributor: Jeff Carlson +# uuid: ca5eeb50-4af1-42fb-a45b-88e5b81e82ed +# -- +"${1:guest_environments}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +environment_host +environment_interface +environment_resources +environment_state +environment_type diff --git a/lisp/snippets/cfengine3-mode/promises/insert_lines b/lisp/snippets/cfengine3-mode/promises/insert_lines new file mode 100644 index 00000000..363d5dec --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/insert_lines @@ -0,0 +1,23 @@ +# -*- mode: snippet -*- +# name: insert_lines promise +# key: insert_lines +# contributor: Jeff Carlson +# uuid: ead17f33-3247-43b0-889c-83bf1d6b1284 +# -- +"${1:insert_lines}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +expand_scalars +insert_select +insert_type +location +select_region +whitespace_policy diff --git a/lisp/snippets/cfengine3-mode/promises/insert_text b/lisp/snippets/cfengine3-mode/promises/insert_text new file mode 100644 index 00000000..65416036 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/insert_text @@ -0,0 +1,19 @@ +# -*- mode: snippet -*- +# name: insert_text promise +# key: insert_text +# contributor: Jeff Carlson +# uuid: 505eec3c-afcb-4937-9163-1a422b61f12a +# -- +"${1:insert_text}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +build_xpath +select_xpath diff --git a/lisp/snippets/cfengine3-mode/promises/insert_tree b/lisp/snippets/cfengine3-mode/promises/insert_tree new file mode 100644 index 00000000..59922765 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/insert_tree @@ -0,0 +1,19 @@ +# -*- mode: snippet -*- +# name: insert_tree promise +# key: insert_tree +# contributor: Jeff Carlson +# uuid: 773d2062-bcd2-479c-8436-9f3c9ee8b49c +# -- +"${1:insert_tree}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +build_xpath +select_xpath diff --git a/lisp/snippets/cfengine3-mode/promises/measurements b/lisp/snippets/cfengine3-mode/promises/measurements new file mode 100644 index 00000000..1bfaea65 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/measurements @@ -0,0 +1,22 @@ +# -*- mode: snippet -*- +# name: measurements promise +# key: measurements +# contributor: Jeff Carlson +# uuid: eaa135b2-8f95-49d2-b827-ceb0d5d24ee2 +# -- +"${1:measurements}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +data_type +history_type +match_value +stream_type +units diff --git a/lisp/snippets/cfengine3-mode/promises/meta b/lisp/snippets/cfengine3-mode/promises/meta new file mode 100644 index 00000000..a960c847 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/meta @@ -0,0 +1,20 @@ +# -*- mode: snippet -*- +# name: meta promise +# key: meta +# contributor: Jeff Carlson +# uuid: 97ea15ca-eef3-44fc-ae6b-76ca8dcf40fd +# -- +"${1:meta}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +data +slist +string diff --git a/lisp/snippets/cfengine3-mode/promises/methods b/lisp/snippets/cfengine3-mode/promises/methods new file mode 100644 index 00000000..1a27ec7b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/methods @@ -0,0 +1,20 @@ +# -*- mode: snippet -*- +# name: methods promise +# key: methods +# contributor: Jeff Carlson +# uuid: e829e26b-f62f-4482-9c53-31460a966b08 +# -- +"${1:methods}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +inherit +usebundle +useresult diff --git a/lisp/snippets/cfengine3-mode/promises/packages b/lisp/snippets/cfengine3-mode/promises/packages new file mode 100644 index 00000000..4ca5aadd --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/packages @@ -0,0 +1,28 @@ +# -*- mode: snippet -*- +# name: packages promise +# key: packages +# contributor: Jeff Carlson +# uuid: b76d6663-3d08-46e3-92f4-659819d61a5c +# -- +"${1:packages}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +additional_packages +architecture +options +package_architectures +package_method +package_module +package_policy +package_select +package_version +policy +version diff --git a/lisp/snippets/cfengine3-mode/promises/processes b/lisp/snippets/cfengine3-mode/promises/processes new file mode 100644 index 00000000..d0ebc2fd --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/processes @@ -0,0 +1,22 @@ +# -*- mode: snippet -*- +# name: processes promise +# key: processes +# contributor: Jeff Carlson +# uuid: ddaab1bb-b872-4f3b-9a7e-77db9a562c9f +# -- +"${1:processes}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +process_count +process_select +process_stop +restart_class +signals diff --git a/lisp/snippets/cfengine3-mode/promises/replace_patterns b/lisp/snippets/cfengine3-mode/promises/replace_patterns new file mode 100644 index 00000000..dddb649f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/replace_patterns @@ -0,0 +1,19 @@ +# -*- mode: snippet -*- +# name: replace_patterns promise +# key: replace_patterns +# contributor: Jeff Carlson +# uuid: 63620b79-150d-47a8-96e8-6a9a7513dacd +# -- +"${1:replace_patterns}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +replace_with +select_region diff --git a/lisp/snippets/cfengine3-mode/promises/reports b/lisp/snippets/cfengine3-mode/promises/reports new file mode 100644 index 00000000..533d2493 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/reports @@ -0,0 +1,24 @@ +# -*- mode: snippet -*- +# name: reports promise +# key: reports +# contributor: Jeff Carlson +# uuid: 71a1a871-32df-447c-a86b-81dac35ddb16 +# -- +"${1:reports}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +bundle_return_value_index +friend_pattern +intermittency +lastseen +printfile +report_to_file +showstate diff --git a/lisp/snippets/cfengine3-mode/promises/roles b/lisp/snippets/cfengine3-mode/promises/roles new file mode 100644 index 00000000..18d7c2f9 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/roles @@ -0,0 +1,18 @@ +# -*- mode: snippet -*- +# name: roles promise +# key: roles +# contributor: Jeff Carlson +# uuid: ec3cc328-043b-4f25-b5ad-3e6540ed20ba +# -- +"${1:roles}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +authorize diff --git a/lisp/snippets/cfengine3-mode/promises/services b/lisp/snippets/cfengine3-mode/promises/services new file mode 100644 index 00000000..59a355c6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/services @@ -0,0 +1,20 @@ +# -*- mode: snippet -*- +# name: services promise +# key: services +# contributor: Jeff Carlson +# uuid: 1940cee9-d77e-4a25-b5cc-37f85367d308 +# -- +"${1:services}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +service_dependencies +service_method +service_policy diff --git a/lisp/snippets/cfengine3-mode/promises/set_attribute b/lisp/snippets/cfengine3-mode/promises/set_attribute new file mode 100644 index 00000000..b863846a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/set_attribute @@ -0,0 +1,20 @@ +# -*- mode: snippet -*- +# name: set_attribute promise +# key: set_attribute +# contributor: Jeff Carlson +# uuid: 91edd752-7423-443d-ac81-4682b775b16e +# -- +"${1:set_attribute}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +attribute_value +build_xpath +select_xpath diff --git a/lisp/snippets/cfengine3-mode/promises/set_text b/lisp/snippets/cfengine3-mode/promises/set_text new file mode 100644 index 00000000..447978ab --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/set_text @@ -0,0 +1,19 @@ +# -*- mode: snippet -*- +# name: set_text promise +# key: set_text +# contributor: Jeff Carlson +# uuid: 0a59d211-3dbd-46b6-8432-bedfadda77cf +# -- +"${1:set_text}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +build_xpath +select_xpath diff --git a/lisp/snippets/cfengine3-mode/promises/storage b/lisp/snippets/cfengine3-mode/promises/storage new file mode 100644 index 00000000..e7707718 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/storage @@ -0,0 +1,19 @@ +# -*- mode: snippet -*- +# name: storage promise +# key: storage +# contributor: Jeff Carlson +# uuid: 9ae9f4db-ad97-400b-a714-e3661d94186f +# -- +"${1:storage}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +mount +volume diff --git a/lisp/snippets/cfengine3-mode/promises/users b/lisp/snippets/cfengine3-mode/promises/users new file mode 100644 index 00000000..0b47018b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/users @@ -0,0 +1,27 @@ +# -*- mode: snippet -*- +# name: users promise +# key: users +# contributor: Jeff Carlson +# uuid: d7771e66-6de2-4eb9-bef5-0b709af44b98 +# -- +"${1:users}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +description +group_primary +groups_secondary +home_bundle +home_bundle_inherit +home_dir +password +policy +shell +uid diff --git a/lisp/snippets/cfengine3-mode/promises/vars b/lisp/snippets/cfengine3-mode/promises/vars new file mode 100644 index 00000000..2d0166c0 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/promises/vars @@ -0,0 +1,25 @@ +# -*- mode: snippet -*- +# name: vars promise +# key: vars +# contributor: Jeff Carlson +# uuid: f1d18e6f-b148-4646-91ef-6585ad7da512 +# -- +"${1:vars}" +action +classes +comment +depends_on +handle +if +ifvarclass +meta +unless +with +data +ilist +int +policy +real +rlist +slist +string \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/acl/access_generic b/lisp/snippets/cfengine3-mode/stdlib/bodies/acl/access_generic new file mode 100644 index 00000000..2e2e434c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/acl/access_generic @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body acl access_generic(acl) +# key: access_generic +# contributor: Jeff Carlson +# uuid: ad55efe2-e33b-4d1c-8ade-d6af542ef097 +# -- +access_generic("${1:acl}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/acl/ntfs b/lisp/snippets/cfengine3-mode/stdlib/bodies/acl/ntfs new file mode 100644 index 00000000..9502e967 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/acl/ntfs @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body acl ntfs(acl) +# key: ntfs +# contributor: Jeff Carlson +# uuid: 7addef37-e9e9-47f6-bdaa-9b05be5b3c70 +# -- +ntfs("${1:acl}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/acl/strict b/lisp/snippets/cfengine3-mode/stdlib/bodies/acl/strict new file mode 100644 index 00000000..fae1298e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/acl/strict @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body acl strict +# key: strict +# contributor: Jeff Carlson +# uuid: 47c8872c-0a2e-4e36-a241-8292514875bd +# -- +strict$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/action/bg b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/bg new file mode 100644 index 00000000..9aa5b0d3 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/bg @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body action bg(elapsed, expire) +# key: bg +# contributor: Jeff Carlson +# uuid: 4848d0d0-30d9-4aca-823b-a33770462f53 +# -- +bg("${1:elapsed}", "${2:expire}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/action/if_elapsed b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/if_elapsed new file mode 100644 index 00000000..4309bb2d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/if_elapsed @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body action if_elapsed(x) +# key: if_elapsed +# contributor: Jeff Carlson +# uuid: d64cdc95-63b0-4dfe-b717-b98c52ca2adc +# -- +if_elapsed("${1:x}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/action/if_elapsed_day b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/if_elapsed_day new file mode 100644 index 00000000..2c236d04 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/if_elapsed_day @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body action if_elapsed_day +# key: if_elapsed_day +# contributor: Jeff Carlson +# uuid: 9a982d3c-3dca-4667-ade2-cf2f1d1d3bcf +# -- +if_elapsed_day$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/action/ifwin_bg b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/ifwin_bg new file mode 100644 index 00000000..234a37cf --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/ifwin_bg @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body action ifwin_bg +# key: ifwin_bg +# contributor: Jeff Carlson +# uuid: a663bdfb-3d6b-403d-98aa-7da26f48c7fe +# -- +ifwin_bg$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/action/immediate b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/immediate new file mode 100644 index 00000000..53b98d16 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/immediate @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body action immediate +# key: immediate +# contributor: Jeff Carlson +# uuid: 2d73fa36-11f5-4cce-9fa1-26616f33797e +# -- +immediate$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/action/log_repaired b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/log_repaired new file mode 100644 index 00000000..0158ffc8 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/log_repaired @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body action log_repaired(log, message) +# key: log_repaired +# contributor: Jeff Carlson +# uuid: 405b784d-81f6-4ccc-a17e-9d35161edeb5 +# -- +log_repaired("${1:log}", "${2:message}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/action/log_verbose b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/log_verbose new file mode 100644 index 00000000..e591c277 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/log_verbose @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body action log_verbose +# key: log_verbose +# contributor: Jeff Carlson +# uuid: 71996660-e55d-4e87-8c33-78299da2cf4a +# -- +log_verbose$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/action/measure_performance b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/measure_performance new file mode 100644 index 00000000..5554e169 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/measure_performance @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body action measure_performance(x) +# key: measure_performance +# contributor: Jeff Carlson +# uuid: 174201c4-0355-49b8-93ae-9c6f7452a5ea +# -- +measure_performance("${1:x}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/action/measure_promise_time b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/measure_promise_time new file mode 100644 index 00000000..305d4828 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/measure_promise_time @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body action measure_promise_time(identifier) +# key: measure_promise_time +# contributor: Jeff Carlson +# uuid: a4ef0c3a-7e01-4e94-afce-424831aea164 +# -- +measure_promise_time("${1:identifier}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/action/policy b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/policy new file mode 100644 index 00000000..6d3a2efa --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/policy @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body action policy(p) +# key: policy +# contributor: Jeff Carlson +# uuid: 0dd34624-30d8-4e30-9eec-55a397352a18 +# -- +policy("${1:p}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/action/sample_rate b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/sample_rate new file mode 100644 index 00000000..bf8ee307 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/sample_rate @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body action sample_rate(x) +# key: sample_rate +# contributor: Jeff Carlson +# uuid: 04162033-f32c-4dfb-8438-f41fb276a53a +# -- +sample_rate("${1:x}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/action/warn_only b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/warn_only new file mode 100644 index 00000000..2efa44b5 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/action/warn_only @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body action warn_only +# key: warn_only +# contributor: Jeff Carlson +# uuid: 3a437fbb-c50f-4bf5-9ab0-7b3b841d059b +# -- +warn_only$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/all_changes b/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/all_changes new file mode 100644 index 00000000..6b7d5b2e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/all_changes @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body changes all_changes +# key: all_changes +# contributor: Jeff Carlson +# uuid: 050912fe-b646-489e-a740-40601d30c816 +# -- +all_changes$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/detect_all_change b/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/detect_all_change new file mode 100644 index 00000000..435652f1 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/detect_all_change @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body changes detect_all_change +# key: detect_all_change +# contributor: Jeff Carlson +# uuid: 349b54f8-b70b-4c28-ae18-a614b70f53a7 +# -- +detect_all_change$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/detect_all_change_using b/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/detect_all_change_using new file mode 100644 index 00000000..af2aaf7b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/detect_all_change_using @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body changes detect_all_change_using(hash) +# key: detect_all_change_using +# contributor: Jeff Carlson +# uuid: 7ceb1a3d-61da-4656-a21d-6437bac23c77 +# -- +detect_all_change_using("${1:hash}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/detect_content b/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/detect_content new file mode 100644 index 00000000..5a893f19 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/detect_content @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body changes detect_content +# key: detect_content +# contributor: Jeff Carlson +# uuid: 98f9da22-22ba-436c-bf57-5cf51faf20bd +# -- +detect_content$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/detect_content_using b/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/detect_content_using new file mode 100644 index 00000000..e6317b0b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/detect_content_using @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body changes detect_content_using(hash) +# key: detect_content_using +# contributor: Jeff Carlson +# uuid: 8bc1e991-a339-4221-b999-8aa9335ce0b8 +# -- +detect_content_using("${1:hash}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/diff b/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/diff new file mode 100644 index 00000000..097b51f4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/diff @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body changes diff +# key: diff +# contributor: Jeff Carlson +# uuid: 4098023a-2581-4f32-ba57-99fca2699fc7 +# -- +diff$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/diff_noupdate b/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/diff_noupdate new file mode 100644 index 00000000..2749ff84 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/diff_noupdate @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body changes diff_noupdate +# key: diff_noupdate +# contributor: Jeff Carlson +# uuid: 8ee511da-d0c4-44ed-9f34-173daf81f714 +# -- +diff_noupdate$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/noupdate b/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/noupdate new file mode 100644 index 00000000..49195347 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/changes/noupdate @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body changes noupdate +# key: noupdate +# contributor: Jeff Carlson +# uuid: 734df851-a7e2-454b-8c05-1544492b3c45 +# -- +noupdate$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/always b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/always new file mode 100644 index 00000000..8bc04ff4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/always @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body classes always(x) +# key: always +# contributor: Jeff Carlson +# uuid: 7fa91a58-d10d-42e0-a0da-f86670fa208f +# -- +always("${1:x}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/cf2_if_else b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/cf2_if_else new file mode 100644 index 00000000..200f1dbd --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/cf2_if_else @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body classes cf2_if_else(yes, no) +# key: cf2_if_else +# contributor: Jeff Carlson +# uuid: 57c0c1e2-2da2-43cd-8ece-65a15d31e729 +# -- +cf2_if_else("${1:yes}", "${2:no}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/classes_generic b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/classes_generic new file mode 100644 index 00000000..d881e312 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/classes_generic @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body classes classes_generic(x) +# key: classes_generic +# contributor: Jeff Carlson +# uuid: cd062cd5-3a81-470c-a7ec-7eac2e9b6b07 +# -- +classes_generic("${1:x}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/cmd_repair b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/cmd_repair new file mode 100644 index 00000000..00230417 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/cmd_repair @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body classes cmd_repair(code, cl) +# key: cmd_repair +# contributor: Jeff Carlson +# uuid: 2aa9118d-5a49-4baa-9fe7-42704c644301 +# -- +cmd_repair("${1:code}", "${2:cl}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/diff_results b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/diff_results new file mode 100644 index 00000000..4973e553 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/diff_results @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body classes diff_results(scope, x) +# key: diff_results +# contributor: Jeff Carlson +# uuid: 169cbff1-9121-4216-897a-1799c5ec6fc3 +# -- +diff_results("${1:scope}", "${2:x}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/enumerate b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/enumerate new file mode 100644 index 00000000..f930092f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/enumerate @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body classes enumerate(x) +# key: enumerate +# contributor: Jeff Carlson +# uuid: 9f2bb2be-8ee0-47fc-8c24-58c9893db62a +# -- +enumerate("${1:x}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/event_cancel_events b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/event_cancel_events new file mode 100644 index 00000000..f4654d2a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/event_cancel_events @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body classes event_cancel_events(events) +# key: event_cancel_events +# contributor: Jeff Carlson +# uuid: db45fbca-7221-4a73-930d-4efde17ee97f +# -- +event_cancel_events("${1:events}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/feature_cancel b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/feature_cancel new file mode 100644 index 00000000..1000c45b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/feature_cancel @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body classes feature_cancel(x) +# key: feature_cancel +# contributor: Jeff Carlson +# uuid: 82133bf9-1323-491e-baba-b90f82b95c23 +# -- +feature_cancel("${1:x}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/if_else b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/if_else new file mode 100644 index 00000000..c2959224 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/if_else @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body classes if_else(yes, no) +# key: if_else +# contributor: Jeff Carlson +# uuid: 105b0b52-c4ac-4d73-bd16-38fc897c2674 +# -- +if_else("${1:yes}", "${2:no}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/if_notkept b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/if_notkept new file mode 100644 index 00000000..d9ca05e5 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/if_notkept @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body classes if_notkept(x) +# key: if_notkept +# contributor: Jeff Carlson +# uuid: acde213a-ea1f-48b4-837a-4c61cdca64f8 +# -- +if_notkept("${1:x}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/if_ok b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/if_ok new file mode 100644 index 00000000..d358183e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/if_ok @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body classes if_ok(x) +# key: if_ok +# contributor: Jeff Carlson +# uuid: 52ad60af-4a4e-4397-b74d-b634d94df276 +# -- +if_ok("${1:x}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/if_ok_cancel b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/if_ok_cancel new file mode 100644 index 00000000..30a68182 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/if_ok_cancel @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body classes if_ok_cancel(x) +# key: if_ok_cancel +# contributor: Jeff Carlson +# uuid: 707095f0-6529-4d79-9629-dcf412c1d147 +# -- +if_ok_cancel("${1:x}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/if_repaired b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/if_repaired new file mode 100644 index 00000000..afb9058c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/if_repaired @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body classes if_repaired(x) +# key: if_repaired +# contributor: Jeff Carlson +# uuid: ed451c8d-a7b0-44c8-b544-e689fa4c2f4f +# -- +if_repaired("${1:x}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/kept_successful_command b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/kept_successful_command new file mode 100644 index 00000000..fa03e719 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/kept_successful_command @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body classes kept_successful_command +# key: kept_successful_command +# contributor: Jeff Carlson +# uuid: bf3fe1dd-9a9e-4f95-8d43-bfde5d6673a6 +# -- +kept_successful_command$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/results b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/results new file mode 100644 index 00000000..90950948 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/results @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body classes results(scope, class_prefix) +# key: results +# contributor: Jeff Carlson +# uuid: b91f44c7-8bce-4fb2-afbb-0853508639f9 +# -- +results("${1:scope}", "${2:class_prefix}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/scoped_classes_generic b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/scoped_classes_generic new file mode 100644 index 00000000..081dbfce --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/scoped_classes_generic @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body classes scoped_classes_generic(scope, x) +# key: scoped_classes_generic +# contributor: Jeff Carlson +# uuid: ac9ff765-6c5d-4431-9792-a70c7bc74102 +# -- +scoped_classes_generic("${1:scope}", "${2:x}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/state_repaired b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/state_repaired new file mode 100644 index 00000000..37521c87 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/state_repaired @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body classes state_repaired(x) +# key: state_repaired +# contributor: Jeff Carlson +# uuid: 49790d91-b610-497c-a4b1-4f146e58e291 +# -- +state_repaired("${1:x}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/u_kept_successful_command b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/u_kept_successful_command new file mode 100644 index 00000000..ec650e04 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/classes/u_kept_successful_command @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body classes u_kept_successful_command +# key: u_kept_successful_command +# contributor: Jeff Carlson +# uuid: 1c7f1f98-a741-4d87-aecf-c52e5dbb780f +# -- +u_kept_successful_command$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/in_dir b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/in_dir new file mode 100644 index 00000000..8fad4e82 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/in_dir @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body contain in_dir(dir) +# key: in_dir +# contributor: Jeff Carlson +# uuid: 1e1ef80b-2599-4358-acd1-16a96c8c6466 +# -- +in_dir("${1:dir}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/in_dir_shell b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/in_dir_shell new file mode 100644 index 00000000..1c0b109a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/in_dir_shell @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body contain in_dir_shell(dir) +# key: in_dir_shell +# contributor: Jeff Carlson +# uuid: 3df43e27-b06e-4669-9b02-ff514fac4b80 +# -- +in_dir_shell("${1:dir}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/in_dir_shell_and_silent b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/in_dir_shell_and_silent new file mode 100644 index 00000000..943d5115 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/in_dir_shell_and_silent @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body contain in_dir_shell_and_silent(dir) +# key: in_dir_shell_and_silent +# contributor: Jeff Carlson +# uuid: a76d2ee6-7d84-4ff6-9420-f4057976cf9b +# -- +in_dir_shell_and_silent("${1:dir}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/in_shell b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/in_shell new file mode 100644 index 00000000..dd607b75 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/in_shell @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body contain in_shell +# key: in_shell +# contributor: Jeff Carlson +# uuid: 39ce4036-536e-42f5-8788-3926c97d0d53 +# -- +in_shell$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/in_shell_and_silent b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/in_shell_and_silent new file mode 100644 index 00000000..748d70c7 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/in_shell_and_silent @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body contain in_shell_and_silent +# key: in_shell_and_silent +# contributor: Jeff Carlson +# uuid: ca8f8c70-4f7b-425d-ac6e-53894e9decef +# -- +in_shell_and_silent$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/in_shell_bg b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/in_shell_bg new file mode 100644 index 00000000..1fa2936b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/in_shell_bg @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body contain in_shell_bg +# key: in_shell_bg +# contributor: Jeff Carlson +# uuid: 58479fd7-4998-4f5f-96ef-ec85154e77be +# -- +in_shell_bg$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/jail b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/jail new file mode 100644 index 00000000..27f07570 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/jail @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body contain jail(owner, jail_root, dir) +# key: jail +# contributor: Jeff Carlson +# uuid: 3b23baeb-0b04-4fd7-a897-befbb3f7ea11 +# -- +jail("${1:owner}", "${2:jail_root}", "${3:dir}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/setuid b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/setuid new file mode 100644 index 00000000..8c4270f3 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/setuid @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body contain setuid(owner) +# key: setuid +# contributor: Jeff Carlson +# uuid: 94ecaf28-1435-481c-a0b3-66de3228a926 +# -- +setuid("${1:owner}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/setuid_gid_umask b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/setuid_gid_umask new file mode 100644 index 00000000..c102f34f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/setuid_gid_umask @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body contain setuid_gid_umask(uid, gid, umask) +# key: setuid_gid_umask +# contributor: Jeff Carlson +# uuid: 1032591e-ac54-4a92-a301-261acaa69133 +# -- +setuid_gid_umask("${1:uid}", "${2:gid}", "${3:umask}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/setuid_sh b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/setuid_sh new file mode 100644 index 00000000..182f317d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/setuid_sh @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body contain setuid_sh(owner) +# key: setuid_sh +# contributor: Jeff Carlson +# uuid: e206cd4c-3cc5-45bd-8b42-452ba2aa3ce0 +# -- +setuid_sh("${1:owner}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/setuid_umask b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/setuid_umask new file mode 100644 index 00000000..1e2402d1 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/setuid_umask @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body contain setuid_umask(owner, umask) +# key: setuid_umask +# contributor: Jeff Carlson +# uuid: c914fc85-08bf-4253-a64c-d8c4b6ce668b +# -- +setuid_umask("${1:owner}", "${1:umask}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/setuidgid_dir b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/setuidgid_dir new file mode 100644 index 00000000..b5481bc9 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/setuidgid_dir @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body contain setuidgid_dir(owner, group, dir) +# key: setuidgid_dir +# contributor: Jeff Carlson +# uuid: 3103b2e2-b20b-4705-a959-b5ab910a92c2 +# -- +setuidgid_dir("${1:owner}", "${2:group}", "${3:dir}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/setuidgid_sh b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/setuidgid_sh new file mode 100644 index 00000000..62bdd984 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/setuidgid_sh @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body contain setuidgid_sh(owner, group) +# key: setuidgid_sh +# contributor: Jeff Carlson +# uuid: 739d4181-b1b1-47ce-9981-c5660cf89080 +# -- +setuidgid_sh("${1:owner}", "${2:group}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/silent b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/silent new file mode 100644 index 00000000..e4e7c5e6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/silent @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body contain silent +# key: silent +# contributor: Jeff Carlson +# uuid: 407281a7-536c-4483-bca1-b9300f343d2e +# -- +silent$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/silent_in_dir b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/silent_in_dir new file mode 100644 index 00000000..3afe01c1 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/contain/silent_in_dir @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body contain silent_in_dir(dir) +# key: silent_in_dir +# contributor: Jeff Carlson +# uuid: 9201ca8c-646f-4df3-985e-840f7f2a99da +# -- +silent_in_dir("${1:dir}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/backup_local_cp b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/backup_local_cp new file mode 100644 index 00000000..dc6a094c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/backup_local_cp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body copy_from backup_local_cp(from) +# key: backup_local_cp +# contributor: Jeff Carlson +# uuid: 471d39b4-3a11-435d-846d-de47d902e72d +# -- +backup_local_cp("${1:from}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/copyfrom_sync b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/copyfrom_sync new file mode 100644 index 00000000..75afc09e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/copyfrom_sync @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body copy_from copyfrom_sync(f) +# key: copyfrom_sync +# contributor: Jeff Carlson +# uuid: 1812692a-2f4e-43fc-b37e-40d4b483e86a +# -- +copyfrom_sync("${1:f}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/local_cp b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/local_cp new file mode 100644 index 00000000..2b02f444 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/local_cp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body copy_from local_cp(from) +# key: local_cp +# contributor: Jeff Carlson +# uuid: db59fbf7-dd12-4b1a-881c-d1120988962e +# -- +local_cp("${1:from}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/local_dcp b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/local_dcp new file mode 100644 index 00000000..8c46eab1 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/local_dcp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body copy_from local_dcp(from) +# key: local_dcp +# contributor: Jeff Carlson +# uuid: a41c701e-26bc-448f-bfaf-db70d9be05b6 +# -- +local_dcp("${1:from}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/no_backup_cp b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/no_backup_cp new file mode 100644 index 00000000..d74aa705 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/no_backup_cp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body copy_from no_backup_cp(from) +# key: no_backup_cp +# contributor: Jeff Carlson +# uuid: b3942d25-d0aa-4f15-84ec-093a1e36565d +# -- +no_backup_cp("${1:from}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/no_backup_dcp b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/no_backup_dcp new file mode 100644 index 00000000..366907b3 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/no_backup_dcp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body copy_from no_backup_dcp(from) +# key: no_backup_dcp +# contributor: Jeff Carlson +# uuid: 63e5df88-3a26-4d06-b6f2-699688d60992 +# -- +no_backup_dcp("${1:from}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/no_backup_rcp b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/no_backup_rcp new file mode 100644 index 00000000..0858ce15 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/no_backup_rcp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body copy_from no_backup_rcp(from, server) +# key: no_backup_rcp +# contributor: Jeff Carlson +# uuid: c01c5e62-7cb6-422e-adaa-8b276f524a12 +# -- +no_backup_rcp("${1:from}", "${2:server}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/perms_cp b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/perms_cp new file mode 100644 index 00000000..673db4fb --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/perms_cp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body copy_from perms_cp(from) +# key: perms_cp +# contributor: Jeff Carlson +# uuid: afd7297c-f1b5-45b9-9f18-970ab9dd43fe +# -- +perms_cp("${1:from}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/perms_dcp b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/perms_dcp new file mode 100644 index 00000000..0449bbc4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/perms_dcp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body copy_from perms_dcp(from) +# key: perms_dcp +# contributor: Jeff Carlson +# uuid: f09b6f8b-c6f2-4f76-ba56-38faee0f5552 +# -- +perms_dcp("${1:from}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/remote_cp b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/remote_cp new file mode 100644 index 00000000..7e95ff9e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/remote_cp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body copy_from remote_cp(from, server) +# key: remote_cp +# contributor: Jeff Carlson +# uuid: fcdf2138-a34e-4621-a010-02a70b77d1d4 +# -- +remote_cp("${1:from}", "${2:server}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/remote_dcp b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/remote_dcp new file mode 100644 index 00000000..ff3607db --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/remote_dcp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body copy_from remote_dcp(from, server) +# key: remote_dcp +# contributor: Jeff Carlson +# uuid: 0ed9eed0-c5af-40c4-88a1-ca476240e8a8 +# -- +remote_dcp("${1:from}", "${2:server}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/secure_cp b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/secure_cp new file mode 100644 index 00000000..7a695f41 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/secure_cp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body copy_from secure_cp(from, server) +# key: secure_cp +# contributor: Jeff Carlson +# uuid: cbbfe391-961a-4553-a1cd-00d3d87dbb9b +# -- +secure_cp("${1:from}", "${2:server}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/seed_cp b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/seed_cp new file mode 100644 index 00000000..91f25c26 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/seed_cp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body copy_from seed_cp(from) +# key: seed_cp +# contributor: Jeff Carlson +# uuid: 85c6208a-9193-425d-9edb-955de72ac131 +# -- +seed_cp("${1:from}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/sync_cp b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/sync_cp new file mode 100644 index 00000000..11df9a41 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/copy_from/sync_cp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body copy_from sync_cp(from, server) +# key: sync_cp +# contributor: Jeff Carlson +# uuid: 49bf40bf-3b1a-468d-a7ec-959fb8c34bc2 +# -- +sync_cp("${1:from}", "${2:server}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/database_server/local_mysql b/lisp/snippets/cfengine3-mode/stdlib/bodies/database_server/local_mysql new file mode 100644 index 00000000..2f2c5fb2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/database_server/local_mysql @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body database_server local_mysql(username, password) +# key: local_mysql +# contributor: Jeff Carlson +# uuid: de3d105f-8ac3-4a37-9d75-bce22ea543b9 +# -- +local_mysql("${1:username}", "${2:password}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/database_server/local_postgresql b/lisp/snippets/cfengine3-mode/stdlib/bodies/database_server/local_postgresql new file mode 100644 index 00000000..774596e7 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/database_server/local_postgresql @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body database_server local_postgresql(username, password) +# key: local_postgresql +# contributor: Jeff Carlson +# uuid: cc79db37-97d2-479a-8afe-fcad88bd0438 +# -- +local_postgresql("${1:username}", "${2:password}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/delete/tidy b/lisp/snippets/cfengine3-mode/stdlib/bodies/delete/tidy new file mode 100644 index 00000000..2b2a0c1e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/delete/tidy @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body delete tidy +# key: tidy +# contributor: Jeff Carlson +# uuid: 857aa713-350c-4ef0-b705-cb160a668a7c +# -- +tidy$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/depth_search/include_base b/lisp/snippets/cfengine3-mode/stdlib/bodies/depth_search/include_base new file mode 100644 index 00000000..2cbdaa89 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/depth_search/include_base @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body depth_search include_base +# key: include_base +# contributor: Jeff Carlson +# uuid: 12f57b47-4f0c-48f9-b30e-ce1fe49cf118 +# -- +include_base$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/depth_search/recurse b/lisp/snippets/cfengine3-mode/stdlib/bodies/depth_search/recurse new file mode 100644 index 00000000..b2db5a7e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/depth_search/recurse @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body depth_search recurse(d) +# key: recurse +# contributor: Jeff Carlson +# uuid: d2a80a88-e47e-48e6-a519-e4648d305067 +# -- +recurse("${1:d}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/depth_search/recurse_ignore b/lisp/snippets/cfengine3-mode/stdlib/bodies/depth_search/recurse_ignore new file mode 100644 index 00000000..7b8bc8af --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/depth_search/recurse_ignore @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body depth_search recurse_ignore(d, list) +# key: recurse_ignore +# contributor: Jeff Carlson +# uuid: 2fe85727-9a88-46dd-94d0-6373bf827026 +# -- +recurse_ignore("${1:d}", "${2:list}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/depth_search/recurse_with_base b/lisp/snippets/cfengine3-mode/stdlib/bodies/depth_search/recurse_with_base new file mode 100644 index 00000000..0183601e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/depth_search/recurse_with_base @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body depth_search recurse_with_base(d) +# key: recurse_with_base +# contributor: Jeff Carlson +# uuid: 42647293-b717-47d8-a727-d4cca25eef99 +# -- +recurse_with_base("${1:d}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_defaults/backup_timestamp b/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_defaults/backup_timestamp new file mode 100644 index 00000000..6a1abd8f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_defaults/backup_timestamp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body edit_defaults backup_timestamp +# key: backup_timestamp +# contributor: Jeff Carlson +# uuid: b660d690-3935-4f71-8643-f895c8e52c9c +# -- +backup_timestamp$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_defaults/empty b/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_defaults/empty new file mode 100644 index 00000000..ca31fe7b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_defaults/empty @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body edit_defaults empty +# key: empty +# contributor: Jeff Carlson +# uuid: 10afd752-95e8-407b-84d8-6828f3e69b58 +# -- +empty$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_defaults/no_backup b/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_defaults/no_backup new file mode 100644 index 00000000..dbe5954d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_defaults/no_backup @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body edit_defaults no_backup +# key: no_backup +# contributor: Jeff Carlson +# uuid: c3a51123-9512-47f8-923b-1202e39878b5 +# -- +no_backup$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_defaults/std_defs b/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_defaults/std_defs new file mode 100644 index 00000000..a1ec1599 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_defaults/std_defs @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body edit_defaults std_defs +# key: std_defs +# contributor: Jeff Carlson +# uuid: 32a56134-e576-41d2-9f39-948bfec47ba1 +# -- +std_defs$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_field/col b/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_field/col new file mode 100644 index 00000000..7ac32123 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_field/col @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body edit_field col(split, col, newval, method) +# key: col +# contributor: Jeff Carlson +# uuid: 94ca16e9-2152-48f8-94c7-810792aa4e24 +# -- +col("${1:split}", "${2:col}", "${3:newval}", "${4:method}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_field/fstab_options b/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_field/fstab_options new file mode 100644 index 00000000..42d9172d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_field/fstab_options @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body edit_field fstab_options(newval, method) +# key: fstab_options +# contributor: Jeff Carlson +# uuid: ee07b045-6afb-4535-a1fb-ec86ac799fbe +# -- +fstab_options("${1:newval}", "${2:method}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_field/line b/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_field/line new file mode 100644 index 00000000..db55aa99 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_field/line @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body edit_field line(split, col, newval, method) +# key: line +# contributor: Jeff Carlson +# uuid: 4e36dcde-28f0-4305-8b97-6e48c7c3456d +# -- +line("${1:split}", "${2:col}", "${3:newval}", "${4:method}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_field/quoted_var b/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_field/quoted_var new file mode 100644 index 00000000..8c8705cc --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/edit_field/quoted_var @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body edit_field quoted_var(newval, method) +# key: quoted_var +# contributor: Jeff Carlson +# uuid: 4ea906ac-3a02-4054-a5f5-3c002b64a134 +# -- +quoted_var("${1:newval}", "${1:method}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/environment_resources/kvm b/lisp/snippets/cfengine3-mode/stdlib/bodies/environment_resources/kvm new file mode 100644 index 00000000..72b10def --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/environment_resources/kvm @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body environment_resources kvm(name, arch, cpu_count, mem_kb, disk_file) +# key: kvm +# contributor: Jeff Carlson +# uuid: 6aacb891-58f7-44e8-8e52-3d864f91fdf6 +# -- +kvm("${1:name}", "${2:arch}", "${3:cpu_count}", "${4:mem_kb}", "${5:disk_file}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/file/control b/lisp/snippets/cfengine3-mode/stdlib/bodies/file/control new file mode 100644 index 00000000..cbbb1fb6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/file/control @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body file control +# key: control +# contributor: Jeff Carlson +# uuid: 239df0fc-84ab-4151-9514-e2abc6fd3e53 +# -- +control$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/all b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/all new file mode 100644 index 00000000..c7167d25 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/all @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body file_select all +# key: all +# contributor: Jeff Carlson +# uuid: 75b54dac-cf54-495f-baa0-153b010e20e9 +# -- +all$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/bigger_than b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/bigger_than new file mode 100644 index 00000000..2986e340 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/bigger_than @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body file_select bigger_than(size) +# key: bigger_than +# contributor: Jeff Carlson +# uuid: 74f28906-0728-44fa-96ab-0015425923e0 +# -- +bigger_than("${1:size}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/by_name b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/by_name new file mode 100644 index 00000000..36675040 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/by_name @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body file_select by_name(names) +# key: by_name +# contributor: Jeff Carlson +# uuid: 833846a9-c761-48a0-b6c1-28345bb223d6 +# -- +by_name("${1:names}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/days_old b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/days_old new file mode 100644 index 00000000..b2ea128d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/days_old @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body file_select days_old(days) +# key: days_old +# contributor: Jeff Carlson +# uuid: 25e4b373-52d6-4f71-aa59-54ef2667916a +# -- +days_old("${1:days}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/dirs b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/dirs new file mode 100644 index 00000000..5ae4b54c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/dirs @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body file_select dirs +# key: dirs +# contributor: Jeff Carlson +# uuid: d8fc439a-b35c-41c8-ad9e-4f472814c199 +# -- +dirs$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/ex_list b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/ex_list new file mode 100644 index 00000000..f26e4c52 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/ex_list @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body file_select ex_list(names) +# key: ex_list +# contributor: Jeff Carlson +# uuid: f129234f-7345-440c-ad08-b833ffeb0a73 +# -- +ex_list("${1:names}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/exclude b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/exclude new file mode 100644 index 00000000..c1c6c58f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/exclude @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body file_select exclude(name) +# key: exclude +# contributor: Jeff Carlson +# uuid: 16b52d99-af63-493a-9689-3e34c24737db +# -- +exclude("${1:name}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/filetype_older_than b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/filetype_older_than new file mode 100644 index 00000000..5ff380ee --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/filetype_older_than @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body file_select filetype_older_than(filetype, days) +# key: filetype_older_than +# contributor: Jeff Carlson +# uuid: 0d618e20-6b55-440c-97ad-0d835562c7c9 +# -- +filetype_older_than("${1:filetype}", "${2:days}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/filetypes_older_than b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/filetypes_older_than new file mode 100644 index 00000000..5728b70e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/filetypes_older_than @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body file_select filetypes_older_than(filetypes, days) +# key: filetypes_older_than +# contributor: Jeff Carlson +# uuid: 8de390e7-f880-4501-a0f2-09fb49ff06a9 +# -- +filetypes_older_than("${1:filetypes}", "${2:days}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/name_age b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/name_age new file mode 100644 index 00000000..5ca96b0c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/name_age @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body file_select name_age(name, days) +# key: name_age +# contributor: Jeff Carlson +# uuid: 6535fbfb-654d-4b96-a89d-5a609280fe9f +# -- +name_age("${1:name}", "${2:days}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/older_than b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/older_than new file mode 100644 index 00000000..03503b12 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/older_than @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body file_select older_than(years, months, days, hours, minutes, seconds) +# key: older_than +# contributor: Jeff Carlson +# uuid: 743d9543-65fb-469c-99ad-82e90b76028b +# -- +older_than("${1:years}", "${2:months}", "${3:days}", "${4:hours}", "${5:minutes}", "${6:seconds}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/plain b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/plain new file mode 100644 index 00000000..fe16219d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/plain @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body file_select plain +# key: plain +# contributor: Jeff Carlson +# uuid: 78f60c14-205d-4b52-84b7-679217887106 +# -- +plain$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/size_range b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/size_range new file mode 100644 index 00000000..a1b7dec1 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/size_range @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body file_select size_range(from, to) +# key: size_range +# contributor: Jeff Carlson +# uuid: 04c8e0d0-7551-4c37-abca-2163f7c3038a +# -- +size_range("${1:from}", "${1:to}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/symlinked_to b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/symlinked_to new file mode 100644 index 00000000..7c48ff0b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/file_select/symlinked_to @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body file_select symlinked_to(target) +# key: symlinked_to +# contributor: Jeff Carlson +# uuid: c4f68cd0-69c4-4863-b96d-bc63b8276fdf +# -- +symlinked_to("${1:target}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/link_from/linkchildren b/lisp/snippets/cfengine3-mode/stdlib/bodies/link_from/linkchildren new file mode 100644 index 00000000..105d5f5b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/link_from/linkchildren @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body link_from linkchildren(tofile) +# key: linkchildren +# contributor: Jeff Carlson +# uuid: 62d1b114-6ff0-4c2a-8823-032a3c43a378 +# -- +linkchildren("${1:tofile}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/link_from/linkfrom b/lisp/snippets/cfengine3-mode/stdlib/bodies/link_from/linkfrom new file mode 100644 index 00000000..42247540 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/link_from/linkfrom @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body link_from linkfrom(source, type) +# key: linkfrom +# contributor: Jeff Carlson +# uuid: e16ee8bd-138f-4e0b-9223-048f2b829a05 +# -- +linkfrom("${1:source}", "${2:type}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/link_from/ln_s b/lisp/snippets/cfengine3-mode/stdlib/bodies/link_from/ln_s new file mode 100644 index 00000000..1cca6fb2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/link_from/ln_s @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body link_from ln_s(x) +# key: ln_s +# contributor: Jeff Carlson +# uuid: 664be5e3-d2ce-47b8-899a-0211aadf1514 +# -- +ln_s("${1:x}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/location/after b/lisp/snippets/cfengine3-mode/stdlib/bodies/location/after new file mode 100644 index 00000000..cebe59db --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/location/after @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body location after(str) +# key: after +# contributor: Jeff Carlson +# uuid: 3791cbe8-bf0d-433a-98a8-461c1dfe896e +# -- +after("${1:str}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/location/before b/lisp/snippets/cfengine3-mode/stdlib/bodies/location/before new file mode 100644 index 00000000..9749aef5 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/location/before @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body location before(str) +# key: before +# contributor: Jeff Carlson +# uuid: d170fb27-b900-4ca3-aec0-7bb7e1297dac +# -- +before("${1:str}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/location/start b/lisp/snippets/cfengine3-mode/stdlib/bodies/location/start new file mode 100644 index 00000000..1e0e17c2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/location/start @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body location start +# key: start +# contributor: Jeff Carlson +# uuid: dc53f754-eab7-43c5-acd1-d3d5ec3c3ff4 +# -- +start$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/match_value/line_match_value b/lisp/snippets/cfengine3-mode/stdlib/bodies/match_value/line_match_value new file mode 100644 index 00000000..c6b3b77a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/match_value/line_match_value @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body match_value line_match_value(line_match, extract_regex) +# key: line_match_value +# contributor: Jeff Carlson +# uuid: 2891a6d3-4f44-40bd-8c7d-37f909f56fbf +# -- +line_match_value("${1:line_match}", "${2:extract_regex}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/match_value/scan_changing_file b/lisp/snippets/cfengine3-mode/stdlib/bodies/match_value/scan_changing_file new file mode 100644 index 00000000..31f88006 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/match_value/scan_changing_file @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body match_value scan_changing_file(line) +# key: scan_changing_file +# contributor: Jeff Carlson +# uuid: 17480971-10e8-4420-91fb-5dbafb169c11 +# -- +scan_changing_file("${1:line}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/match_value/scan_log b/lisp/snippets/cfengine3-mode/stdlib/bodies/match_value/scan_log new file mode 100644 index 00000000..01444e2e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/match_value/scan_log @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body match_value scan_log(line) +# key: scan_log +# contributor: Jeff Carlson +# uuid: 2c8e4c8e-a954-4b8e-bc1a-c088fa582132 +# -- +scan_log("${1:line}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/match_value/single_value b/lisp/snippets/cfengine3-mode/stdlib/bodies/match_value/single_value new file mode 100644 index 00000000..bf8ac28f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/match_value/single_value @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body match_value single_value(regex) +# key: single_value +# contributor: Jeff Carlson +# uuid: 1be47c08-80a0-4e1d-9757-16644d1af907 +# -- +single_value("${1:regex}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/mount/nfs b/lisp/snippets/cfengine3-mode/stdlib/bodies/mount/nfs new file mode 100644 index 00000000..b6586e1d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/mount/nfs @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body mount nfs(server, source) +# key: nfs +# contributor: Jeff Carlson +# uuid: bf2e6b3a-f73e-45d7-b590-54794dbf07c9 +# -- +nfs("${1:server}", "${2:source}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/mount/nfs_p b/lisp/snippets/cfengine3-mode/stdlib/bodies/mount/nfs_p new file mode 100644 index 00000000..08ab40fa --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/mount/nfs_p @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body mount nfs_p(server, source, perm) +# key: nfs_p +# contributor: Jeff Carlson +# uuid: 3ae80e16-881e-4c7d-b04c-cd6e69438e0d +# -- +nfs_p("${1:server}", "${2:source}", "${3:perm}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/mount/unmount b/lisp/snippets/cfengine3-mode/stdlib/bodies/mount/unmount new file mode 100644 index 00000000..e613124f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/mount/unmount @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body mount unmount +# key: unmount +# contributor: Jeff Carlson +# uuid: dae2137a-5c22-41e8-9292-f34c698b54e9 +# -- +unmount$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/alpinelinux b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/alpinelinux new file mode 100644 index 00000000..f6c84f62 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/alpinelinux @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method alpinelinux +# key: alpinelinux +# contributor: Jeff Carlson +# uuid: 692166a4-493d-40f4-9bcc-cb63c9737325 +# -- +alpinelinux$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/apt b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/apt new file mode 100644 index 00000000..d85e1f52 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/apt @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method apt +# key: apt +# contributor: Jeff Carlson +# uuid: c7afbc53-4aeb-4c21-88fb-4c057fdfbb27 +# -- +apt$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/apt_get b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/apt_get new file mode 100644 index 00000000..347d72ca --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/apt_get @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method apt_get +# key: apt_get +# contributor: Jeff Carlson +# uuid: 40aaf426-74b9-4625-b73a-ae97f2d2df17 +# -- +apt_get$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/apt_get_permissive b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/apt_get_permissive new file mode 100644 index 00000000..b9717c0d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/apt_get_permissive @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method apt_get_permissive +# key: apt_get_permissive +# contributor: Jeff Carlson +# uuid: 3e584bb4-6432-475a-a028-30018710702d +# -- +apt_get_permissive$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/apt_get_release b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/apt_get_release new file mode 100644 index 00000000..368dbec3 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/apt_get_release @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method apt_get_release(release) +# key: apt_get_release +# contributor: Jeff Carlson +# uuid: 5f2aca92-3b47-415e-baa8-3a044563b68c +# -- +apt_get_release("${1:release}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/brew b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/brew new file mode 100644 index 00000000..d054b402 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/brew @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method brew(user) +# key: brew +# contributor: Jeff Carlson +# uuid: 74b0ac5f-c016-4957-a148-6129762b6266 +# -- +brew("${1:user}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/dpkg_version b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/dpkg_version new file mode 100644 index 00000000..0cd9a54d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/dpkg_version @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method dpkg_version(repo) +# key: dpkg_version +# contributor: Jeff Carlson +# uuid: 28041c3c-a4bf-48e4-8db4-4701513443de +# -- +dpkg_version("${1:repo}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/emerge b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/emerge new file mode 100644 index 00000000..2d3ad779 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/emerge @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method emerge +# key: emerge +# contributor: Jeff Carlson +# uuid: bc6f0d78-4feb-4b4d-b826-3e852aacf208 +# -- +emerge$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/freebsd b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/freebsd new file mode 100644 index 00000000..f84ff5d2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/freebsd @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method freebsd +# key: freebsd +# contributor: Jeff Carlson +# uuid: 224b47ea-ac1d-472d-b80d-377d80bac242 +# -- +freebsd$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/freebsd_portmaster b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/freebsd_portmaster new file mode 100644 index 00000000..532c4037 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/freebsd_portmaster @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method freebsd_portmaster +# key: freebsd_portmaster +# contributor: Jeff Carlson +# uuid: 85330e95-b334-41e3-bd00-436b56bf6a36 +# -- +freebsd_portmaster$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/generic b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/generic new file mode 100644 index 00000000..70f04a5a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/generic @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method generic +# key: generic +# contributor: Jeff Carlson +# uuid: 7372ff71-f373-4832-bf47-467ca1dc031f +# -- +generic$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/ips b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/ips new file mode 100644 index 00000000..0ce7fed5 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/ips @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method ips +# key: ips +# contributor: Jeff Carlson +# uuid: 4277732f-4fc9-468b-9d2d-8dd522ccbf13 +# -- +ips$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/msi_explicit b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/msi_explicit new file mode 100644 index 00000000..5b1d654e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/msi_explicit @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method msi_explicit(repo) +# key: msi_explicit +# contributor: Jeff Carlson +# uuid: 60056469-6c44-49f1-adff-1044cfaf7f2f +# -- +msi_explicit("${1:repo}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/msi_implicit b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/msi_implicit new file mode 100644 index 00000000..606860a9 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/msi_implicit @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method msi_implicit(repo) +# key: msi_implicit +# contributor: Jeff Carlson +# uuid: 80f5142f-9c7a-4dc0-9719-f62bca292a37 +# -- +msi_implicit("${1:repo}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/npm b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/npm new file mode 100644 index 00000000..14bb0554 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/npm @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method npm(dir) +# key: npm +# contributor: Jeff Carlson +# uuid: adc786fa-3901-4045-b8d7-1bc9a0b9cac6 +# -- +npm("${1:dir}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/npm_g b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/npm_g new file mode 100644 index 00000000..acb27fb4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/npm_g @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method npm_g +# key: npm_g +# contributor: Jeff Carlson +# uuid: f90452c9-a916-4790-9b15-7e9cb8864ade +# -- +npm_g$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/opencsw b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/opencsw new file mode 100644 index 00000000..5afe7939 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/opencsw @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method opencsw +# key: opencsw +# contributor: Jeff Carlson +# uuid: 3f43d9b5-f66c-417c-b8d4-3ef76903235a +# -- +opencsw$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/pacman b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/pacman new file mode 100644 index 00000000..7a7917ed --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/pacman @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method pacman +# key: pacman +# contributor: Jeff Carlson +# uuid: 425d9d6d-42c4-473e-b8b8-da422f15d617 +# -- +pacman$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/pip b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/pip new file mode 100644 index 00000000..f76afa6c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/pip @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method pip(flags) +# key: pip +# contributor: Jeff Carlson +# uuid: 99286e0d-167c-4c4e-8f7a-15795692a418 +# -- +pip("${1:flags}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/rpm_filebased b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/rpm_filebased new file mode 100644 index 00000000..80716776 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/rpm_filebased @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method rpm_filebased(path) +# key: rpm_filebased +# contributor: Jeff Carlson +# uuid: ddd79f14-08df-4abe-84e8-b3b43fdc3a4b +# -- +rpm_filebased("${1:path}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/rpm_version b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/rpm_version new file mode 100644 index 00000000..bb03a80a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/rpm_version @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method rpm_version(repo) +# key: rpm_version +# contributor: Jeff Carlson +# uuid: 15528596-f129-4fe1-b5d9-4601c756e26f +# -- +rpm_version("${1:repo}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/smartos b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/smartos new file mode 100644 index 00000000..97b28dcf --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/smartos @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method smartos +# key: smartos +# contributor: Jeff Carlson +# uuid: 8901f13c-45d1-48cf-9632-04ccfbe1ac0a +# -- +smartos$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/smartos_pkg_add b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/smartos_pkg_add new file mode 100644 index 00000000..5070f495 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/smartos_pkg_add @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method smartos_pkg_add(repo) +# key: smartos_pkg_add +# contributor: Jeff Carlson +# uuid: a03c1af7-a982-4196-b7ef-790740b2df60 +# -- +smartos_pkg_add("${1:repo}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/solaris b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/solaris new file mode 100644 index 00000000..c6b90a57 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/solaris @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method solaris(pkgname, spoolfile, adminfile) +# key: solaris +# contributor: Jeff Carlson +# uuid: 503803e2-ba3c-42bd-a754-ce53c32a3872 +# -- +solaris("${1:pkgname}", "${2:spoolfile}", "${3:adminfile}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/solaris_install b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/solaris_install new file mode 100644 index 00000000..96cbf8c0 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/solaris_install @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method solaris_install(adminfile) +# key: solaris_install +# contributor: Jeff Carlson +# uuid: 71ef13fc-6bf5-4ecb-93cc-9b84f10ce002 +# -- +solaris_install("${1:adminfile}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/windows_feature b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/windows_feature new file mode 100644 index 00000000..df78e391 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/windows_feature @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method windows_feature +# key: windows_feature +# contributor: Jeff Carlson +# uuid: dfd38c8a-6623-4d38-bab7-d2d0bbf6818e +# -- +windows_feature$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/yum b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/yum new file mode 100644 index 00000000..bb4449b8 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/yum @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method yum +# key: yum +# contributor: Jeff Carlson +# uuid: 90fb5cab-135b-45f9-aacf-d23156ec5cdb +# -- +yum$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/yum_group b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/yum_group new file mode 100644 index 00000000..69f94651 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/yum_group @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method yum_group +# key: yum_group +# contributor: Jeff Carlson +# uuid: 1484762f-cbd6-4391-8eea-012b2bbb68ea +# -- +yum_group$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/yum_rpm b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/yum_rpm new file mode 100644 index 00000000..fe821c48 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/yum_rpm @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method yum_rpm +# key: yum_rpm +# contributor: Jeff Carlson +# uuid: f0839558-5ec1-4e79-93d8-aa7f63af2955 +# -- +yum_rpm$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/yum_rpm_enable_repo b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/yum_rpm_enable_repo new file mode 100644 index 00000000..7f7e1970 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/yum_rpm_enable_repo @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method yum_rpm_enable_repo(repoid) +# key: yum_rpm_enable_repo +# contributor: Jeff Carlson +# uuid: ff336c55-ae98-475a-9dcb-7b47c17c9092 +# -- +yum_rpm_enable_repo("${1:repoid}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/yum_rpm_permissive b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/yum_rpm_permissive new file mode 100644 index 00000000..f9562e89 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/yum_rpm_permissive @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method yum_rpm_permissive +# key: yum_rpm_permissive +# contributor: Jeff Carlson +# uuid: 9de9f1a6-37f1-435e-925e-cfd13602bb65 +# -- +yum_rpm_permissive$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/zypper b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/zypper new file mode 100644 index 00000000..2a5c5c80 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_method/zypper @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_method zypper +# key: zypper +# contributor: Jeff Carlson +# uuid: f88c65a5-8266-47d5-bb1c-1636ab9900dc +# -- +zypper$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/apt_get b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/apt_get new file mode 100644 index 00000000..fdd30d47 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/apt_get @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_module apt_get +# key: apt_get +# contributor: Jeff Carlson +# uuid: 1ae1808f-8288-4360-96fa-75ca17691f2b +# -- +apt_get$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/freebsd_ports b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/freebsd_ports new file mode 100644 index 00000000..3808af58 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/freebsd_ports @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_module freebsd_ports +# key: freebsd_ports +# contributor: Jeff Carlson +# uuid: 6fb865fc-0778-4220-8d99-6dbc0bf12c0b +# -- +freebsd_ports$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/nimclient b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/nimclient new file mode 100644 index 00000000..06859a97 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/nimclient @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_module nimclient +# key: nimclient +# contributor: Jeff Carlson +# uuid: 360d8910-b10b-44ea-bffa-e42982ccbe3c +# -- +nimclient$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/pkg b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/pkg new file mode 100644 index 00000000..a70f3834 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/pkg @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_module pkg +# key: pkg +# contributor: Jeff Carlson +# uuid: e3f1892f-e9f9-4702-ae37-49353d6c1459 +# -- +pkg$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/pkgsrc b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/pkgsrc new file mode 100644 index 00000000..1bbe226e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/pkgsrc @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_module pkgsrc +# key: pkgsrc +# contributor: Jeff Carlson +# uuid: 06d8e85f-e65e-48d4-a109-304747a51fa1 +# -- +pkgsrc$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/slackpkg b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/slackpkg new file mode 100644 index 00000000..1a74d13c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/slackpkg @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_module slackpkg +# key: slackpkg +# contributor: Jeff Carlson +# uuid: 0fd651ee-6317-40cc-8a8c-6457a1f70c46 +# -- +slackpkg$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/yum b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/yum new file mode 100644 index 00000000..19ec80a6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/yum @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_module yum +# key: yum +# contributor: Jeff Carlson +# uuid: 8ca56122-6eac-4a75-b74e-f06a68ee01b5 +# -- +yum$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/zypper b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/zypper new file mode 100644 index 00000000..0696efb4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/package_module/zypper @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body package_module zypper +# key: zypper +# contributor: Jeff Carlson +# uuid: ec6ba82d-feeb-4d1e-a389-10f919d67d92 +# -- +zypper$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/password/hashed_password b/lisp/snippets/cfengine3-mode/stdlib/bodies/password/hashed_password new file mode 100644 index 00000000..39384e0c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/password/hashed_password @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body password hashed_password(hash) +# key: hashed_password +# contributor: Jeff Carlson +# uuid: c7a0b945-429c-4609-9dc0-a3f9dd283113 +# -- +hashed_password("${1:hash}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/password/plaintext_password b/lisp/snippets/cfengine3-mode/stdlib/bodies/password/plaintext_password new file mode 100644 index 00000000..41744a4f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/password/plaintext_password @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body password plaintext_password(text) +# key: plaintext_password +# contributor: Jeff Carlson +# uuid: d07a363a-f06e-450e-81d2-841bf1064516 +# -- +plaintext_password("${1:text}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/perms/m b/lisp/snippets/cfengine3-mode/stdlib/bodies/perms/m new file mode 100644 index 00000000..ea76c577 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/perms/m @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body perms m(mode) +# key: m +# contributor: Jeff Carlson +# uuid: f5b8b28f-1793-4952-afee-02f58fa8010d +# -- +m("${1:mode}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/perms/mo b/lisp/snippets/cfengine3-mode/stdlib/bodies/perms/mo new file mode 100644 index 00000000..1302a674 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/perms/mo @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body perms mo(mode, user) +# key: mo +# contributor: Jeff Carlson +# uuid: 2d068345-9255-471e-b671-d7c9aaf6e180 +# -- +mo("${1:mode}", "${2:user}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/perms/mog b/lisp/snippets/cfengine3-mode/stdlib/bodies/perms/mog new file mode 100644 index 00000000..fc021c43 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/perms/mog @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body perms mog(mode, user, group) +# key: mog +# contributor: Jeff Carlson +# uuid: c8ddfbbb-7c59-4c36-962a-63df53b6a746 +# -- +mog("${1:mode}", "${2:user}", "${3:group}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/perms/og b/lisp/snippets/cfengine3-mode/stdlib/bodies/perms/og new file mode 100644 index 00000000..0cfa79a8 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/perms/og @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body perms og(u, g) +# key: og +# contributor: Jeff Carlson +# uuid: 127ba49c-2bbd-4aa7-a45e-ea692f0d2aaf +# -- +og("${1:u}", "${2:g}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/perms/owner b/lisp/snippets/cfengine3-mode/stdlib/bodies/perms/owner new file mode 100644 index 00000000..e4c9b3b3 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/perms/owner @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body perms owner(user) +# key: owner +# contributor: Jeff Carlson +# uuid: f9734c65-5d42-4f9d-a47d-c165196661d3 +# -- +owner("${1:user}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/perms/system_owned b/lisp/snippets/cfengine3-mode/stdlib/bodies/perms/system_owned new file mode 100644 index 00000000..86d4e58c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/perms/system_owned @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body perms system_owned(mode) +# key: system_owned +# contributor: Jeff Carlson +# uuid: 73749f1a-b7e1-4700-9a6b-89ec50d6b4df +# -- +system_owned("${1:mode}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/printfile/cat b/lisp/snippets/cfengine3-mode/stdlib/bodies/printfile/cat new file mode 100644 index 00000000..10dde846 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/printfile/cat @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body printfile cat(file) +# key: cat +# contributor: Jeff Carlson +# uuid: ff52375a-c57a-4a9d-a267-55b29ddcf927 +# -- +cat("${1:file}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/printfile/head b/lisp/snippets/cfengine3-mode/stdlib/bodies/printfile/head new file mode 100644 index 00000000..eaa354d7 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/printfile/head @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body printfile head(file) +# key: head +# contributor: Jeff Carlson +# uuid: a2bf1b44-accd-4e83-8ab0-bf8e6d5b9ea9 +# -- +head("${1:file}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/printfile/head_n b/lisp/snippets/cfengine3-mode/stdlib/bodies/printfile/head_n new file mode 100644 index 00000000..b8726b37 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/printfile/head_n @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body printfile head_n(file, n) +# key: head_n +# contributor: Jeff Carlson +# uuid: 3e43e794-53ca-4292-84b9-06dd99ad5623 +# -- +head_n("${1:file}", "${2:n}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/process_count/any_count b/lisp/snippets/cfengine3-mode/stdlib/bodies/process_count/any_count new file mode 100644 index 00000000..7ca4fe8a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/process_count/any_count @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body process_count any_count(cl) +# key: any_count +# contributor: Jeff Carlson +# uuid: 89baf5a6-0842-4512-a61f-46e07599a99a +# -- +any_count("${1:cl}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/process_count/check_range b/lisp/snippets/cfengine3-mode/stdlib/bodies/process_count/check_range new file mode 100644 index 00000000..4f079eb2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/process_count/check_range @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body process_count check_range(name, lower, upper) +# key: check_range +# contributor: Jeff Carlson +# uuid: 00b87592-45f3-4c36-a52a-50a8aff8c69d +# -- +check_range("${1:name}", "${2:lower}", "${3:upper}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/process_select/by_owner b/lisp/snippets/cfengine3-mode/stdlib/bodies/process_select/by_owner new file mode 100644 index 00000000..df2383d4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/process_select/by_owner @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body process_select by_owner(u) +# key: by_owner +# contributor: Jeff Carlson +# uuid: 3d275bb4-444e-4ab8-bc27-c0ab1cce0e29 +# -- +by_owner("${1:u}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/process_select/by_pid b/lisp/snippets/cfengine3-mode/stdlib/bodies/process_select/by_pid new file mode 100644 index 00000000..172b264e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/process_select/by_pid @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body process_select by_pid(pid) +# key: by_pid +# contributor: Jeff Carlson +# uuid: 2ac09a36-65cc-472b-9571-94f635c9d5dd +# -- +by_pid("${1:pid}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/process_select/days_older_than b/lisp/snippets/cfengine3-mode/stdlib/bodies/process_select/days_older_than new file mode 100644 index 00000000..4f6048d2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/process_select/days_older_than @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body process_select days_older_than(d) +# key: days_older_than +# contributor: Jeff Carlson +# uuid: 404b25f7-4a21-49c4-b0e1-c0bd07c3ea02 +# -- +days_older_than("${1:d}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/process_select/exclude_procs b/lisp/snippets/cfengine3-mode/stdlib/bodies/process_select/exclude_procs new file mode 100644 index 00000000..1df8ecdd --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/process_select/exclude_procs @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body process_select exclude_procs(x) +# key: exclude_procs +# contributor: Jeff Carlson +# uuid: 0482548f-7d74-459c-a698-180aec06ed46 +# -- +exclude_procs("${1:x}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/rename/disable b/lisp/snippets/cfengine3-mode/stdlib/bodies/rename/disable new file mode 100644 index 00000000..fcd5680f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/rename/disable @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body rename disable +# key: disable +# contributor: Jeff Carlson +# uuid: 0534150f-78f1-455f-99b6-8560716ab6bf +# -- +disable$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/rename/rotate b/lisp/snippets/cfengine3-mode/stdlib/bodies/rename/rotate new file mode 100644 index 00000000..8e38f872 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/rename/rotate @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body rename rotate(level) +# key: rotate +# contributor: Jeff Carlson +# uuid: a5969895-6169-4559-b328-1507b93f5a88 +# -- +rotate("${1:level}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/rename/to b/lisp/snippets/cfengine3-mode/stdlib/bodies/rename/to new file mode 100644 index 00000000..b3cc7956 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/rename/to @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body rename to(file) +# key: to +# contributor: Jeff Carlson +# uuid: 8140290a-7e62-42cc-812c-64a18430ec83 +# -- +to("${1:file}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/replace_with/comment b/lisp/snippets/cfengine3-mode/stdlib/bodies/replace_with/comment new file mode 100644 index 00000000..036d9ef7 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/replace_with/comment @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body replace_with comment(c) +# key: comment +# contributor: Jeff Carlson +# uuid: 8301527f-3ca9-47d8-92fb-830529e99912 +# -- +comment("${1:c}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/replace_with/uncomment b/lisp/snippets/cfengine3-mode/stdlib/bodies/replace_with/uncomment new file mode 100644 index 00000000..06185f08 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/replace_with/uncomment @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body replace_with uncomment +# key: uncomment +# contributor: Jeff Carlson +# uuid: d37936aa-cb7d-4cf0-96fa-6aa10db7c895 +# -- +uncomment$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/replace_with/value b/lisp/snippets/cfengine3-mode/stdlib/bodies/replace_with/value new file mode 100644 index 00000000..ee23bb8c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/replace_with/value @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body replace_with value(x) +# key: value +# contributor: Jeff Carlson +# uuid: 7b2c9192-89f7-44fe-a7b0-d93ab5dff94b +# -- +value("${1:x}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/select_region/INI_section b/lisp/snippets/cfengine3-mode/stdlib/bodies/select_region/INI_section new file mode 100644 index 00000000..d0640418 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/select_region/INI_section @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body select_region INI_section(x) +# key: INI_section +# contributor: Jeff Carlson +# uuid: a74f6efe-c06e-40bb-8690-37f3c198ba64 +# -- +INI_section("${1:x}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/service_method/bootstart b/lisp/snippets/cfengine3-mode/stdlib/bodies/service_method/bootstart new file mode 100644 index 00000000..75438fe2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/service_method/bootstart @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body service_method bootstart +# key: bootstart +# contributor: Jeff Carlson +# uuid: fd455bcd-d807-4948-b3f7-64f2f3cdb1b1 +# -- +bootstart$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/service_method/force_deps b/lisp/snippets/cfengine3-mode/stdlib/bodies/service_method/force_deps new file mode 100644 index 00000000..ca32db32 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/service_method/force_deps @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body service_method force_deps +# key: force_deps +# contributor: Jeff Carlson +# uuid: 20f1a746-e33c-4082-8e42-94b67552b9e1 +# -- +force_deps$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/service_method/standard_services b/lisp/snippets/cfengine3-mode/stdlib/bodies/service_method/standard_services new file mode 100644 index 00000000..e138ab62 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/service_method/standard_services @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body service_method standard_services +# key: standard_services +# contributor: Jeff Carlson +# uuid: e721aa5b-dd9a-4b01-a143-254555c36cc1 +# -- +standard_services$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bodies/volume/min_free_space b/lisp/snippets/cfengine3-mode/stdlib/bodies/volume/min_free_space new file mode 100644 index 00000000..ea1b7422 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bodies/volume/min_free_space @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: body volume min_free_space(free) +# key: min_free_space +# contributor: Jeff Carlson +# uuid: e8458be1-acbd-44bb-8bc7-7466f9b840b1 +# -- +min_free_space("${1:free}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/autorun b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/autorun new file mode 100644 index 00000000..3c66226a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/autorun @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent autorun +# key: autorun +# contributor: Jeff Carlson +# uuid: be180b02-9777-4d81-9857-8e87814a5205 +# -- +autorun$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_cleanup_agent_reports b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_cleanup_agent_reports new file mode 100644 index 00000000..6f6a7acc --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_cleanup_agent_reports @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent cfe_internal_cleanup_agent_reports +# key: cfe_internal_cleanup_agent_reports +# contributor: Jeff Carlson +# uuid: 6be2ee0f-45fa-4361-800d-69ebedb6a0a0 +# -- +cfe_internal_cleanup_agent_reports$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_database_cleanup_consumer_status b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_database_cleanup_consumer_status new file mode 100644 index 00000000..a98ad6ac --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_database_cleanup_consumer_status @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent cfe_internal_database_cleanup_consumer_status(row_count) +# key: cfe_internal_database_cleanup_consumer_status +# contributor: Jeff Carlson +# uuid: e9e92987-e820-41d0-b5e2-4f6c83ccf746 +# -- +cfe_internal_database_cleanup_consumer_status("${1:row_count}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_database_cleanup_diagnostics b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_database_cleanup_diagnostics new file mode 100644 index 00000000..a9205a76 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_database_cleanup_diagnostics @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent cfe_internal_database_cleanup_diagnostics(settings) +# key: cfe_internal_database_cleanup_diagnostics +# contributor: Jeff Carlson +# uuid: fa841789-31f6-4a6d-ac2e-d7a21512b596 +# -- +cfe_internal_database_cleanup_diagnostics("${1:settings}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_database_cleanup_promise_log b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_database_cleanup_promise_log new file mode 100644 index 00000000..b6bb66e4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_database_cleanup_promise_log @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent cfe_internal_database_cleanup_promise_log(history_length_days) +# key: cfe_internal_database_cleanup_promise_log +# contributor: Jeff Carlson +# uuid: f6137d2a-7cc4-4426-82f1-d0c85d5bd6c6 +# -- +cfe_internal_database_cleanup_promise_log("${1:history_length_days}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_database_cleanup_reports b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_database_cleanup_reports new file mode 100644 index 00000000..50eb92c0 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_database_cleanup_reports @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent cfe_internal_database_cleanup_reports(settings) +# key: cfe_internal_database_cleanup_reports +# contributor: Jeff Carlson +# uuid: c4959929-e4fd-46da-aca7-2c044712bc06 +# -- +cfe_internal_database_cleanup_reports("${1:settings}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_database_partitioning b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_database_partitioning new file mode 100644 index 00000000..ebfe71cb --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_database_partitioning @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent cfe_internal_database_partitioning() +# key: cfe_internal_database_partitioning +# contributor: Jeff Carlson +# uuid: 645f36c5-052b-40d3-9600-fad2532a1ca3 +# -- +cfe_internal_database_partitioning($1)$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_hub_maintain b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_hub_maintain new file mode 100644 index 00000000..d0ce21c2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_hub_maintain @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent cfe_internal_hub_maintain +# key: cfe_internal_hub_maintain +# contributor: Jeff Carlson +# uuid: cfe7c1ee-4aa3-4089-8826-9748d070590f +# -- +cfe_internal_hub_maintain$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_postgresql_maintenance b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_postgresql_maintenance new file mode 100644 index 00000000..ce607967 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_postgresql_maintenance @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent cfe_internal_postgresql_maintenance +# key: cfe_internal_postgresql_maintenance +# contributor: Jeff Carlson +# uuid: 59d05017-b5a0-4034-af64-72f7000ceca6 +# -- +cfe_internal_postgresql_maintenance$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_postgresql_vacuum b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_postgresql_vacuum new file mode 100644 index 00000000..b4d816bd --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cfe_internal_postgresql_vacuum @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent cfe_internal_postgresql_vacuum +# key: cfe_internal_postgresql_vacuum +# contributor: Jeff Carlson +# uuid: 8216ddc8-5ec5-4e43-b9f0-b7eb005320cc +# -- +cfe_internal_postgresql_vacuum$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/classic_services b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/classic_services new file mode 100644 index 00000000..db34edda --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/classic_services @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent classic_services(service, state) +# key: classic_services +# contributor: Jeff Carlson +# uuid: 28ba9e3e-a32c-4659-8ce1-8f9f1a58368a +# -- +classic_services("${1:service}", "${2:state}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cmerge b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cmerge new file mode 100644 index 00000000..33855366 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cmerge @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent cmerge(name, varlist) +# key: cmerge +# contributor: Jeff Carlson +# uuid: ac45f5d5-1bbb-425e-8bcd-b186ec9ed593 +# -- +cmerge("${1:name}", "${2:varlist}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/collect_vars b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/collect_vars new file mode 100644 index 00000000..367dd185 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/collect_vars @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent collect_vars(name, tag, flatten) +# key: collect_vars +# contributor: Jeff Carlson +# uuid: 88a64637-a975-405f-91ee-428ecc3ae9f6 +# -- +collect_vars("${1:name}", "${2:tag}", "${3:flatten}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cronjob b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cronjob new file mode 100644 index 00000000..621cd9be --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/cronjob @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent cronjob(commands, user, hours, mins) +# key: cronjob +# contributor: Jeff Carlson +# uuid: fe579eac-4dc5-486e-9706-08120ae3a57c +# -- +cronjob("${1:commands}", "${2:user}", "${3:hours}", "${4:mins}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/daemonize b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/daemonize new file mode 100644 index 00000000..8e7ad04b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/daemonize @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent daemonize(command) +# key: daemonize +# contributor: Jeff Carlson +# uuid: 56c6cd42-64f5-4a57-9038-5e7c94ad1ab9 +# -- +daemonize("${1:command}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/dir_sync b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/dir_sync new file mode 100644 index 00000000..f062d01b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/dir_sync @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent dir_sync(from, to) +# key: dir_sync +# contributor: Jeff Carlson +# uuid: e8dfb8f1-5207-4d35-b126-d3a93a5d227b +# -- +dir_sync("${1:from}", "${2:to}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/event_debug_handler b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/event_debug_handler new file mode 100644 index 00000000..9ff532d8 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/event_debug_handler @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent event_debug_handler(events) +# key: event_debug_handler +# contributor: Jeff Carlson +# uuid: 63f68003-9637-4aa7-94aa-99bf4b43be01 +# -- +event_debug_handler("${1:events}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/event_handle b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/event_handle new file mode 100644 index 00000000..a21a98f2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/event_handle @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent event_handle(prefix, type) +# key: event_handle +# contributor: Jeff Carlson +# uuid: 2b3a18b4-7b7a-4ece-98c3-7600ead8510c +# -- +event_handle("${1:prefix}", "${2:type}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/event_install_handler b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/event_install_handler new file mode 100644 index 00000000..d0fb19e2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/event_install_handler @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent event_install_handler(events) +# key: event_install_handler +# contributor: Jeff Carlson +# uuid: fd7b13bf-f3db-457a-9deb-a34de1d61b7f +# -- +event_install_handler("${1:events}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/event_register b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/event_register new file mode 100644 index 00000000..58668fc7 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/event_register @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent event_register(prefix, type, name, persistence, metadata) +# key: event_register +# contributor: Jeff Carlson +# uuid: 6660f1a0-a879-4393-b51f-e27ae3bb3741 +# -- +event_register("${1:prefix}", "${2:type}", "${3:name}", "${4:persistence}", "${5:metadata}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/event_usage_example b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/event_usage_example new file mode 100644 index 00000000..67fd4541 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/event_usage_example @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent event_usage_example +# key: event_usage_example +# contributor: Jeff Carlson +# uuid: a4577785-48f2-43d1-b997-aa97140b9201 +# -- +event_usage_example$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/feature b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/feature new file mode 100644 index 00000000..2b47c557 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/feature @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent feature +# key: feature +# contributor: Jeff Carlson +# uuid: 6e38a1f8-4835-4f17-b6fd-858c2f715f3c +# -- +feature$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/feature_test b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/feature_test new file mode 100644 index 00000000..c7a251e2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/feature_test @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent feature_test +# key: feature_test +# contributor: Jeff Carlson +# uuid: 6ec128e6-e2f2-4099-a802-89dc58928fde +# -- +feature_test$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_copy b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_copy new file mode 100644 index 00000000..209cacde --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_copy @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent file_copy(from, to) +# key: file_copy +# contributor: Jeff Carlson +# uuid: 0de7db8c-d518-49c6-b66d-95978d1a80a8 +# -- +file_copy("${1:from}", "${2:to}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_empty b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_empty new file mode 100644 index 00000000..06a651f0 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_empty @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent file_empty(file) +# key: file_empty +# contributor: Jeff Carlson +# uuid: 68023fee-a8e2-4736-87f4-f7f62b02622c +# -- +file_empty("${1:file}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_hardlink b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_hardlink new file mode 100644 index 00000000..35b6f174 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_hardlink @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent file_hardlink(target, link) +# key: file_hardlink +# contributor: Jeff Carlson +# uuid: 145e3705-fa7b-42be-8c48-87521442aacc +# -- +file_hardlink("${1:target}", "${2:link}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_link b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_link new file mode 100644 index 00000000..6b828cd4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_link @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent file_link(target, link) +# key: file_link +# contributor: Jeff Carlson +# uuid: 275056c4-30c4-4771-9ad2-7fd636425b4b +# -- +file_link("${1:target}", "${2:link}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_make b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_make new file mode 100644 index 00000000..02f1b88b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_make @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent file_make(file, str) +# key: file_make +# contributor: Jeff Carlson +# uuid: b89e7547-94a0-4f91-9c4b-875475dd5a89 +# -- +file_make("${1:file}", "${2:str}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_make_mog b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_make_mog new file mode 100644 index 00000000..dea801ff --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_make_mog @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent file_make_mog(file, str, mode, owner, group) +# key: file_make_mog +# contributor: Jeff Carlson +# uuid: 007baef0-7d86-40b4-acf4-8f2f58bf565e +# -- +file_make_mog("${1:file}", "${2:str}", "${3:mode}", "${4:owner}", "${5:group}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_make_mustache b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_make_mustache new file mode 100644 index 00000000..101587b9 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_make_mustache @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent file_make_mustache(file, template, data) +# key: file_make_mustache +# contributor: Jeff Carlson +# uuid: 587b6760-9044-4ade-ae27-d8486797c9e3 +# -- +file_make_mustache("${1:file}", "${2:template}", "${3:data}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_make_mustache_with_perms b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_make_mustache_with_perms new file mode 100644 index 00000000..d4ae69df --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_make_mustache_with_perms @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent file_make_mustache_with_perms(file, template, data, mode, owner, group) +# key: file_make_mustache_with_perms +# contributor: Jeff Carlson +# uuid: 1a37c990-4f95-47ac-abdd-74a52c465984 +# -- +file_make_mustache_with_perms("${1:file}", "${2:template}", "${3:data}", "${4:mode}", "${5:owner}", "${6:group}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_mustache b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_mustache new file mode 100644 index 00000000..a2ce1d65 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_mustache @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent file_mustache(mustache_file, json_file, target_file) +# key: file_mustache +# contributor: Jeff Carlson +# uuid: a9a7c50c-42f7-4fe1-b8ed-ac86aa109b71 +# -- +file_mustache("${1:mustache_file}", "${2:json_file}", "${3:target_file}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_mustache_jsonstring b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_mustache_jsonstring new file mode 100644 index 00000000..bdfd3ded --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_mustache_jsonstring @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent file_mustache_jsonstring(mustache_file, json_string, target_file) +# key: file_mustache_jsonstring +# contributor: Jeff Carlson +# uuid: 1b8646b1-6e55-4422-a4f1-396cab695dff +# -- +file_mustache_jsonstring("${1:mustache_file}", "${2:json_string}", "${3:target_file}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_tidy b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_tidy new file mode 100644 index 00000000..52a2cae6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/file_tidy @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent file_tidy(file) +# key: file_tidy +# contributor: Jeff Carlson +# uuid: fb06b9af-0dfb-44ae-90b8-cd24b382efa6 +# -- +file_tidy("${1:file}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/fileinfo b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/fileinfo new file mode 100644 index 00000000..b57164bf --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/fileinfo @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent fileinfo(f) +# key: fileinfo +# contributor: Jeff Carlson +# uuid: c351ce8b-2f52-4276-9d97-fe3ce298198d +# -- +fileinfo("${1:f}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git new file mode 100644 index 00000000..bc5730cd --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent git(repo_path, subcmd, args) +# key: git +# contributor: Jeff Carlson +# uuid: a2c9182f-a579-4bd4-b590-78e5d42329f6 +# -- +git("${1:repo_path}", "${2:subcmd}", "${3:args}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_add b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_add new file mode 100644 index 00000000..21717cfe --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_add @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent git_add(repo_path, file) +# key: git_add +# contributor: Jeff Carlson +# uuid: 2f2b55b8-be82-4adc-98c5-c44330d43f50 +# -- +git_add("${1:repo_path}", "${2:file}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_checkout b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_checkout new file mode 100644 index 00000000..e08168fa --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_checkout @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent git_checkout(repo_path, branch) +# key: git_checkout +# contributor: Jeff Carlson +# uuid: 185d20ec-2294-422b-b7f4-2b03ac5be07a +# -- +git_checkout("${1:repo_path}", "${2:branch}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_checkout_new_branch b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_checkout_new_branch new file mode 100644 index 00000000..348504a2 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_checkout_new_branch @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent git_checkout_new_branch(repo_path, new_branch) +# key: git_checkout_new_branch +# contributor: Jeff Carlson +# uuid: b2b407f9-8994-4aba-9350-32e199f1021e +# -- +git_checkout_new_branch("${1:repo_path}", "${2:new_branch}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_clean b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_clean new file mode 100644 index 00000000..43c9042a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_clean @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent git_clean(repo_path) +# key: git_clean +# contributor: Jeff Carlson +# uuid: 7ac12416-21ae-415e-8efe-d30d244b5aa4 +# -- +git_clean("${1:repo_path}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_commit b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_commit new file mode 100644 index 00000000..efa619fd --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_commit @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent git_commit(repo_path, message) +# key: git_commit +# contributor: Jeff Carlson +# uuid: 7f22087b-4636-4735-96e9-58cd1b55d4ef +# -- +git_commit("${1:repo_path}", "${2:message}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_init b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_init new file mode 100644 index 00000000..b4717354 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_init @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent git_init(repo_path) +# key: git_init +# contributor: Jeff Carlson +# uuid: 5c82bbe0-015c-42ab-be7d-b2f71cf3f141 +# -- +git_init("${1:repo_path}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_stash b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_stash new file mode 100644 index 00000000..891f708f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_stash @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent git_stash(repo_path, stash_name) +# key: git_stash +# contributor: Jeff Carlson +# uuid: 2fa57e4a-93f9-45c9-b8d2-0c0563ed2f3f +# -- +git_stash("${1:repo_path}", "${2:stash_name}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_stash_and_clean b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_stash_and_clean new file mode 100644 index 00000000..d3bf7fcd --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/git_stash_and_clean @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent git_stash_and_clean(repo_path) +# key: git_stash_and_clean +# contributor: Jeff Carlson +# uuid: 03e94c90-412a-4c54-b2f3-3b4ac7007a42 +# -- +git_stash_and_clean("${1:repo_path}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/logrotate b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/logrotate new file mode 100644 index 00000000..b1de001b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/logrotate @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent logrotate(log_files, max_size, rotate_levels) +# key: logrotate +# contributor: Jeff Carlson +# uuid: e7d61c24-d1ff-4e3d-a337-39fe1c7ba81f +# -- +logrotate("${1:log_files}", "${2:max_size}", "${3:rotate_levels}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_absent b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_absent new file mode 100644 index 00000000..d5260377 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_absent @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent package_absent(package) +# key: package_absent +# contributor: Jeff Carlson +# uuid: a4e8e8b8-ddd6-40ae-8680-620f8737d8d8 +# -- +package_absent("${1:package}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_latest b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_latest new file mode 100644 index 00000000..2f702bfa --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_latest @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent package_latest(package) +# key: package_latest +# contributor: Jeff Carlson +# uuid: e779cfa1-dd81-4f1d-bf0a-331a231e3beb +# -- +package_latest("${1:package}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_present b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_present new file mode 100644 index 00000000..2b013b26 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_present @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent package_present(package) +# key: package_present +# contributor: Jeff Carlson +# uuid: 4abc8a99-e8bf-4b8f-99b6-cb33473d06d1 +# -- +package_present("${1:package}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_specific b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_specific new file mode 100644 index 00000000..3c3732a0 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_specific @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent package_specific(package_name, desired, package_version, package_arch) +# key: package_specific +# contributor: Jeff Carlson +# uuid: bc97c7a6-7c11-4a45-bd41-cb30fd04c19d +# -- +package_specific("${1:package_name}", "${2:desired}", "${3:package_version}", "${4:package_arch}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_specific_absent b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_specific_absent new file mode 100644 index 00000000..a088a0a5 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_specific_absent @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent package_specific_absent(packageorfile, package_version, package_arch) +# key: package_specific_absent +# contributor: Jeff Carlson +# uuid: 9c28e7b3-e042-4d3a-b0e2-33d327e08c25 +# -- +package_specific_absent("${1:packageorfile}", "${2:package_version}", "${3:package_arch}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_specific_latest b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_specific_latest new file mode 100644 index 00000000..4f4b9187 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_specific_latest @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent package_specific_latest(packageorfile, package_version, package_arch) +# key: package_specific_latest +# contributor: Jeff Carlson +# uuid: 00fa69a4-abc9-4eb5-99fd-84b1c195de85 +# -- +package_specific_latest("${1:packageorfile}", "${2:package_version}", "${3:package_arch}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_specific_present b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_specific_present new file mode 100644 index 00000000..fa95072d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/package_specific_present @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent package_specific_present(packageorfile, package_version, package_arch) +# key: package_specific_present +# contributor: Jeff Carlson +# uuid: a7b83f6f-b7d1-4587-8b9d-4acb11011c04 +# -- +package_specific_present("${1:packageorfile}", "${2:package_version}", "${3:package_arch}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/probabilistic_usebundle b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/probabilistic_usebundle new file mode 100644 index 00000000..e70fa058 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/probabilistic_usebundle @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent probabilistic_usebundle(probability, bundlename) +# key: probabilistic_usebundle +# contributor: Jeff Carlson +# uuid: bb55a76f-cb93-4f7d-8686-80ef63921b2e +# -- +probabilistic_usebundle("${1:probability}", "${2:bundlename}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/process_kill b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/process_kill new file mode 100644 index 00000000..1a2c965e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/process_kill @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent process_kill(name) +# key: process_kill +# contributor: Jeff Carlson +# uuid: e253037e-6448-4cab-8e22-044ff1a7ebf6 +# -- +process_kill("${1:name}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/prunedir b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/prunedir new file mode 100644 index 00000000..1389c5d7 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/prunedir @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent prunedir(dir, max_days) +# key: prunedir +# contributor: Jeff Carlson +# uuid: 3ec93539-c977-4dbe-8a01-0d105e93363d +# -- +prunedir("${1:dir}", "${2:max_days}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/prunetree b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/prunetree new file mode 100644 index 00000000..963030c9 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/prunetree @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent prunetree(dir, depth, max_days) +# key: prunetree +# contributor: Jeff Carlson +# uuid: ea1f780a-78ad-4412-9721-8512116a827e +# -- +prunetree("${1:dir}", "${2:depth}", "${3:max_days}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/rm_rf b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/rm_rf new file mode 100644 index 00000000..cf57b21b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/rm_rf @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent rm_rf(name) +# key: rm_rf +# contributor: Jeff Carlson +# uuid: bb8fcd23-16df-4064-b08d-8288fa876747 +# -- +rm_rf("${1:name}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/rm_rf_depth b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/rm_rf_depth new file mode 100644 index 00000000..01dc6363 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/rm_rf_depth @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent rm_rf_depth(name, depth) +# key: rm_rf_depth +# contributor: Jeff Carlson +# uuid: 70263048-bd7f-4964-9c0b-7178c8c0e944 +# -- +rm_rf_depth("${1:name}", "${2:depth}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/run_ifdefined b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/run_ifdefined new file mode 100644 index 00000000..e4cad80f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/run_ifdefined @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent run_ifdefined(namespace, mybundle) +# key: run_ifdefined +# contributor: Jeff Carlson +# uuid: 572e09f7-016e-4db2-a548-1c4cfd0777b4 +# -- +run_ifdefined("${1:namespace}", "${2:mybundle}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/standard_services b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/standard_services new file mode 100644 index 00000000..28c273fd --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/standard_services @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent standard_services(service, state) +# key: standard_services +# contributor: Jeff Carlson +# uuid: e095816c-8f93-4c8d-9c60-10147edd2833 +# -- +standard_services("${1:service}", "${2:state}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_generic_report b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_generic_report new file mode 100644 index 00000000..8b2b83fe --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_generic_report @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent testing_generic_report(format, outfile) +# key: testing_generic_report +# contributor: Jeff Carlson +# uuid: 6e88cddc-b15d-4953-be91-7819d7ff9818 +# -- +testing_generic_report("${1:format}", "${2:outfile}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_junit_report b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_junit_report new file mode 100644 index 00000000..63e1da20 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_junit_report @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent testing_junit_report(outfile) +# key: testing_junit_report +# contributor: Jeff Carlson +# uuid: 8ac8090a-2060-4b03-b038-2e5e780779f8 +# -- +testing_junit_report("${1:outfile}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_ok b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_ok new file mode 100644 index 00000000..36e9e60a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_ok @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent testing_ok(classname, message, format) +# key: testing_ok +# contributor: Jeff Carlson +# uuid: da162ca4-e118-4120-b372-0ee92b4766c4 +# -- +testing_ok("${1:classname}", "${2:message}", "${3:format}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_ok_if b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_ok_if new file mode 100644 index 00000000..873e68b5 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_ok_if @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent testing_ok_if(classname, message, error, trace, format) +# key: testing_ok_if +# contributor: Jeff Carlson +# uuid: 22529f91-ddfe-45ad-8f07-893338e6901e +# -- +testing_ok_if("${1:classname}", "${2:message}", "${3:error}", "${4:trace}", "${5:format}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_skip b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_skip new file mode 100644 index 00000000..f66c38da --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_skip @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent testing_skip(classname, message, format) +# key: testing_skip +# contributor: Jeff Carlson +# uuid: 6da8dae1-331d-4022-a7d6-fa9db1598fa5 +# -- +testing_skip("${1:classname}", "${2:message}", "${3:format}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_tap_bailout b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_tap_bailout new file mode 100644 index 00000000..1dc6424d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_tap_bailout @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent testing_tap_bailout(reason) +# key: testing_tap_bailout +# contributor: Jeff Carlson +# uuid: b8acac62-23a3-4768-a718-d96968c6ca59 +# -- +testing_tap_bailout("${1:reason}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_tap_report b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_tap_report new file mode 100644 index 00000000..d2e62a4e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_tap_report @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent testing_tap_report(outfile) +# key: testing_tap_report +# contributor: Jeff Carlson +# uuid: 3c477531-2c4a-4b61-8b49-c4e048ba3baf +# -- +testing_tap_report("${1:outfile}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_todo b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_todo new file mode 100644 index 00000000..8e3e81ab --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_todo @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent testing_todo(classname, message, format) +# key: testing_todo +# contributor: Jeff Carlson +# uuid: 428c2de9-eeb3-4b17-a118-ff10d5069bf8 +# -- +testing_todo("${1:classname}", "${2:message}", "${3:format}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_usage_example b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_usage_example new file mode 100644 index 00000000..f7dcd5a4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/testing_usage_example @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent testing_usage_example +# key: testing_usage_example +# contributor: Jeff Carlson +# uuid: e1a9115c-e85c-4696-91de-4602ecc430f9 +# -- +testing_usage_example$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/url_ping b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/url_ping new file mode 100644 index 00000000..ea9dbad7 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/agent/url_ping @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle agent url_ping(host, method, port, uri) +# key: url_ping +# contributor: Jeff Carlson +# uuid: cf794b2e-cf79-417a-9311-745456ce7349 +# -- +url_ping("${1:host}", "${2:method}", "${3:port}", "${4:uri}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/common/bundles_common b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/bundles_common new file mode 100644 index 00000000..a5f9d7a6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/bundles_common @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle common bundles_common +# key: bundles_common +# contributor: Jeff Carlson +# uuid: f1f8ab56-a2eb-4f7b-8cff-7ee65e2ef945 +# -- +bundles_common$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/common/cfe_internal_common b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/cfe_internal_common new file mode 100644 index 00000000..56414f6b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/cfe_internal_common @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle common cfe_internal_common +# key: cfe_internal_common +# contributor: Jeff Carlson +# uuid: f93639bb-305e-492b-9f35-623e92da41a3 +# -- +cfe_internal_common$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/common/cfe_internal_hub_common b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/cfe_internal_hub_common new file mode 100644 index 00000000..9e015172 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/cfe_internal_hub_common @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle common cfe_internal_hub_common +# key: cfe_internal_hub_common +# contributor: Jeff Carlson +# uuid: 8f0ff4ae-8bf0-4f06-a519-1524faa2b4ad +# -- +cfe_internal_hub_common$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/common/cfengine_enterprise_hub_ha b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/cfengine_enterprise_hub_ha new file mode 100644 index 00000000..0f58405a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/cfengine_enterprise_hub_ha @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle common cfengine_enterprise_hub_ha +# key: cfengine_enterprise_hub_ha +# contributor: Jeff Carlson +# uuid: 7e02ed0b-9faa-4334-af0f-c31551c6615f +# -- +cfengine_enterprise_hub_ha$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/common/common_knowledge b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/common_knowledge new file mode 100644 index 00000000..4e8f465b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/common_knowledge @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle common common_knowledge +# key: common_knowledge +# contributor: Jeff Carlson +# uuid: 2155ae0c-57e1-4ef7-871b-08f7153249d4 +# -- +common_knowledge$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/common/darwin_knowledge b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/darwin_knowledge new file mode 100644 index 00000000..96aa0eb6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/darwin_knowledge @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle common darwin_knowledge +# key: darwin_knowledge +# contributor: Jeff Carlson +# uuid: fba3e8cd-0c04-48a0-8ba1-126d3cc66f3a +# -- +darwin_knowledge$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/common/debian_knowledge b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/debian_knowledge new file mode 100644 index 00000000..8e0332fb --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/debian_knowledge @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle common debian_knowledge +# key: debian_knowledge +# contributor: Jeff Carlson +# uuid: 12a347bc-a9a7-4091-9f7f-17eeeac8e766 +# -- +debian_knowledge$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/common/files_common b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/files_common new file mode 100644 index 00000000..e4270a83 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/files_common @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle common files_common +# key: files_common +# contributor: Jeff Carlson +# uuid: 07ee125b-ddb3-4aea-8d39-cf8d3faded0c +# -- +files_common$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/common/npm_knowledge b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/npm_knowledge new file mode 100644 index 00000000..c75db9cf --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/npm_knowledge @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle common npm_knowledge +# key: npm_knowledge +# contributor: Jeff Carlson +# uuid: caf53073-7079-4440-9e8e-ef96a2d40818 +# -- +npm_knowledge$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/common/package_module_knowledge b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/package_module_knowledge new file mode 100644 index 00000000..bcfa7da9 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/package_module_knowledge @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle common package_module_knowledge +# key: package_module_knowledge +# contributor: Jeff Carlson +# uuid: 97224079-77d0-4a69-8acf-82941839247d +# -- +package_module_knowledge$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/common/packages_common b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/packages_common new file mode 100644 index 00000000..b0c23e26 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/packages_common @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle common packages_common +# key: packages_common +# contributor: Jeff Carlson +# uuid: eb4bc8bf-7212-466a-8a42-4e72d4b6ea36 +# -- +packages_common$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/common/paths b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/paths new file mode 100644 index 00000000..319853f4 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/paths @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle common paths +# key: paths +# contributor: Jeff Carlson +# uuid: 7a87779f-876a-472a-88d7-20a8bc87a7e2 +# -- +paths$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/common/pip_knowledge b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/pip_knowledge new file mode 100644 index 00000000..6a94e1a6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/pip_knowledge @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle common pip_knowledge +# key: pip_knowledge +# contributor: Jeff Carlson +# uuid: b181b6a3-2632-4809-867f-a91e60bb16f7 +# -- +pip_knowledge$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/common/redhat_knowledge b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/redhat_knowledge new file mode 100644 index 00000000..ee76baab --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/redhat_knowledge @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle common redhat_knowledge +# key: redhat_knowledge +# contributor: Jeff Carlson +# uuid: 8d9cfedd-2af0-4e02-9656-88102b7f1ea7 +# -- +redhat_knowledge$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/common/rpm_knowledge b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/rpm_knowledge new file mode 100644 index 00000000..3917a666 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/rpm_knowledge @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle common rpm_knowledge +# key: rpm_knowledge +# contributor: Jeff Carlson +# uuid: 20067685-4e6e-47c9-b638-b7b0cac95846 +# -- +rpm_knowledge$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/common/services_common b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/services_common new file mode 100644 index 00000000..82c04a5b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/services_common @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle common services_common +# key: services_common +# contributor: Jeff Carlson +# uuid: 8d9dd363-b0bd-4af4-85b6-8de5ea773fb7 +# -- +services_common$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/common/solaris_knowledge b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/solaris_knowledge new file mode 100644 index 00000000..f84cd295 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/solaris_knowledge @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle common solaris_knowledge +# key: solaris_knowledge +# contributor: Jeff Carlson +# uuid: effcb4d5-d01a-4e48-8d8b-4ae4a495432e +# -- +solaris_knowledge$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/common/stdlib_common b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/stdlib_common new file mode 100644 index 00000000..a2b6e24c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/stdlib_common @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle common stdlib_common +# key: stdlib_common +# contributor: Jeff Carlson +# uuid: 7597342d-b7cf-4c19-8a6f-80d0415ef7c9 +# -- +stdlib_common$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/common/suse_knowledge b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/suse_knowledge new file mode 100644 index 00000000..501e6f89 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/suse_knowledge @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle common suse_knowledge +# key: suse_knowledge +# contributor: Jeff Carlson +# uuid: f16bea11-7490-4e66-b15e-4fbc9b7ec486 +# -- +suse_knowledge$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/common/vcs_common b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/vcs_common new file mode 100644 index 00000000..cfc6c670 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/common/vcs_common @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle common vcs_common +# key: vcs_common +# contributor: Jeff Carlson +# uuid: b59f1d97-7906-4d25-905e-a60ff07222e3 +# -- +vcs_common$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/append_groups_starting b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/append_groups_starting new file mode 100644 index 00000000..71e6e998 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/append_groups_starting @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line append_groups_starting(v) +# key: append_groups_starting +# contributor: Jeff Carlson +# uuid: a7cde411-831d-4034-9a65-224876295374 +# -- +append_groups_starting("${1:v}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/append_if_no_line b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/append_if_no_line new file mode 100644 index 00000000..f6113aa3 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/append_if_no_line @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line append_if_no_line(lines) +# key: append_if_no_line +# contributor: Jeff Carlson +# uuid: 5345b9cf-9e9f-4145-b80d-6ad0623bc909 +# -- +append_if_no_line("${1:lines}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/append_if_no_lines b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/append_if_no_lines new file mode 100644 index 00000000..b8ba3f40 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/append_if_no_lines @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line append_if_no_lines(lines) +# key: append_if_no_lines +# contributor: Jeff Carlson +# uuid: 1df8bd8d-f61b-40f6-a536-ac223304746e +# -- +append_if_no_lines("${1:lines}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/append_to_line_end b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/append_to_line_end new file mode 100644 index 00000000..8309d674 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/append_to_line_end @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line append_to_line_end(start, end) +# key: append_to_line_end +# contributor: Jeff Carlson +# uuid: dfefa5a8-022e-42d5-8dcc-2320493eb263 +# -- +append_to_line_end("${1:start}", "${2:end}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/append_user_field b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/append_user_field new file mode 100644 index 00000000..82f8307b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/append_user_field @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line append_user_field(group, field, allusers) +# key: append_user_field +# contributor: Jeff Carlson +# uuid: cd3ec880-565f-4132-bea6-4dc0f51ae75b +# -- +append_user_field("${1:group}", "${2:field}", "${3:allusers}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/append_users_starting b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/append_users_starting new file mode 100644 index 00000000..822f75ce --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/append_users_starting @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line append_users_starting(v) +# key: append_users_starting +# contributor: Jeff Carlson +# uuid: aa3dfe7a-3798-403c-8fcc-b5ab31e30386 +# -- +append_users_starting("${1:v}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/comment_lines_containing b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/comment_lines_containing new file mode 100644 index 00000000..98b0ba0e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/comment_lines_containing @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line comment_lines_containing(regex, comment) +# key: comment_lines_containing +# contributor: Jeff Carlson +# uuid: 97b92a04-1b0f-40d2-b4f2-e1d1acfcf6b5 +# -- +comment_lines_containing("${1:regex}", "${2:comment}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/comment_lines_matching b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/comment_lines_matching new file mode 100644 index 00000000..10edeff6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/comment_lines_matching @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line comment_lines_matching(regex, comment) +# key: comment_lines_matching +# contributor: Jeff Carlson +# uuid: c24c8c7d-15d5-411c-a674-209b872e4ff4 +# -- +comment_lines_matching("${1:regex}", "${2:comment}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/contains_literal_string b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/contains_literal_string new file mode 100644 index 00000000..cdf5229c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/contains_literal_string @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line contains_literal_string(string) +# key: contains_literal_string +# contributor: Jeff Carlson +# uuid: 3f96da4a-9a45-4637-afea-107f7561235d +# -- +contains_literal_string("${1:string}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/converge b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/converge new file mode 100644 index 00000000..a1e33b1f --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/converge @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line converge(marker, lines) +# key: converge +# contributor: Jeff Carlson +# uuid: 0a4e4292-da71-4ae4-8b11-f99da824afc6 +# -- +converge("${1:marker}", "${2:lines}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/create_solaris_admin_file b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/create_solaris_admin_file new file mode 100644 index 00000000..78422bf6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/create_solaris_admin_file @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line create_solaris_admin_file +# key: create_solaris_admin_file +# contributor: Jeff Carlson +# uuid: 318ef6dc-a8a5-486f-a7e1-4e31e941f700 +# -- +create_solaris_admin_file$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/delete_lines_matching b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/delete_lines_matching new file mode 100644 index 00000000..a15d6a4e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/delete_lines_matching @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line delete_lines_matching(regex) +# key: delete_lines_matching +# contributor: Jeff Carlson +# uuid: b63de73d-6406-455d-a22e-0d4c6199690c +# -- +delete_lines_matching("${1:regex}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/expand_template b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/expand_template new file mode 100644 index 00000000..e144df54 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/expand_template @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line expand_template(templatefile) +# key: expand_template +# contributor: Jeff Carlson +# uuid: d5923af3-5a7b-4bca-95b8-58481cbb9d97 +# -- +expand_template("${1:templatefile}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/fstab_option_editor b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/fstab_option_editor new file mode 100644 index 00000000..e0be3e3e --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/fstab_option_editor @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line fstab_option_editor(method, mount, option) +# key: fstab_option_editor +# contributor: Jeff Carlson +# uuid: 79560418-18fd-40ac-9b20-9f4e6947ac81 +# -- +fstab_option_editor("${1:method}", "${2:mount}", "${3:option}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/insert_before_if_no_line b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/insert_before_if_no_line new file mode 100644 index 00000000..d398dfca --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/insert_before_if_no_line @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line insert_before_if_no_line(before, string) +# key: insert_before_if_no_line +# contributor: Jeff Carlson +# uuid: 36870f94-f421-490b-9bad-a29a2e7c8e35 +# -- +insert_before_if_no_line("${1:before}", "${2:string}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/insert_file b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/insert_file new file mode 100644 index 00000000..1a48ff41 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/insert_file @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line insert_file(templatefile) +# key: insert_file +# contributor: Jeff Carlson +# uuid: d5833db4-d702-49ad-be57-37e3e8f822c7 +# -- +insert_file("${1:templatefile}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/insert_ini_section b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/insert_ini_section new file mode 100644 index 00000000..27b86433 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/insert_ini_section @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line insert_ini_section(name, config) +# key: insert_ini_section +# contributor: Jeff Carlson +# uuid: 1c07f085-d600-4b1d-8085-92ec1bb4ba97 +# -- +insert_ini_section("${1:name}", "${2:config}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/insert_lines b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/insert_lines new file mode 100644 index 00000000..b8abcfd9 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/insert_lines @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line insert_lines(lines) +# key: insert_lines +# contributor: Jeff Carlson +# uuid: 2f2663df-13e6-4cda-9af0-3f79fc9305c9 +# -- +insert_lines("${1:lines}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/lines_present b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/lines_present new file mode 100644 index 00000000..fc76da09 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/lines_present @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line lines_present(lines) +# key: lines_present +# contributor: Jeff Carlson +# uuid: 1e42ed11-3b23-4d08-b22c-78c89c0ddc2e +# -- +lines_present("${1:lines}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/maintain_key_values b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/maintain_key_values new file mode 100644 index 00000000..dab1f630 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/maintain_key_values @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line maintain_key_values(v, sep) +# key: maintain_key_values +# contributor: Jeff Carlson +# uuid: df9d8782-502b-4865-977a-8f84426befaa +# -- +maintain_key_values("${1:v}", "${2:sep}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/manage_variable_values_ini b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/manage_variable_values_ini new file mode 100644 index 00000000..cdc35c3a --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/manage_variable_values_ini @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line manage_variable_values_ini(tab, sectionname) +# key: manage_variable_values_ini +# contributor: Jeff Carlson +# uuid: ad66b356-66f1-4342-b362-2b6c2a7e5979 +# -- +manage_variable_values_ini("${1:tab}", "${2:sectionname}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/prepend_if_no_line b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/prepend_if_no_line new file mode 100644 index 00000000..8587c310 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/prepend_if_no_line @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line prepend_if_no_line(string) +# key: prepend_if_no_line +# contributor: Jeff Carlson +# uuid: ffec4911-a197-4483-9e97-5d5727a533f0 +# -- +prepend_if_no_line("${1:string}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/regex_replace b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/regex_replace new file mode 100644 index 00000000..d64dcffb --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/regex_replace @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line regex_replace(find, replace) +# key: regex_replace +# contributor: Jeff Carlson +# uuid: ccad2a6d-65c4-4ece-bb7a-7408727f8a2f +# -- +regex_replace("${1:find}", "${2:replace}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/replace_line_end b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/replace_line_end new file mode 100644 index 00000000..10128385 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/replace_line_end @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line replace_line_end(start, end) +# key: replace_line_end +# contributor: Jeff Carlson +# uuid: 6315558e-6947-4912-884f-a351427b6acc +# -- +replace_line_end("${1:start}", "${2:end}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/replace_or_add b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/replace_or_add new file mode 100644 index 00000000..f2a9b55d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/replace_or_add @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line replace_or_add(pattern, line) +# key: replace_or_add +# contributor: Jeff Carlson +# uuid: d9a08817-c818-4940-ac5d-624e605df2f9 +# -- +replace_or_add("${1:pattern}", "${2:line}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/resolvconf b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/resolvconf new file mode 100644 index 00000000..d3172f0c --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/resolvconf @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line resolvconf(search, list) +# key: resolvconf +# contributor: Jeff Carlson +# uuid: 34c21dbd-0c83-46bf-8cc4-fa2ecb10a6fa +# -- +resolvconf("${1:search}", "${2:list}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/resolvconf_o b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/resolvconf_o new file mode 100644 index 00000000..d277ed61 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/resolvconf_o @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line resolvconf_o(search, list, options) +# key: resolvconf_o +# contributor: Jeff Carlson +# uuid: 64572565-cd97-4bad-a1b7-9c3ede409909 +# -- +resolvconf_o("${1:search}", "${2:list}", "${3:options}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_colon_field b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_colon_field new file mode 100644 index 00000000..7470c2f0 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_colon_field @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line set_colon_field(key, field, val) +# key: set_colon_field +# contributor: Jeff Carlson +# uuid: f9ed41d4-7bd9-4c43-a8c9-ebbcff701b48 +# -- +set_colon_field("${1:key}", "${2:field}", "${3:val}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_config_values b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_config_values new file mode 100644 index 00000000..e81936b6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_config_values @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line set_config_values(v) +# key: set_config_values +# contributor: Jeff Carlson +# uuid: c5fedf0b-d910-4619-8c28-25fe0dd249f7 +# -- +set_config_values("${1:v}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_config_values_matching b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_config_values_matching new file mode 100644 index 00000000..827f7cf9 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_config_values_matching @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line set_config_values_matching(v, pat) +# key: set_config_values_matching +# contributor: Jeff Carlson +# uuid: de85db88-6dce-48fc-8f01-8bf8dc0d4ca3 +# -- +set_config_values_matching("${1:v}", "${2:pat}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_line_based b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_line_based new file mode 100644 index 00000000..34e43a76 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_line_based @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line set_line_based(v, sep, bp, kp, cp) +# key: set_line_based +# contributor: Jeff Carlson +# uuid: 88bc8b2c-cd40-47b1-8f80-4dc3425e7a88 +# -- +set_line_based("${1:v}", "${2:sep}", "${3:bp}", "${4:kp}", "${5:cp}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_quoted_values b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_quoted_values new file mode 100644 index 00000000..7e2e871b --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_quoted_values @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line set_quoted_values(v) +# key: set_quoted_values +# contributor: Jeff Carlson +# uuid: 1f5a6c46-7d0f-4282-b506-095aa1e124e4 +# -- +set_quoted_values("${1:v}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_user_field b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_user_field new file mode 100644 index 00000000..17a01aaa --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_user_field @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line set_user_field(user, field, val) +# key: set_user_field +# contributor: Jeff Carlson +# uuid: 0da79e86-6793-498b-8224-9bd31b4eb713 +# -- +set_user_field("${1:user}", "${2:field}", "${3:val}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_variable_values b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_variable_values new file mode 100644 index 00000000..69ac61b6 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_variable_values @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line set_variable_values(v) +# key: set_variable_values +# contributor: Jeff Carlson +# uuid: d62ecdb8-aa07-4f20-81db-5b6713125e90 +# -- +set_variable_values("${1:v}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_variable_values_ini b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_variable_values_ini new file mode 100644 index 00000000..71e82648 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/set_variable_values_ini @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line set_variable_values_ini(tab, sectionname) +# key: set_variable_values_ini +# contributor: Jeff Carlson +# uuid: 67482c32-bca4-491c-8597-986fb2dacc5e +# -- +set_variable_values_ini("${1:tab}", "${2:sectionname}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/uncomment_lines_containing b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/uncomment_lines_containing new file mode 100644 index 00000000..a0592faa --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/uncomment_lines_containing @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line uncomment_lines_containing(regex, comment) +# key: uncomment_lines_containing +# contributor: Jeff Carlson +# uuid: b28b2d1a-5ce0-40f3-88d4-78eb82497a7c +# -- +uncomment_lines_containing("${1:regex}", "${2:comment}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/uncomment_lines_matching b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/uncomment_lines_matching new file mode 100644 index 00000000..b9883444 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/uncomment_lines_matching @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line uncomment_lines_matching(regex, comment) +# key: uncomment_lines_matching +# contributor: Jeff Carlson +# uuid: 5eb4465e-b3ca-4833-9351-97c9df0afb9d +# -- +uncomment_lines_matching("${1:regex}", "${2:comment}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/warn_lines_matching b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/warn_lines_matching new file mode 100644 index 00000000..f138b750 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_line/warn_lines_matching @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_line warn_lines_matching(regex) +# key: warn_lines_matching +# contributor: Jeff Carlson +# uuid: 2aed0c5b-3e3f-4d90-ad75-fdecc70eebb3 +# -- +warn_lines_matching("${1:regex}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_xml/xml_insert_tree b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_xml/xml_insert_tree new file mode 100644 index 00000000..26c1dfac --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_xml/xml_insert_tree @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_xml xml_insert_tree(treestring, xpath) +# key: xml_insert_tree +# contributor: Jeff Carlson +# uuid: be97c421-bb5a-4c06-9627-337a31f964c8 +# -- +xml_insert_tree("${1:treestring}", "${2:xpath}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_xml/xml_insert_tree_nopath b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_xml/xml_insert_tree_nopath new file mode 100644 index 00000000..833ec84d --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_xml/xml_insert_tree_nopath @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_xml xml_insert_tree_nopath(treestring) +# key: xml_insert_tree_nopath +# contributor: Jeff Carlson +# uuid: 9bbd56f4-b2a4-4a87-9886-4c3c58ca2307 +# -- +xml_insert_tree_nopath("${1:treestring}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_xml/xml_set_attribute b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_xml/xml_set_attribute new file mode 100644 index 00000000..429648ff --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_xml/xml_set_attribute @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_xml xml_set_attribute(attr, value, xpath) +# key: xml_set_attribute +# contributor: Jeff Carlson +# uuid: 2e37f565-772f-4e27-a7d4-bd0d7c045050 +# -- +xml_set_attribute("${1:attr}", "${2:value}", "${3:xpath}")$0 \ No newline at end of file diff --git a/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_xml/xml_set_value b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_xml/xml_set_value new file mode 100644 index 00000000..a6e34a41 --- /dev/null +++ b/lisp/snippets/cfengine3-mode/stdlib/bundles/edit_xml/xml_set_value @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: bundle edit_xml xml_set_value(value, xpath) +# key: xml_set_value +# contributor: Jeff Carlson +# uuid: 5c783a9e-f243-4680-940e-afc410f029d6 +# -- +xml_set_value("${1:value}", "${2:xpath}")$0 \ No newline at end of file