Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/herrjulz/vim-concourse-snippets
https://github.com/herrjulz/vim-concourse-snippets
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/herrjulz/vim-concourse-snippets
- Owner: herrjulz
- Created: 2018-06-08T22:26:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-08T22:53:04.000Z (over 6 years ago)
- Last Synced: 2024-10-28T13:32:39.973Z (2 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vim Concourse Snippets
This is are snippets of the most common properties I use when creating concourse config YAML files. The snippets follow a specific syntax, which is:
`cc`
where,
- `cc`=concourse
- ``=name of a config property (eg job, task, etc.)
- ``=somthing specific for a specific property (eg. git put declaration)Example: `ccgit` creates:
```yaml
- name: name
type: git
source:
uri: [email protected]:author/repo.git
branch: master
private_key: key
```whereas `ccgitput` creates:
```yaml
- put: repo
params:
repository: some-other-repo
```## Requirements
- [SnipMate](https://github.com/garbas/vim-snipmate)
## Installation
### Pathogen
```bash
$ git clone https://github.com/JulzDiverse/vim-concourse-snippets ~/.vim/bundle/vim-concourse-snippets
```### Usage/Commands
Open a `.yml` or `.yaml` file, in insert mode and type any of the following commands and hit \ (and continously hit \ to get to the next field):
```
Plan specific:
- ccjob
- cctask
- cctaskf (creates a task with a file reference)
- cctaskfile (creates a task file)
- ccget
- ccgitResources specific:
- ccgit
- ccgitput
- cctimeinterval
- cctimerange
- ccdocker
- ccpool
- ccslackrt (slack resource type)
- ccslack
- ccslackput
```