Skip to content

Commit

Permalink
more module specific snippets. Mentioned snippets in the README, incl…
Browse files Browse the repository at this point in the history
…udede additional screenshot.
  • Loading branch information
Ben Hartshorne committed Mar 22, 2016
1 parent 1c8e7c3 commit 82e93eb
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Terraform Syntax Highlighting
===============================
Terraform Syntax Highlighting And Snippets
==========================================

Basic support for Terraform's [custom .tf file type](http://www.terraform.io/docs/configuration/syntax.html)
Basic support for Terraform's [custom .tf file type](http://www.terraform.io/docs/configuration/syntax.html), along with snippets for each of the basic Terraform resource types.


![screenshot](screenshot.png)
![screenshot](screenshot2.png)


Installation
Expand Down
Binary file added screenshot2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions snippets/module_github.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<snippet>
<content><![CDATA[
module "${1:name}" {
source = "github.com/${2:owner}/${3:repo}?${4:ref=}"
${5}
}
]]></content>
<tabTrigger>moduleG</tabTrigger>
<scope>source.terraform</scope>
<description>module (github public)</description>
</snippet>
11 changes: 11 additions & 0 deletions snippets/module_github_private.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<snippet>
<content><![CDATA[
module "${1:name}" {
source = "git::ssh://[email protected]/${2:owner}/${3:repo}.git${4:?ref=}"
${5}
}
]]></content>
<tabTrigger>moduleGS</tabTrigger>
<scope>source.terraform</scope>
<description>module (github ssh)</description>
</snippet>
11 changes: 11 additions & 0 deletions snippets/module_path.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<snippet>
<content><![CDATA[
module "${1:name}" {
source = "${2:./modules/}"
${3}
}
]]></content>
<tabTrigger>moduleP</tabTrigger>
<scope>source.terraform</scope>
<description>module (path)</description>
</snippet>

0 comments on commit 82e93eb

Please sign in to comment.