feat: CI/CD, Bash-Completion und README-Verbesserungen
- GitHub Actions CI Pipeline (Tests, Clippy, Format-Checks) - GitHub Actions Release Pipeline (Multi-Platform Builds) - Bash-Completion Script für Shell-Autovervollständigung - Zsh-Completion Script (_ntu) - README Badges (CI, Release, Version, License) - Installationsanleitung für Pre-built Binaries - Alte build.yaml entfernt (ersetzt durch moderne ci.yml) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
bcbd64fd91
commit
77aa782718
6 changed files with 266 additions and 64 deletions
22
completions/_ntu
Normal file
22
completions/_ntu
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#compdef ntu
|
||||
|
||||
# Zsh completion for ntu (NameToUnix)
|
||||
|
||||
_ntu() {
|
||||
local curcontext="$curcontext" state line
|
||||
typeset -A opt_args
|
||||
|
||||
_arguments -C \
|
||||
'(-n --dry-run --no-changes)'{-n,--dry-run,--no-changes}'[Only preview changes without renaming]' \
|
||||
'(-q --quiet)'{-q,--quiet}'[Suppress output]' \
|
||||
'(-f --force)'{-f,--force}'[Overwrite existing files]' \
|
||||
'*'{-e,--exclude}'[Exclude pattern]:pattern:' \
|
||||
'(-v --verbose)'{-v,--verbose}'[Verbose debug output]' \
|
||||
'--modify-root[Also rename root directory]' \
|
||||
'--special[Process symlinks and special files]' \
|
||||
'(-h --help)'{-h,--help}'[Print help]' \
|
||||
'(-V --version)'{-V,--version}'[Print version]' \
|
||||
'*:path:_files'
|
||||
}
|
||||
|
||||
_ntu "$@"
|
||||
35
completions/ntu.bash
Normal file
35
completions/ntu.bash
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# Bash completion for ntu (NameToUnix)
|
||||
|
||||
_ntu_completion() {
|
||||
local cur prev opts
|
||||
COMPREPLY=()
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||
|
||||
# All available options
|
||||
opts="--dry-run --no-changes --quiet --force --exclude --verbose --modify-root --special --help --version -n -q -f -e -v -h -V"
|
||||
|
||||
# Handle options that require arguments
|
||||
case "${prev}" in
|
||||
-e|--exclude)
|
||||
# Suggest glob patterns
|
||||
COMPREPLY=( $(compgen -W '"*.tmp" "*.log" "*.bak" "*.swp" "*~"' -- ${cur}) )
|
||||
return 0
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
# If current word starts with -, complete with options
|
||||
if [[ ${cur} == -* ]] ; then
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Otherwise complete with directories and files
|
||||
COMPREPLY=( $(compgen -f -- ${cur}) )
|
||||
return 0
|
||||
}
|
||||
|
||||
# Register completion function
|
||||
complete -F _ntu_completion ntu
|
||||
Loading…
Add table
Add a link
Reference in a new issue