ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

cfengine_beautifier

by naksu ALL

CFEngine configuration file beautifier

Details

Installs

  • Total 2K
  • Win 1K
  • Mac 319
  • Linux 269
Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18
Windows 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

CFEngine Beautifier

CFEngine configuration file beautifier written in Python.

  • Command line interface
  • Integrates with Sublime Text 2 and Sublime Text 3.
  • Installation for Sublime by cloning into Sublime Text's Packages folder.

Sublime Text Installation

Via Package Manager

  1. Ctrl + Shift + p (Linux, Windows) or Cmd + Shift + p (OS X).
  2. Type “install package”
  3. Type “cfenginebeautifier”
  4. Enter

For more information: https://sublime.wbond.net/docs/usage

Manual Installation

  1. Navigate to Sublime Text Packages Directory

Platform Sublime Text 2 Sublime Text 3
Linux ~/.config/sublime-text-2/Packages ~/.config/sublime-text-3/Packages
OS X ~/Library/Application Support/Sublime Text 2/Packages ~/Library/Application Support/Sublime Text 3/Packages
Windows %APPDATA%\Sublime Text 2/Packages %APPDATA%\Sublime Text 3/Packages
- More information: http://sublimetext.info/docs/en/basic_concepts.html
  1. git clone https://github.com/naksu/cfengine_beautifier.git

Sublime Text Options

Option Description Value Default
beautify_on_save Run beautifier every time the file is saved true | false true
page_width Tries to make text fit onto this width (number of characters) number 100
remove_empty_promise_types Remove promise types (such as vars:, reports:) which have no promises or comments true | false true
sort_promise_types_to_evaluation_order Sort promise types to CFEngine normal order true | false true

Command Line Options

Run cf-beautify –help