mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-06 03:10:35 +01:00
feat(molecule): introduce molecule aliases (#13594)
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
This commit is contained in:
parent
400591e71c
commit
5c4f27b716
2 changed files with 20 additions and 1 deletions
|
|
@ -1,9 +1,20 @@
|
|||
# Molecule plugin
|
||||
|
||||
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..
|
||||
This plugin adds aliases and completion for [Molecule](https://ansible.readthedocs.io/projects/molecule/), the
|
||||
project designed to aid in the development and testing of Ansible roles..
|
||||
|
||||
To use it, add `molecule` to the plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... molecule)
|
||||
```
|
||||
|
||||
## Aliases
|
||||
|
||||
| Alias | Command | Description |
|
||||
| :---- | :---------------- | ---------------------------------------------------------------------------------- |
|
||||
| mol | molecule | Molecule aids in the development and testing of Ansible roles. |
|
||||
| mcr | molecule create | Use the provisioner to start the instances. |
|
||||
| mcon | molecule converge | Use the provisioner to configure instances (dependency, create, prepare converge). |
|
||||
| mls | molecule list | List status of instances. |
|
||||
| mvf | molecule verify | Run automated tests against instances. |
|
||||
|
|
|
|||
|
|
@ -12,3 +12,11 @@ if [[ ! -f "$ZSH_CACHE_DIR/completions/_molecule" ]]; then
|
|||
fi
|
||||
|
||||
_MOLECULE_COMPLETE=zsh_source molecule >| "$ZSH_CACHE_DIR/completions/_molecule" &|
|
||||
|
||||
# Alias
|
||||
# molecule: https://docs.ansible.com/projects/molecule/
|
||||
alias mol='molecule'
|
||||
alias mcr='molecule create'
|
||||
alias mcon='molecule converge'
|
||||
alias mls='molecule list'
|
||||
alias mvf='molecule verify'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue