mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-07-01 02:27:22 +02:00
chore(ansible): zsh-ify some code (#13797)
This commit is contained in:
committed by
GitHub
parent
96ea17080a
commit
df34d2b8d5
@@ -1,13 +1,13 @@
|
||||
# Functions
|
||||
function ansible-version(){
|
||||
function ansible-version() {
|
||||
ansible --version
|
||||
}
|
||||
|
||||
function ansible-role-init(){
|
||||
if ! [ -z $1 ] ; then
|
||||
function ansible-role-init() {
|
||||
if [[ -n "$1" ]]; then
|
||||
echo "Ansible Role : $1 Creating...."
|
||||
ansible-galaxy init $1
|
||||
tree $1
|
||||
ansible-galaxy init "$1"
|
||||
tree "$1"
|
||||
else
|
||||
echo "Usage : ansible-role-init <role name>"
|
||||
echo "Example : ansible-role-init role1"
|
||||
|
||||
Reference in New Issue
Block a user