• R/O
  • HTTP
  • SSH
  • HTTPS

crshini: Commit

GitHubのミラーです
https://github.com/hayao0819/crshini


Commit MetaInfo

Révision010e1d50bfc6e4f47c80ef2ae9744875f1509d22 (tree)
l'heure2021-06-08 20:01:36
Auteurhayao <hayao@fasc...>
Commiterhayao

Message de Log

[update] : Added --del

Change Summary

Modification

--- a/src/crshini
+++ b/src/crshini
@@ -48,7 +48,7 @@ done
4848 # Parse options
4949 ARGUMENT=("${@}")
5050 OPTS=("h")
51-OPTL=("get" "set" "merge" "help" "version" "output:" "stdin")
51+OPTL=("get" "set" "merge" "del" "help" "version" "output:" "stdin")
5252 if ! OPT=$(getopt -o "$(printf "%s," "${OPTS[@]}")" -l "$(printf "%s," "${OPTL[@]}")" -- "${ARGUMENT[@]}"); then
5353 exit 1
5454 fi
@@ -70,6 +70,10 @@ while true; do
7070 mode="merge"
7171 shift 1
7272 ;;
73+ --del)
74+ mode="del"
75+ shift 1
76+ ;;
7377 -h | --help)
7478 _usage
7579 exit 1
@@ -115,4 +119,7 @@ case "${mode}" in
115119 "merge")
116120 _crshini_output="${output}" _crshini_stdin=true _crshini_merge "${file}" "${section}"
117121 ;;
122+ "del")
123+ _crshini_output="${output}" _crshini_stdin="${stdin}" _crshini_del "${file}" "${section}" "${param}"
124+ ;;
118125 esac
Afficher sur ancien navigateur de dépôt.