mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-19 05:12:49 +02:00
chore(ansible): zsh-ify some code (#13797)
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
96ea17080a
commit
df34d2b8d5
1 changed files with 5 additions and 5 deletions
|
|
@ -1,13 +1,13 @@
|
||||||
# Functions
|
# Functions
|
||||||
function ansible-version(){
|
function ansible-version() {
|
||||||
ansible --version
|
ansible --version
|
||||||
}
|
}
|
||||||
|
|
||||||
function ansible-role-init(){
|
function ansible-role-init() {
|
||||||
if ! [ -z $1 ] ; then
|
if [[ -n "$1" ]]; then
|
||||||
echo "Ansible Role : $1 Creating...."
|
echo "Ansible Role : $1 Creating...."
|
||||||
ansible-galaxy init $1
|
ansible-galaxy init "$1"
|
||||||
tree $1
|
tree "$1"
|
||||||
else
|
else
|
||||||
echo "Usage : ansible-role-init <role name>"
|
echo "Usage : ansible-role-init <role name>"
|
||||||
echo "Example : ansible-role-init role1"
|
echo "Example : ansible-role-init role1"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue