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
C
Cranspasswords
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gabriel Detraz
Cranspasswords
Commits
ed0caf0b
Commit
ed0caf0b
authored
Apr 09, 2013
by
Pierre-Elliott Bécue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[_cranspasswords] Améliorations + découpage du gros bloc central
parent
7a2b4a45
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
54 deletions
+66
-54
_cranspasswords
_cranspasswords
+66
-54
No files found.
_cranspasswords
View file @
ed0caf0b
...
...
@@ -7,12 +7,24 @@ _cranspasswords(){
cmd=$words[$END]
case $cmd in
--server)
liste_serveurs=($(cranspasswords --list-servers 2> /dev/null | tail -n +2 | awk '{print $2}' | tr '\n' ' '))
for i in $liste_serveurs; do
_wanted server expl "server names" compadd $i;
done;
_cranspasswords_servers
;;
--view | --edit)
_cranspasswords_files
;;
--roles)
_cranspasswords_roles
;;
*)
_cranspasswords_args
;;
esac
else
_cranspasswords_files
fi
}
_cranspasswords_files(){
pos=$words[(i)--server]
posa=$(( pos + 1))
...
...
@@ -37,8 +49,9 @@ _cranspasswords(){
_wanted files expl "file names" compadd $i;
done;
fi;
;;
--roles)
}
_cranspasswords_roles(){
pos=$words[(i)--server]
posa=$(( pos + 1))
...
...
@@ -63,14 +76,13 @@ _cranspasswords(){
_wanted roles expl "role names" compadd $i;
done;
fi;
;;
*)
_cranspasswords_args $@
;;
esac
else
_cranspasswords_args $@
fi
}
_cranspasswords_servers(){
liste_serveurs=($(cranspasswords --list-servers 2> /dev/null | tail -n +2 | awk '{print $2}' | tr '\n' ' '))
for i in $liste_serveurs; do
_wanted server expl "server names" compadd $i;
done;
}
_cranspasswords_args(){
...
...
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