1
0
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:
ANDI FAUZAN HEDIANTORO
2026-06-15 17:22:58 +07:00
committed by GitHub
parent 96ea17080a
commit df34d2b8d5
+5 -5
View File
@@ -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"