Skip to content

Commit

Permalink
Added shebang snippet for Groovy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rpinski committed Dec 12, 2018
1 parent f0fec2c commit 374f2b4
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Release Notes

### 0.1.3

Added shebang snippets for Groovy.

### 0.1.2

Added choice between `python3` and `python` in Python shebang snippets. ([#4](https://github.com/Rpinski/vscode-shebang-snippets/issues/4))
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ After opening a new file you can just type `#!` and the interpreter name to add
- `#!ruby+encoding` ->
- `#!/usr/bin/env ruby`
- `# -*- coding: utf-8 -*-`
- Groovy: `#!groovy` -> `#!/usr/bin/env groovy`

![Shebang Snippets in action](https://raw.githubusercontent.com/Rpinski/vscode-shebang-snippets/master/images/snippet.gif)

Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "shebang-snippets",
"displayName": "Shebang Snippets",
"description": "Snippets for shebang lines for different types of scripts.",
"version": "0.1.2",
"version": "0.1.3",
"publisher": "rpinski",
"author": "Andreas Weizel",
"repository": {
Expand Down Expand Up @@ -65,6 +65,10 @@
{
"language": "ruby",
"path": "./snippets/shebang-ruby.json"
},
{
"language": "groovy",
"path": "./snippets/shebang-groovy.json"
}
]
}
Expand Down
16 changes: 16 additions & 0 deletions snippets/shebang-groovy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"shebang-groovy-r": {
"prefix": "shebang",
"body": [
"#!/usr/bin/env groovy"
],
"description": "Adds a shebang for Groovy scripts"
},
"shebang-groovy": {
"prefix": "#!groovy",
"body": [
"#!/usr/bin/env groovy"
],
"description": "Adds a shebang for Groovy scripts"
}
}
7 changes: 7 additions & 0 deletions snippets/shebang-plaintext.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@
],
"description": "Adds a shebang for Ruby scripts and defines an encoding"
},
"shebang-groovy": {
"prefix": "#!groovy",
"body": [
"#!/usr/bin/env groovy"
],
"description": "Adds a shebang for Groovy scripts"
},
"shebang-encoding": {
"prefix": "#encoding",
"body": [
Expand Down

0 comments on commit 374f2b4

Please sign in to comment.