A sublime text plugin for mistral
- Total 65
- Win 35
- Mac 18
- Linux 12
|Feb 17||Feb 16||Feb 15||Feb 14||Feb 13||Feb 12||Feb 11||Feb 10||Feb 9||Feb 8||Feb 7||Feb 6||Feb 5||Feb 4||Feb 3||Feb 2||Feb 1||Jan 31||Jan 30||Jan 29||Jan 28||Jan 27||Jan 26||Jan 25||Jan 24||Jan 23||Jan 22||Jan 21||Jan 20||Jan 19||Jan 18||Jan 17||Jan 16||Jan 15||Jan 14||Jan 13||Jan 12||Jan 11||Jan 10||Jan 9||Jan 8||Jan 7||Jan 6||Jan 5||Jan 4|
About the Mistral Package for Sublime Text
The Mistral package for sublime text contains a ton of snippets you can use to build Mistral workflows using Sublime Text. Both Sublime Text 2 and 3 are supported. This package uses the base YAML syntax highlighting included with Sublime Text.
To install the Mistral pacakge, you first need to install Sublime Text. Go to the following link to download, http://www.sublimetext.com/. This a great application for editing text and supports Linux, Mac, and Windows equally well.
Install Method 1 - Will Bond's Package Control (Recommended)
Will Bond has made a great plugin that loads packages into Sublime Text. If you use this method you will automatically get updates of the Mistral package when they are released. I highly recommend using this approach.
- Start Sublime Text
- Install Package Control from will bond following the instructions at http://wbond.net/sublime_packages/package_control.
command+shift+p(Mac) and type Install Package. You should see “Package Control: Install Package”.
- Type Mistral and press Enter.
A few steps and you will be on your way.
- Create new file and give it the extension
.mistand open it in Sublime Text
- If it doesn't automatically get recognized (You will see Mistral in the bottom right corner), then press
command+shift+p(Mac) and type
Enter. You should see the bottom right of the status bar change.
start,Tabfrom the selection box. It will instantly give you a base Mistral file to start and you can set the name accordingly.
- Use the following snippets to build out your Mistral file and get your workflows going.
acts,Tab–> Actions - Create an 'actions:' section in the file.
act,Tab–> Action - Create a skeleton of action within the 'actions' section.
bec,Tab–> base: std.echo - Create an action with std.echo as the base.
bem,Tab–> base: std.email - Create an action with std.email as the base.
bhttp,Tab–> base: std.http - Create an action with std.http as the base.
bmhttp,Tab–> base: std.mistral_http - Create an action with std.mistral_http as the base.
bssh,Tab–> base: std.ssh - Create an action with std.ssh as the base.
wfs,Tab–> Workflows - Create a 'workflows:' section that will also start off your first workflow.
wf,Tab–> Workflow - Create a single workflow within an already created 'workflows' section.
tec,Tab–> task: std.echo - Create std.echo task within the 'tasks' section of the workflow.
tem,Tab–> task: std.email - Create std.email task within the 'tasks' section of the workflow.
thttp,Tab–> task: std.http - Create std.http task within the 'tasks' section of the workflow.
tmhttp,Tab–> task: std.mistral_http - Create std.mistral_http task within the 'tasks' section of the workflow.
tssh,Tab–> task: std.ssh - Create std.ssh task within the 'tasks' section of the workflow.
Copyright © 2015 Giampiero De Ciantis email@example.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.