Skip to content

Commit 5c4f27b

Browse files
authored
feat(molecule): introduce molecule aliases (ohmyzsh#13594)
1 parent 400591e commit 5c4f27b

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

plugins/molecule/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
# Molecule plugin
22

3-
This plugin adds completion for [Molecule](https://ansible.readthedocs.io/projects/molecule/), the project designed to aid in the development and testing of Ansible roles..
3+
This plugin adds aliases and completion for [Molecule](https://ansible.readthedocs.io/projects/molecule/), the
4+
project designed to aid in the development and testing of Ansible roles..
45

56
To use it, add `molecule` to the plugins array in your zshrc file:
67

78
```zsh
89
plugins=(... molecule)
910
```
11+
12+
## Aliases
13+
14+
| Alias | Command | Description |
15+
| :---- | :---------------- | ---------------------------------------------------------------------------------- |
16+
| mol | molecule | Molecule aids in the development and testing of Ansible roles. |
17+
| mcr | molecule create | Use the provisioner to start the instances. |
18+
| mcon | molecule converge | Use the provisioner to configure instances (dependency, create, prepare converge). |
19+
| mls | molecule list | List status of instances. |
20+
| mvf | molecule verify | Run automated tests against instances. |

plugins/molecule/molecule.plugin.zsh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,11 @@ if [[ ! -f "$ZSH_CACHE_DIR/completions/_molecule" ]]; then
1212
fi
1313

1414
_MOLECULE_COMPLETE=zsh_source molecule >| "$ZSH_CACHE_DIR/completions/_molecule" &|
15+
16+
# Alias
17+
# molecule: https://docs.ansible.com/projects/molecule/
18+
alias mol='molecule'
19+
alias mcr='molecule create'
20+
alias mcon='molecule converge'
21+
alias mls='molecule list'
22+
alias mvf='molecule verify'

0 commit comments

Comments
 (0)