Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Crans Passwords
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
Crans Passwords
Commits
81233f5b
Commit
81233f5b
authored
Apr 09, 2013
by
Pierre-Elliott Bécue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[_cranspasswords] Last feature
parent
ed0caf0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
_cranspasswords
_cranspasswords
+9
-5
No files found.
_cranspasswords
View file @
81233f5b
...
...
@@ -20,7 +20,11 @@ _cranspasswords(){
;;
esac
else
_cranspasswords_files
if [[ $words[2] == '-' ]]; then
_cranspasswords_args
else
_cranspasswords_files
fi;
fi
}
...
...
@@ -41,12 +45,12 @@ _cranspasswords_files(){
liste_fichiers=($(cranspasswords --server $server --list 2>/dev/null | tail -n +2 | head -n -1 | awk '{print $2}' | tr '\n' ' '))
echo $liste_fichiers > /tmp/$fname
for i in $liste_fichiers; do
_wanted files expl "file names" compadd $i;
_wanted files expl "file names
on ${server}
" compadd $i;
done;
else
liste_fichiers=($(cat /tmp/$fname))
for i in $liste_fichiers; do
_wanted files expl "file names" compadd $i;
_wanted files expl "file names
on ${server}
" compadd $i;
done;
fi;
}
...
...
@@ -68,12 +72,12 @@ _cranspasswords_roles(){
liste_fichiers=($(cranspasswords --server $server --list-roles 2>/dev/null | tail -n +2 | awk '{print $2}' | tr '\n' ' '))
echo $liste_fichiers > /tmp/$fname
for i in $liste_fichiers; do
_wanted roles expl "role names" compadd $i;
_wanted roles expl "role names
on ${server}
" compadd $i;
done;
else
liste_fichiers=($(cat /tmp/$fname))
for i in $liste_fichiers; do
_wanted roles expl "role names" compadd $i;
_wanted roles expl "role names
on ${server}
" compadd $i;
done;
fi;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment