- Add mk_base_image script,
- Add mk_base_image bash completion config, - Add GPL headers, - Add SPEC files to generate docker_tools & docker_tools-devel RPM packages, - Now support rx3-base 1.1.0.
This commit is contained in:
54
etc/bash_completion.d/mk_base_image
Normal file
54
etc/bash_completion.d/mk_base_image
Normal file
@@ -0,0 +1,54 @@
|
||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||
#
|
||||
# Mk Base Image
|
||||
#
|
||||
# Copyright (C) 2026 Arnaud G. GIBERT
|
||||
# mailto:arnaud@rx3.net
|
||||
#
|
||||
# This is free software: you can redistribute it and/or modify it
|
||||
# under the terms of the GNU Lesser General Public License as published
|
||||
# by the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; If not, see
|
||||
# <https://www.gnu.org/licenses/>.
|
||||
#
|
||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||
# -*- mode: shell; sh-basic-offset: 4; indent-tabs-mode: nil; -*-
|
||||
|
||||
_mk_base_image() {
|
||||
local cur prev opts lang_opts
|
||||
COMPREPLY=()
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||
|
||||
# Top-level options
|
||||
opts="--help -h --version -V --post -p --strip -s --unstrip -u --direct -d --lang -l --language -L --localtime -m --root -r --tmp -t --test -T --verbose -v"
|
||||
|
||||
# Handle --lang and --language options
|
||||
lang_opts="en_US.UTF-8 fr_FR.UTF-8 de_DE.UTF-8" # Add your supported languages here
|
||||
|
||||
case "${prev}" in
|
||||
--lang|-l|--language|-L)
|
||||
COMPREPLY=( $(compgen -W "${lang_opts}" -- "${cur}") )
|
||||
return 0
|
||||
;;
|
||||
--localtime|-m|--root|-r|--tmp|-t)
|
||||
COMPREPLY=( $(compgen -f -- "${cur}") ) # Complete with filenames/directories
|
||||
return 0
|
||||
;;
|
||||
*)
|
||||
# Default completion: show all top-level options
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
complete -F _mk_base_image mk_base_image
|
||||
Reference in New Issue
Block a user