[osmium-tool] 33/44: Add zsh completion for getid subcommand.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Tue Jul 21 20:15:56 UTC 2015


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to tag v1.1.0
in repository osmium-tool.

commit 952464195c720692b458795b7e5819ed6792af4b
Author: Jochen Topf <jochen at topf.org>
Date:   Fri Jul 3 13:57:09 2015 +0200

    Add zsh completion for getid subcommand.
---
 zsh_completion/_osmium | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/zsh_completion/_osmium b/zsh_completion/_osmium
index 76d8397..6c4615d 100644
--- a/zsh_completion/_osmium
+++ b/zsh_completion/_osmium
@@ -17,7 +17,7 @@ osmium_file_glob="'*.(osm|osh|osc|pbf|osm.pbf) *.(osm|osh|osc).(bz2|gz)'"
 
 _osmium() {
     local -a osmium_commands
-    osmium_commands=(apply-changes cat check-refs fileinfo help merge-changes renumber time-filter)
+    osmium_commands=(apply-changes cat check-refs fileinfo getid help merge-changes renumber time-filter)
     if (( CURRENT > 2 )); then
         # Remember the subcommand name
         local cmd=${words[2]}
@@ -94,6 +94,23 @@ _osmium-fileinfo() {
         "*::input OSM file:_files -g ${osmium_file_glob}"
 }
 
+_osmium-getid() {
+    _arguments : \
+        '--generator[generator setting for output file header]:generator:' \
+        '(--input-format)-F[format of input OSM file]:OSM file format:_osmium_file_formats' \
+        '(-F)--input-format[format of input OSM file]:OSM file format:_osmium_file_formats' \
+        "(--output)-o[output file name]:output OSM file:_files -g ${osmium_file_glob}" \
+        "(-o)--output[output file name]:output OSM file:_files -g ${osmium_file_glob}" \
+        '(--output-format)-f[format of output OSM file]:OSM file format:_osmium_file_formats' \
+        '(-f)--output-format[format of output OSM file]:OSM file format:_osmium_file_formats' \
+        '(--overwrite)-O[allow overwriting of existing output file]' \
+        '(-O)--overwrite[allow overwriting of existing output file]' \
+        '(--verbose)-v[set verbose mode]' \
+        '(-v)--verbose[set verbose mode]' \
+        "1::input OSM file:_files -g ${osmium_file_glob}" \
+        "*::ids (format\: [nwr]NUM):"
+}
+
 _osmium-merge-changes() {
     _arguments : \
         '--generator[generator setting for output file header]:generator:' \
@@ -170,7 +187,7 @@ _osmium_object_type() {
 
 _osmium-help() {
     local -a osmium_help_topics
-    osmium_help_topics=(apply-changes cat check-refs fileinfo help merge-changes renumber time-filter file-formats)
+    osmium_help_topics=(apply-changes cat check-refs fileinfo getid help merge-changes renumber time-filter file-formats)
     _describe -t osmium-help-topics 'osmium help topics' osmium_help_topics
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/osmium-tool.git



More information about the Pkg-grass-devel mailing list