Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/herrjulz/vim-concourse-snippets


https://github.com/herrjulz/vim-concourse-snippets

Last synced: 25 days ago
JSON representation

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
- ccgit

Resources specific:
- ccgit
- ccgitput
- cctimeinterval
- cctimerange
- ccdocker
- ccpool
- ccslackrt (slack resource type)
- ccslack
- ccslackput
```