Function: go-tag--remove

go-tag--remove is a natively compiled function defined in go-tag.el.

Signature

(go-tag--remove CMD-ARGS TAGS &optional OPTIONS)

Documentation

Init CMD-ARGS, add TAGS and OPTIONS to CMD-ARGS.

Source Code

;; Defined in /nix/store/4jjjcvfszn24ybwdg82skyc9bkmmzbb9-emacs-packages-deps/share/emacs/site-lisp/elpa/go-tag-20230111.651/go-tag.el
(defun go-tag--remove(cmd-args tags &optional options)
  "Init CMD-ARGS, add TAGS and OPTIONS to CMD-ARGS."
  (progn
    (if (string-equal tags "")
        (setq cmd-args
              (append cmd-args
                      (list "-clear-tags")))
      (if (string-equal options "")
          (setq cmd-args
                (append cmd-args
                        (list "-remove-tags" tags)))
        (let ((tags (go-tag--filter-tags tags options)))
          (unless (string-equal tags "")
            (setq cmd-args
                  (append cmd-args
                          (list "-remove-tags" tags))))
          (setq cmd-args
                (append cmd-args
                        (list "-remove-options" options))))))
    (go-tag--proc cmd-args)))